Check For Profanity & Hate Speech
checkProfanityV2 is the basic filter and will soon be removed in later versions!
Checking For Profanity & Hate Speech (V3) (Recommended)
Example
In this example, the string "You suck" is evaluated using ML with a strictness level of 60%. Setting the strictness too low may lead to false positives, while setting it too high may reduce accuracy. It is recommended to leave it at 60%
Checking for Profanity & Hate Speech (V2) (Not Recommended) (Soon To Be Removed)
Example
In this example, the string "shit" is checked against a word list, if a word appears, it will send "STOP" else "SEND". checkProfanityV2 does not remove hate speech and can be inaccurate.
Last updated