Skip to main content
Version: 6.0.0

ProfanityIdentifyBadWords

Checks supplied text for profanity and returns a list of bad words.

ServiceOperation
profanityPROFANITY_IDENTIFY_BAD_WORDS

Usage​

http://localhost:3000
string text = "foul language";
string languages = "en,fr";
bool flagEmail = false;
bool flagPhone = false;
bool flagUrls = false;
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.ProfanityService.ProfanityIdentifyBadWords(text, languages, flagEmail, flagPhone, flagUrls, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"foundCount": "2",
"foundList": [
"bubby",
"poop"
]
}
}
Common Error Code

Status Codes​

CodeNameDescription
40421WEBPURIFY_NOT_CONFIGUREDWebPurify not configured
40422WEBPURIFY_EXCEPTIONGeneral exception occurred
40423WEBPURIFY_FAILUREWebPurify returned an error (Http status != 200)
40424WEBPURIFY_NOT_ENABLEDWebPurify not enabled

Method Parameters​

ParameterDescription
textThe text to check
languagesOptional comma delimited list of two character language codes
flagEmailOptional processing of email addresses
flagPhoneOptional processing of phone numbers
flagUrlsOptional processing of urls