A configurable RegExp-based profanity filter that swaps out obscene words for grawlixes — long strings of emoticons or typographical symbols often used to represent swearing in comic strips and cartoons. Primarily aimed at George Carlin’s “Seven Dirty Words”, the library’s default filters have been rigorously tested against potential false positives and Scunthorpe problems. It’s highly extensible, allowing new words and grawlix styles to be easily added as needed. Available via npm.

Plugins:

Additional plugins for this library that I have written include:

Documentation (hosted by GitHub):

Updates related to this project: