Profanity detection and filtering library. Taken from Raymond's version and extended for ANZ swear words etc
npm install --save swearjaranz
Returns true if the given string contains profanity.
var swearjar = require('swearjar');
swearjar.profane("hello there"); // false
swearjar.profane("hello mother f-bomb"); // true
Replaces profanity with asterisks.
var clean = swearjar.censor("f-bomb you"); // **** you
swearjar-node
is based on Swearjar (Ruby) and Swearjar PHP.