no-bads
![npm version](https://badge.fury.io/js/no-bads.svg)
![no-bads](https://github.com/anooj1483/no-bads/blob/master/no_bads.png?raw=true)
Javascript library for finding bad words (profanity).
This library will help you to check bad words in user input fields like feedback form, username entry, messages, etc.
This library is still under development. For avoiding issues like, the word 'Hello' is a bad word because it contains "Hell".
For avoiding this issues, I've created a exceptions list.
Supported Languages: English
If anyone has details of any language, add the json array file containing the bad words in lib/bads folder.
The filename should be like this "bads_language code>.json"
Usage
var NoBads = require('no-bads'),
filter = new NoBads({languages:['en']});
var word = "Where is that hell"
console.log(filter.isBad(word));
Options
{
languages:["en","mal"],
disableDefaultException:true,
include:["custom"],
exclude:["hell"],
}