This function scans a custom text with uncensored profanities and check if its words match with the ones contained in a specific database table. Once the check is completed, it returns a list with all the profanities found in the given text (in other words, all the matches found).
Note: Profanities will be listed only once for each value of the table matched, even if the same word is repeated in the text. For example, for the sentence:
"What the hell! Just leave that damn book in the damn library!"
the function will list only the elements "damn" and "hell", even if the former is repeated twice.
Parameters
Text: The text to parse.
Language: The language of the text. Supported languages are: italiano, english, portuguese, francais, spanish, deutsch, japanese, russian, thai, korean, hebrew, arabic, indian, chinese, greek, vietnamese, chinese_simplified, bahasa, rumenian, georgian, burmese.
Sample response:
<string xmlns="http://www.etere.eu/EtereWSApi"><?xml version="1.0" encoding="utf-8"?> <WSApiResponse> <Function Name="PC_GetProfanitiesList"> <Profanities><Profanity>damn</Profanity><Profanity>hell</Profanity></Profanities> </Function> </WSApiResponse> </string>