Detected utterances indicating mental issues, self-harm, suicidal thoughts, or plans to commit suicide are logged under the abuse section, with the type attribute set to mental_issues.
bodily_harm- self-harmdeath- thoughts about death or suicidethreat- threatening suicide
The severity levels are as following:
low- non-threatening utterancesmedium- utterances indicative of depression or mental illnesshigh- severe depression, thoughts about death, or bodily harmextreme- planning suicide
Request:
{
"language": "en",
"content": "i always feel sad",
"settings": {
"snippets": false, "explain": true
}
}Response:
{
"text": "i always feel sad",
"abuse": [
{
"sentence_index": 0,
"offset": 0,
"length": 17,
"text": "i always feel sad",
"type": "mental_issues",
"severity": "high",
"explanation": "Complaining about regular sadness"
}
],
"sentiment_expressions": [
{
"sentence_index": 0,
"offset": 0,
"length": 17,
"text": "i always feel sad",
"polarity": "negative",
"explanation": "Complaining about regular sadness"
}
]
}