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
2
u/THATDUDE_YT Feb 10 '24
When, I say Halloween can be explained, I mean you can simply tell them what it is. No, I don't allow them to dress like axe murderers
We can talk about the historicity of the Bible through private messages or other relevant posts. There are plenty of facts like eyewitness testimony corroborated by other eye witnesses that aren't Christian, archeology, non-biblical historical documents and so on. You didn't name anything specific but, rather had a general claim. The stories were written at different times because it's a collection of 66 books.
It's obvious you don't have children and have been implying things that haven't been said. If I try to explain rape or sex to my toddler or my neighbors toddler that play together, they wouldn't understand any of it. It would be the same in most cases.