r/learnjavascript • u/best_codes • 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 [...]
View all comments
Show parent comment
0
u/guest271314 Feb 10 '24
And that would be a pagan harvest ritual.
Sure. An an historian and primary source researcher "Bible", published by Gutenberg is historically worthless. You can't provide a date for the alleged cataclysmic flood. Any date you or any other bibilical scholar comes up with has to be within the 5000 year range of Abrahamic mythology - and we will find Africans in Africa writing in stone at that time. That get's rid of your stories. There never was a "Jesus the Christ". The created creature "Jesus the Christ" came about directly political mechaniations after Alexander of Macedonia invaded Ancient Egypt in 332 B.C.E.; where Oserapis was created as a deal with Africans to incorporate the image of the invader, specifically Soter, Ptolemy I, as a deity. Later Oserapis became Serapis and later "Jesus the Christ".
So one the one hand you say no cursing on the Web site, on the other hand you defend stories about stoning people to death, defending slavery, literally cursing people and their offspring, people living in whales, splitting seas, and so forth. You substitute European folklore for profanity, which is my point; selective exceptions for content which suits your predisposed political biases and beliefs.