profanity-anaylsis
v0.0.1
Published
Not all bad words are equal. This filter rates a blob of text based off bad words to determine if the blob is too vulgar to use.
Downloads
2
Readme
ProfanityAnaylsis
Not all bad words are equal. This filter rates a blob of text based off bad words to determine if the blob is too vulgar to use.
How To use.
var filter = require('profanityAnalysis'); var results = filter.analyzeBlob(yourString);
the returned results will contin the following object. { indexOfProfanity: [], //Array consisting of the indexes of bad words and the weight the bad word is givin in the config. score: 0, //The total profanity weight values added together precentage: 0 //The total number of words over the weight value of the profantiy - totalWords/score };