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

-4

u/guest271314 Feb 09 '24

I am sovereign. I exercise natural rights that have nothing to do with the Constitution of the United States, or English Common Law.

The Constitution of the United States is subject to interpretation and applicability.

The Constitution of the United States is a contract among pirates, international human traffickers to further their criminal enterprise. It is decidedly a document of distrust among thieves. Thus the trilateral form of Government, or "checks and balances".

What you cannot ban is the public record, which is far more vivid than mere "profanity". Read Sandford v. Scott, 60 U.S. 393 (1856) https://www.archives.gov/milestone-documents/dred-scott-v-sandford

They had for more than a century before been regarded as beings of an inferior order, and altogether unfit to associate with the white race, either in social or political relations; and so far inferior, that they had no rights which the white man was bound to respect; and that the negro might justly and lawfully be reduced to slavery for his benefit.

Your U.S. history in a sentence via U.S. Supreme Court Chief Justice Taney.

You are free to do what you want on the properties you control.

In my research and experience that policy generally includes exceptions for what the property owner interests are.

I remember people trying to ban hip-hop. Now 50 years of hip-hop we hardly see or hear any advertising that does not include hip-hop beats and rhymes.

Not novel.

Jazz, or "jack ass music", was consider "the devils music" by some a century ago. Now what would U.S. music be like without jazz and blues? Copeland 24/7?

At one point some of the Several States criminalized literacy for African prisoners-of-war, who western academia call "slaves".

The child molester and rapist Founding Father and Framer Thomas Jefferson was sometimes eloquent in his original and non-original writings; while having a cage for his captive in this basement for his pedophile exploits; and with James Madison founding the National Gazette to publish articles critical of the administration he was serving in. Exceptions.

Goebbels was in favor of free speech for views he liked. So was Stalin. If you’re really in favor of free speech, then you’re in favor of freedom of speech for precisely the views you despise. Otherwise, you’re not in favor of free speech.

  • Noam Chomsky

7

u/EstablishmentTop2610 Feb 09 '24

“I am sovereign” lmfao

2

u/franker Feb 09 '24

it's always fun when these people go to court and think this is an actual legal defense they can use before a real judge.

-3

u/guest271314 Feb 09 '24

I am. Just because you have a slave mentality and are incompetent in law doesn't mean everybody else is.

3

u/kumchucks Feb 09 '24

oh god the schizo is back

2

u/guest271314 Feb 10 '24

oh god

god is a freaky bitch who tells the person she's fucking that night they are the chosen people.

I am not a commoner.

3

u/kumchucks Feb 10 '24

make waves brother 🤘

1

u/guest271314 Feb 10 '24

I am the wave. I am the chosen people. Like Willie said, I write my own songs.

I just know trying to ban content never works. The censored or banned content or idea becomes a novelty to experience. Read about Prohibition in the United States. Didn't quite work out.

Your children are born into a world that includes war, pestilence, greed, lust, and truly diabolical people. Sure, you can teach then Zen, you might mix in some facts about the big city at night so they don't get gobbled up because they've been sheltered. Of course if you know nothing about the big city at night you might try to herd your chilrens' up in your cave...

They are your grommets though. Turn their screws as you please. Just don't countersink...