05 · Safety · Open weights

Abuse flagged in 12 Indian languages and English.

cbx-indic-profanity-detector-58M

Flags profanity, insults, hate and sexual content in 12 Indian languages and English, in native script, romanized or code-mixed.

Real inputs it was built for.

Open any example in the Playground to see the live output.

Hinglish abuse

saala harami, teri aukaat kya hai

Run it

English insult

What a stupid useless idiot, nobody asked for your opinion.

Run it

Casual swearing

bc aaj traffic bahut kharab hai, ek ghanta phas gaya

Run it

Clean (Hindi)

शाम को बारिश हो सकती है, छाता साथ रखना।

Run it

Clean (Tamil)

நாளைக்கு கூட்டம் பத்து மணிக்கு தொடங்கும்.

Run it

Benchmark

Measured against the alternative.

0.00

Offensive F1 — gold test set, 3,980 texts

Full results ↗
  • cbx-indic-profanity-detector-58M0.89
  • TF-IDF + logistic regression0.87
  • Lexicon rule (598 terms)0.70

From the model card

An offensive-content classifier for 12 Indian languages and English: Hindi, Bengali, Marathi, Tamil, Telugu, Kannada, Malayalam, Gujarati, Punjabi, Odia, Assamese, Urdu and English, written in native script, in Latin letters (romanized) or code-mixed. Give it a comment, message or short passage and it returns four independent labels, profanity, insult, hate and sexual, plus an overall offensive flag.

It has 57.6M parameters: mmBERT-small with its vocabulary pruned to the 40,000 tokens these languages use, distilled from a fine-tuned mmBERT-base. Other sizes: 36M, 17M. On a CPU (8 threads, fp32) one short comment takes about 14 ms and a full 256-token chunk about 51 ms.

Licence: Apache-2.0. Read Intended use and disclaimer before using it. In short: it is an aid for people who review content, not a judge of content or of people.

Model

58M

Licence

Apache 2.0

Fine-tuned from

jhu-clsp/mmBERT-small

Read the full model card ↗

Full results. Every number, from the card.

Gold test set: 3,980 texts never used in training: about 300 social-media comments per language (from the test splits of the source datasets; none for Gujarati, Punjabi, Odia and Assamese, which have no labelled comment data) and about 107 web passages per Indic language (FineWeb-2 documents held out from training). Each text was labelled by two LLMs independently (Gemma 4 31B and Claude Haiku 5.5) following a written annotation guide; Claude Sonnet 5.5 decided their disagreements. No person reviewed the gold labels, so they contain errors.

F1 per label at the shipped thresholds, the share of clean gold texts (all four labels no, 1,693 texts) on which any label fires, and recall of hate on Hindi HateCheck (Röttger et al. 2022; 2,488 hateful test cases):

ModelprofanityinsulthatesexualoffensiveClean texts flaggedHateCheck-hi hate recall
this model (58M)0.800.690.490.850.893.5%0.23
36M (same family)0.700.700.510.830.893.6%0.17
17M (same family)0.760.660.490.850.884.0%0.24
Lexicon rule0.78—0.360.270.702.9%0.00
TF-IDF + logistic regression0.640.550.460.850.877.6%0.08

Lexicon rule: a word list of 598 terms we wrote; it has no insult label. TF-IDF: character n-grams with logistic regression, trained on the same data.

By language (offensive F1 and clean texts flagged, this model):

Languageoffensive F1Clean flaggedGold texts
Hindi (hi)0.891.8%comments + web
Bengali (bn)0.904.8%comments + web
Marathi (mr)0.884.4%comments + web
Tamil (ta)0.885.1%comments + web
Telugu (te)0.851.4%comments + web
Kannada (kn)0.915.8%comments + web
Malayalam (ml)0.881.5%comments + web
Gujarati (gu)0.970.0%web text only
Punjabi (pa)0.910.0%web text only
Odia (or)0.9511.1%web text only
Assamese (as)0.962.8%web text only
Urdu (ur)0.884.8%comments + web
English (en)0.872.1%comments

Gujarati, Punjabi, Odia and Assamese are scored on about 107 web passages each, with no social-media comments: their high F1 says little about comments in those languages, where no labelled data exists.

By script (offensive F1): romanized 0.91, native script 0.87, mixed 0.80.

By text type (F1, comments / web): profanity 0.78 / 0.82, insult 0.70 / 0.16, sexual 0.36 / 0.92.

Know its limits. Before you ship it.

Limitations

  • hate is weak. On the gold set about 45% of hate flags are wrong (often strong personal abuse with no identity target) and it finds 45% of hateful texts; on Hindi HateCheck it finds 23%. Do not rely on it to find hate speech, and check every hate flag.
  • Mild insults are often missed (insult recall 0.56): rude but not vulgar words such as "idiot" or "bewakoof" often score below the threshold, sometimes on offensive too.
  • Insults in web text are rarely found (F1 0.16), and sexual content in comments is weak (F1 0.36).
  • False alarms vary by language: 11% (Odia) and 6% (Kannada) of clean gold texts are flagged in the worst languages, against 3.5% overall.
  • Gujarati, Punjabi, Odia, Assamese and native-script Urdu have little or no labelled comment data; expect more errors on comments in these languages.
  • Bias. Dialect words, caste and community terms, reclaimed words and counter-speech that quotes abuse can be flagged wrongly; mild words can be missed. Errors are not spread evenly across languages, scripts or communities.
  • Labels are from LLMs, not people, both for training and for the gold set. The guide's choices (for example, that criticism of a political party is not hate) are one reasonable reading, not the only one.
  • Context. The model sees one text. Sarcasm, quotes, in-group banter and comments about images or videos are often misread.

Training data

What it learned from.

About 248,000 texts: social-media comments and posts from nine public datasets (credited in the table and in NOTICE) and about 7,000 web passages from FineWeb-2. The source datasets each label "offensive" their own way; their labels were mapped to the four labels by a written guide and left blank where they do not say (for example, a dataset that marks a comment "abusive" says nothing about which label applies). About 12,000 comments and 7,000 web passages were labelled with all four labels by two LLMs (Gemma 4 31B and Claude Haiku 5.5), with gpt-5.4-mini deciding where they disagreed. The models were then distilled from a larger fine-tuned mmBERT-base.

MACD has no licence file; we use it with attribution to its authors and ShareChat. Hindi HateCheck (CC BY 4.0) was used for testing only.

3 sizes. Smaller is faster, larger is more accurate.

Run it on your own data. In the CobuildX Console.

Sign in to the console to call this model live, compare sizes and create an API key.