This is a multi-language profanity check for validating text is clear and doesn't contain any profane words
npm install profanity-checkThis is a multi-language profanity check for validating text is clear and doesn't contain any profane words
profanity-check` supports English languages however you can as many language as you wish through the configuration object
`
import {Filter} from 'profanity-check'
const defaultFilter = new Filter()
// or
const multiLanguageFilter = new Filter({languages: ["arabic", "english", "french"]})console.log(defaultFilter.isProfane("what the fuck is going on?")) // true
console.log(multiLanguageFilter.isProfane("انها عاهرة")) // true
``