Profanity API is an advanced language detection tool that not only detects commonly used cuss words in English, but also has the capability to detect any variations or misspellings of cuss words, as well as unique cuss words in Hindi language, ensuring that it can accurately identify any offensive language used by the user and respond with a "Yes" or "No" accordingly.
- Clone repo using
https://github.com/thisisyashgarg/profanity-api.git. - Install dependencies using
npm install. - Create a
.envfile in the root of the project and add your OpenAIAPI key. - Change the user message as per your wish in the
constants.tsfile. - Run the project using
npm run buildfollowed bynpm start.