Bad Words
API - Bad Words in Text
REQUEST
Analyze text and return any bad words founds for 27 languages, also returns cleaned version of the text.
Bad Word Languages Include
Arabic, Czech, Danish, German, English, Esperanto, Spanish, Castilian, Persian, Finnish, French, Hindi, Hungarian, Italian, Japanese, Korean, Dutch, Flemish, Norwegian, Polish, Portuguese, Russian, Swedish, Thai, Klingon, Turkish, Chinese.
https://api.moderatecontent.com/text/? exclude=ho,hell& replace=******& key=your_api_key& msg=hello how are you, dillweed
ARGUMENTS
exclude
string
Optional
A comma deliminated list of words to exclude from bad words check. Often words that your community would not be offended by.
ho,hell
replace
string
Optional
A string containing the characters to replace any found bad words with.
******
key
string
The api key used to reference your account within the system.
f96f44847704d2291b2967536afe8898
RESPONSE
{ "origional_msg": "hello how are you, dillweed", "clean": "hello how are you, ******", "exclude": [ "ho", "hell" ], "bad_words": { "dillweed": 1 } }
origional_msg
string
The origional message submitted to the API.
hello how are you, dillweed
clean
string
The origional message submitted to the API with the bad words removed.
hello how are you, ******
exclude
string
The comma deliminated list of words excluded from bad words check.
ho,hell
bad_words
array
An array of inappropriate words and the number of times they appear within the text captured by the OCR. Our list contains bad words for 27 languages.
{
"dillweed": 1
}
error_code
integer
A code representing the type of error returned. The value 0 means no error was found.
1024
error
integer
Optional
A message representing the type of error returned. This occurs when the error_code is not 0.
No url specified in querystring