A community based multilanugal badwords database and detection api
This repo is mostly dependent upon pull requests
from the contributers to improve the accuracy of the api.
- you can use it as database of badwords and implement your own filter functions
- you can use it as api for your app in development enviroment (Host it on your own for production apps) but still can handle good ammount of traffic
badwords has some cool api endpoint to intreact with the documentation (not compeleted yet) can be find here
hosted on vercel and deta for now
https://badwords.deta.dev/api
>https://badwords.vercel.app/api
/
the information about api/langs
information about languages in database/check
checks if a words is present in database/listall
returns a list of all positives & negatives in the payload specified/clean
advanced cleans and returns the payload/simpleclean
simple cleans and returns the payload
languages
array of numbers binded to languages (only specified languages will be check for presence of badword)layers
the protection layer of advanced search more the layer more time it takes for response but decreased the chance of missing badwords (currently only 2 supported[1,2]
)placeholder
the replacer to the badword (forced length = 1)exclude
the array of words not to check or ignoresplitter
the splitter for simple cleanjoiner
the joiner of simple clean
- Advanced
clean
don't work on Unicode (non-aplhabetical to be specify) instead usesimpleClean
endpoint
https://badwords.vercel.app/api/clean
{
"payload": "This is a payload",
"options": {
"languages": [0, 1, 2],
"layers": [1, 2],
"placeholder": "#"
}
}
Make a pull request
after adding few more word cases in the /data/{respectiveFile}
more words and languages means more accuracy.
- the
positive
array of the datalist has all positive cases - the
negative
array of the datalist has all negative cases for example assassin's
Yea ik its a stupid idea for badwords cuz no one really cares but i wanted to make it so i did 😉