Can AI moderate text for hate speech and harassment?
Yes, for most of it. A model reads every message as it is sent and says which kinds of abuse it finds, each with how sure it is; people decide the cases it is unsure about. Detectivision does this for text in English, Spanish, Portuguese, French, German, Italian, Turkish, Arabic, Russian, Hindi, Chinese and Japanese, with one API call per message.
Which flag finds what
Every account has these text flags. Ask for the ones your rules cover.
| Abuse | Flag | What it finds |
|---|---|---|
| Insults | insult | Words that attack or demean a person. |
| Hate | hate | Hostility toward a group of people. |
| Racism | racism | Abuse about race, ethnicity or origin. |
| Sexism | sexism | Abuse about sex or gender. |
| Sexual harassment | sexual | Sexual language, such as unwanted sexual remarks. |
| Self-harm | self_harm | Talk of suicide or self-harm, so someone can reach out. |
What a model cannot settle alone
A model judges the text it is given. These need a person, or context the text does not carry.
Context across messages
Each text is judged alone. A threat spread over several messages, or a reply that is only abusive next to what it answers, needs the thread.
Quoting and reporting
A message that quotes abuse to report it can read like the abuse itself.
New slang and coded words
Words invented to get past filters change faster than any model.
Other languages
English, Spanish, Portuguese, French, German, Italian, Turkish, Arabic, Russian, Hindi, Chinese and Japanese. Text in other languages is checked, but the results are not reliable.
Check before it is posted
Send each message as it is written and hold it when one of your flags is raised: an answer comes at once.
Draw your own line
Every flag comes with its confidence, 0 to 1. Block above one line, send what falls between to a moderator, let the rest through.
Comments held for review can go with "async": true, at half the price; each result comes by webhook.
Moderators take your own actions, such as Remove or Ban, from the dashboard’s Logs, where each check keeps its actions; your system gets each one by webhook.
Check one message
curl https://api.detectivision.ai/api/v1/moderation \
-H "Api-Key: $DETECTIVISION_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "text_moderation",
"input": "You are an idiot",
"mode": "detect",
"flags": ["insult", "hate", "racism", "sexism", "sexual"]
}'{
"id": 1051,
"type": "text_moderation",
"mode": "detect",
"status": "completed",
"flagged": true,
"flags": [{ "flag": "insult", "confidence": 0.97 }],
"checked": ["insult", "hate", "racism", "sexism", "sexual"],
"unchecked": [],
"tookMs": 90,
"usage": { "charged": 2, "remaining": 9998 }
}A text of up to 2,500 characters is 1 credit by webhook, 2 for an answer at once.
Frequently asked
Can AI detect harassment in chat messages?
Yes: insults, hate, racism, sexism and sexual language, each as its own flag with a confidence. Harassment spread over many messages needs the thread, which a person reads.
Will it replace human moderators?
It replaces reading every message. People still decide what the model is unsure about, and the appeals.
How do I know it works on my community’s language?
Try it on your own messages first: start the free trial and send them through the dashboard’s playground or the API.
Which languages are supported?
English, Spanish, Portuguese, French, German, Italian, Turkish, Arabic, Russian, Hindi, Chinese and Japanese. Text in other languages is checked, but the results are not reliable.
Does Detectivision remove messages itself?
A moderator can open a check in the dashboard’s Logs and see its flags, your metadata and your actions. You define those actions, such as Approve or Ban; when a moderator takes one, your system gets a moderation.action webhook and carries it out. Detectivision never acts on your platform itself.
Hate, racism and sexism in text and images.
Insults, hate, harassment and self-harm in chat.
Insults and hate speech in Turkish text.
Why English-first tools miss Arabic and Turkish abuse, and what each API lists.
Content a moderation system flags although it breaks no rule.
Check voice messages for profanity, insults and hate speech, with the start and end second of each finding: how it works, what to do next, which APIs do it.
Why English-first moderation misses Arabic and Turkish abuse, which APIs list both languages for which categories, and how to test one on your own messages.
Scammers write phone numbers, WhatsApp handles and IBANs on photos to move a deal off your platform. How to detect them, what to do next, which APIs do it.
Check every image when it is uploaded, then block, blur or hold it when it shows nudity or sexual content. Step by step, with the API call.
Your options for moderating large volumes of user-generated video: sample frames, check asynchronously and send people only what is flagged.