A JavaScript library to detect bad words. It uses the Urban Dictionary API and a built in dictionary.
Warui requires axios
to work.
Install as an npm package
npm install --save axios warui
Then import
or require
the instance.
or via CDN
https://unpkg.com/warui
https://unpkg.com/axios
Then use as Warui
or window.Warui
Warui.classify(term: String, threshold: Number): Promise<Boolean>
Classify is
an async
function
Released under MIT