Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.
/ ProfanityDetector Public archive

Several utils for recognizing offensive terms in strings

Notifications You must be signed in to change notification settings

uroria/ProfanityDetector

Repository files navigation

Profanity Detector for Java applications

How to use this:

String someText = "Hello, I'm a random text!";

// The given percentage defines the sensitivity in decimal. You also need to specify the offensive words for the check
boolean offensive = ProfanityDetector.containsOffensiveWords(someText, percentage, offensivewords);