Skip to content

Mehul-Codeking/antiabuseapi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

antiAbuseAPI

antiAbuseAPI is a serverless REST API deployed on Vercel that takes in words seperated by '_' or spaces and returns either true or false if the words sent to the endpoint contains any cuss words in any language .

Usage

Send your query string to the end https://antiabuse-api.vercel.app/api/

  • If the string contains abuse words then the api will respond with JSON true
  • If the string does not contain an abusive word then the api will respond with JSON false

Requirements

vercel CLI
nodejs

Deployment

sudo npm i -g vercel
git clone https://github.com/adithyapaib/antiabuseapi
cd antiabuseapi
npm i
vercel dev

Words contribution

If you would like to contribute more words to this API your are free to so inside the api/gali.ts file. make sure the words are in the array of strings format (follow the syntax).

Syntax

  • If the word is in a language that has a variable named with it then and text is the word that you want to insert.

const hindi: string[] = [ "text", .....];

  • If you want to add a gali in a language that is not in the program, you can definitely do so as follows.
  • If the word is in a language that doesn't have a variable named with it then and text is the word that you want to insert.
const  language_name: string[]  = [ "text", .....]; 
let  language_nameGali: string[]  =  language_name.map(name  =>  name.toLowerCase());
const  gali: string[]  =  [...hindiGali, ...tuluGali, ...language_nameGali];

🤝 Our Contributors

Dont forget to star this repo and follow me!

About

An API endpoint that detects cuss words.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%