Replaces profanity with nonsensical symbols
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.
Additional plugins for this library that I have written include: