pm

profanity-matcher

A very simple profanity matcher.

Showing:

Popularity

Downloads/wk

4

Maintenance

No Maintenance Data Available

Package

Dependencies

0

Size (min+gzip)

0.6KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Profanity Matcher

This is a very small, and simple profanity matcher that scans for 900+ words and/or strings. This is not intended to be used as a robust profanity filter, but as a warning mechanism that a string of text might need to be approved or reviewed by a human before it's published.

Extended from sloankev's profanity-scanner. This version returns an array of matched words, or an empty array if none were found. I also combined the existing word list with the google banned word list.

Example Usage

var pf = new Profanity_Scanner()
pf.scan('hello there!') // returns []
pf.scan('stfu.') // returns ['stfu']

pf.add_word('noobie') // returns true if added
pf.remove_word('noobie') // returns true if removed

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100