speak-no-evil
v0.0.9
Published
Searches strings for the existance of words specified in a blacklist
Downloads
19
Readme
Methodology:
Searches a string for a substring match of each word/phrase in the blacklist
Usage:
# create a filter with the default list
Filter = new SpeakNoEvil()
# create a filter with a custom list
Filter = new SpeakNoEvil(["a", "b", "c"])
# check a string for profanity
result = Filter.check("a possibly profane string")
if result
console.log "string was profane"
Running tests
npm install -g grunt mocha
npm test