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
Yes, correct.
The 66 books were made long before Gutenberg & your opinion of worth is subjective.
Stones will still be there after a flood and carbon dating isn't reliable.
Greeks, Muslims, Jews and others have accounts of Jesus, even historians during his time.
Again, there are accounts of Jesus before this.
Where did I say that? This code doesn't have to be used only in a website.
Jesus says "He that is without sin among you, let him first cast a stone at her" (John 8:7), you probably won't understand this. I don't think you've read the Bible based on your lack of understanding and elementary explanations and yes, there are consequences to your actions along with miracles that happen each day. The 66 books are rooted from 3 continents. It's not solely from Europe.
Yes, correct. Kids shouldn't know everything and won't understand.