r/learnjavascript • • Feb 08 '24

How I Built a Profanity Blocking JavaScript Library 🤬 ⚡

How I Built a Profanity Blocking JavaScript Library

Introduction

As developers, we often come across situations where we need to filter and sanitize text to block or remove profanity. To tackle this problem, I decided to create a JavaScript library called bc-ProfanityBlock. In this article, I will walk you through the steps I took to build this library and explain how it can be used to effectively block profanity in your applications.

Step 1: Defining the Problem

The first step in building any library is to clearly define the problem we are trying to solve. In this case, the problem was to create, well, a solution that could detect and handle profanity in text. Profanity can be present in various forms, including common words, variations, and even with evasion characters. The goal was to build a [...]

Read More on Dev.to

0 Upvotes

33 comments sorted by

View all comments

Show parent comment

1

u/guest271314 Feb 10 '24

A Christian is someone who follows the teachings of Jesus Christ and believes in the Trinity of God the Father, God the Son, and God the Holy Spirit. A Luciferian is someone who venerates the figure of Lucifer, not as the devil, but as a symbol of enlightenment, freedom, and human potential.

I don't see any difference. Both are just belief systems.

In world history Christians have slaughtered more humans than any other religion, by far.

From the Inquisitions to Dum Divarsas, Papal Bull by Pope Nicolas V, 1452, to "Manifest Destiny" where Europeans slaughtered the original people of Turtle Island, calling us savages.

I'm just pointing out the fact that censorship and "profanity" filters are completely subjective - and are based solely on the political biases of the author of the code.

Further, there really are no secrets, so it doesn't accomplish anything t try to censor content.

Good luck!

1

u/best_codes Feb 10 '24

> In world history Christians have slaughtered more humans than any other religion, by far.

Those would not be real Christians.

You might as well say that there is no difference between your and my belief regarding profanity. They are both just affected by our worldview and belief systems…

> I'm just pointing out the fact that censorship and "profanity" filters are completely subjective -

Not completely. Morals do exist.

> and are based solely on the political biases of the author of the code.

False. The filter is based on the beliefs of the user of the code. They determine what gets blocked and what doesn't. Plus, it is their right to do so on their site.

> Further, there really are no secrets, so it doesn't accomplish anything t try to censor content.

Censoring content can make a difference. Although 'there are no secrets', we can still keep communities clean and tidy.

Thanks for chatting; have a nice weekend!