This function can scan 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, the function returns the provided text, with profanities (the matched words) replaced by asterisks.
Parameters
Text: The text to parse that contains uncensored profanities.
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_CensureProfanity"> <CensoredText>what the **** are you doing?</CensoredText> </Function> </WSApiResponse> </string>