A simple javascript library to detect inappropriate words in a string. Til now I only have a list of following languages:
- English
- Portuguese
- Spanish
- French
- German
- Italian
Requirements
- Node.js
- NPM
Examples
const InappropriateWords = require('inappropriate-words');
const Filter = new InappropriateWords();
const text = 'Neste texto temos algumas palavras que serão filtradas, merda é uma palavra inapropriada.'
const filteredText = Filter.check(text);
console.log(filteredText); // Needs to return true
Send a pull request with your changes and tests!