Profanities are logged under the abuse section, with the type attribute set to profanity.
Racial and other derogatory slurs are not considered profanities. They are handled by the bigotry type.
The severity levels are as following:
low- very mild profanities that are often not considered profanitiesmedium- the bulk of profanitieshigh- highly inappropriate profanitiesextreme- usually "absolutely unacceptable" profanities (e.g. F-word in English or the mat category in Slavic languages)
Attempts to obfuscate (e.g. with asterisks) does not impact the severity.
The following tags are often associated with the profanity type:
sex- profanities related to sexual activities or organs
Request:
{
"language":"en",
"content":"i hate this fu*r",
"settings":
{
"snippets":true, "explain":true
}
}Response:
{
"text": "i hate this fu*r",
"abuse": [
{
"sentence_index": 0,
"offset": 12,
"length": 4,
"text": "fu*r",
"type": "profanity",
"severity": "extreme",
"tags": [
"sex"
]
}
]
}