If you want to avoid getting profanity in the translation, regardless of the presence of profanity in the source text, you can invoke profanity filtering on the translation. The option allows you to choose whether you want to see profanity deleted or marked with appropriate tags, or no action taken.
The TranslateArray method takes an “options” parameter, which contains the new element “ProfanityAction”. The accepted values of ProfanityAction are “NoAction”, “Marked” and “Deleted”.
|NoAction||Default. Same as not setting the option. Profanity will pass from source to target.||彼はジャッカスです。||He is a jackass.|
|Marked||Profane words will be surrounded by XML tags <profanity> … </profanity>.||彼はジャッカスです。||He is a <profanity>jackass</profanity>.|
|Deleted||Profane words will be removed from the output without replacement.||彼はジャッカスです。||He is a.|