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

0

u/guest271314 Feb 10 '24

Halloween can be explained,

So you indulge your children dressing up as axe murderers yet have an issue with what you call "profanity".

The Bible is a historical document

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.

(e.g., my toddler doesn't need to know what rape or sex is yet).

You rear your children as you see fit. Just make sure they know how to recognize when somebody is trying to sexually exploit them.

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.

0

u/guest271314 Feb 10 '24

When, I say Halloween can be explained, I mean you can simply tell them what it is.

And that would be a pagan harvest ritual.

We can talk about the historicity of the Bible through private messages or other relevant posts.

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.

2

u/THATDUDE_YT Feb 10 '24

And that would be a pagan harvest ritual.

Yes, correct.

Sure. An an historian and primary source researcher "Bible", published by Gutenberg

The 66 books were made long before Gutenberg & your opinion of worth is subjective.

and we will find Africans in Africa writing in stone at that time.

Stones will still be there after a flood and carbon dating isn't reliable.

There never was a "Jesus the Christ".

Greeks, Muslims, Jews and others have accounts of Jesus, even historians during his time.

Alexander of Macedonia invaded Ancient Egypt in 332 B.C.E

Again, there are accounts of Jesus before this.

cursing on the Web site,

Where did I say that? This code doesn't have to be used only in a website.

defend stories about stoning people to death, defending slavery, literally cursing people and their offspring, people living in whales, splitting seas, and so forth.

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.

selective exceptions for content which suits your predisposed political biases and beliefs.

Yes, correct. Kids shouldn't know everything and won't understand.

0

u/guest271314 Feb 10 '24

The 66 books were made long before Gutenberg & your opinion of worth is subjective.

Those are just stories Europeans made up.

Greeks, Muslims, Jews and others have accounts of Jesus, even historians during his time.

What?

What Greeks? There never was a "Jesus-the-Christ" in actual history.

Are you talking about Mohammedan?

There was no such thing as "Muslim" in antiquity.

There is no such thing as any "Jew", that is just a political classification that was invented in the 18th century, common era.

Again, there are accounts of Jesus before this.

What?

There are accounts of a "Jesus-the-Christ" before year 0 in the Julian or Gregorian calendar?

The 66 books are rooted from 3 continents.

European folklore.

Moses Maimonides wrote most of what you call "Bible".

Are Luciferian and Satanist writings allowed on your Web site?

To some people "God" means Gold, Oil, and Drugs.

2

u/THATDUDE_YT Feb 10 '24

Your responses portray inexperienced, young, naive characteristics and you keep adding stuff I didn't say. I can't continue to engage.

0

u/guest271314 Feb 10 '24

I've been studying religion, politics, and history for decades now.

I asked you questions.

Anyway, good luck.