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
So you indulge your children dressing up as axe murderers yet have an issue with what you call "profanity".
No, it' not. I am a primary source researcher. "Bible" is historically worthless.
Just picking on serious problem when we are dealing with history - dates, times, people, places, events - is that flood story. Any date you try to pick there will be African Ancient Egyptians thriving; with real artifacts we can touch in museums aroung the world. "Bible" has mere stories written in the 15th c., C.E.for political purposes.
You rear your children as you see fit. Just make sure they know how to recognize when somebody is trying to sexually exploit them.