Turkish offensive language detection

Offensive language detection for Turkish text.

Send a Turkish comment, message or review as it was written. Detectivision answers with each flag it raised, such as an insult or hate speech, and how sure it is. English works the same way, in the same call.

What it finds

Five flags for offensive Turkish

Every account has these text flags. Ask for all of them, or only those your rules need.

In code

Check a Turkish comment

Request
curl https://api.detectivision.ai/api/v1/moderation \
  -H "Api-Key: $DETECTIVISION_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "text_moderation",
    "input": "Sen salak birisin, kimse seni istemiyor.",
    "mode": "detect",
    "flags": ["insult", "hate", "racism", "sexism", "sexual"]
  }'
Response
{
  "id": 9105,
  "type": "text_moderation",
  "mode": "detect",
  "status": "completed",
  "flagged": true,
  "flags": [{ "flag": "insult", "confidence": 0.94 }],
  "checked": ["hate", "insult", "racism", "sexism", "sexual"],
  "unchecked": [],
  "tookMs": 610,
  "usage": { "charged": 2, "remaining": 9998 }
}

The text is checked exactly as you send it, Turkish characters and all: nothing is trimmed or translated first.

How it works
  1. Send it as written

    No need to translate or clean up a text first. Send it with its Turkish characters, up to 10,000 characters.

  2. Act per flag

    Remove hate and racism at once, hold insults for a moderator, or only warn. Each flag is its own decision.

  3. Both languages, one call

    There is no language to set: Turkish and English texts go to the same endpoint, so a community that writes in both needs one integration.

Where it helps
Questions

Frequently asked

Do I need to say which language a text is in?

No. There is no language setting: send the text, in Turkish or in English.

Does it catch Turkish swear words?

Swearing aimed at someone raises insult. A flag for swear words on their own is not among the flags every account has.

Which other languages work?

Turkish and English. Text in other languages is checked, but the results are not reliable.

What does a check cost?

A text costs 1 credit per started 2,500 characters when the answer comes by webhook, and twice that when it comes at once. Asking for fewer flags never costs more.

Is there a free trial?

Yes. The plans, and the free trial, are on the pricing page.