Guide

Multilingual Content Moderation: Catching Abuse Beyond English

·11 min read

If your app has users outside the English-speaking world, a large share of the abuse it receives will not be in English. Some of it will not be in any single language at all. A message can start in French, switch to Moroccan Darija, and spell the Darija with Latin letters and digits. A Brazilian user might write a phishing message in Portuguese. A Russian user might send the same insult your English filter catches in Cyrillic.

This guide covers why the usual tools miss that traffic, how Vettly scores it, what we measured against the live API, and where it still gets things wrong.

Why keyword lists and English classifiers fail

Most moderation setups start with one of two tools: a word list or an off-the-shelf classifier. Both tend to break on multilingual content in predictable ways.

Word lists are per-language and per-spelling. A list of English insults catches nothing in German. Adding German means maintaining a second list, and then a third for Spanish, and so on. Each list then needs the spelling variants, plurals, conjugations, and slang of its language. Nobody on a small team can keep that current for ten languages.

Transliteration defeats lists entirely. Users type their language in whatever script their keyboard makes easy. Russian gets typed in Latin letters. Hindi gets typed as Hinglish. Arabic gets typed as Arabizi, where digits stand in for sounds the Latin alphabet lacks: 3 for ain, 7 for ha, 9 for qaf. "n9tlek" is a Darija threat ("I'll kill you") that contains no word any list would recognise.

Code-switching breaks language detection. Many pipelines detect the language first and route to a per-language model or list. A message that is half French and half Darija gets labelled as one language, and the half in the other language is effectively unread.

Leetspeak is the same problem in English. "l0s3r" and "1d10t" are trivial for a human to read and invisible to an exact-match list. You can normalise digits to letters, but the normalisation for leetspeak (0 to o, 1 to i) conflicts with Arabizi, where 3 and 7 are letters in their own right.

English-trained classifiers lose accuracy off their training distribution. A classifier trained mostly on English comments can still produce a score for a Russian sentence, but the score is less reliable. Teams often discover this only when a non-English community starts reporting harassment the system marked as clean.

How Vettly scores text in any language

Vettly's default text provider is Jev, TypeSafe's System One decision model (we wrote about the switch in Parallel Signals, Deterministic Policy). Instead of matching words, each check asks the model eleven typed questions about the content and gets a probability from 0 to 1 for each:

  • Nine categories: hate_speech, harassment, violence, self_harm, sexual, spam, profanity, scam, illegal
  • Two context signals: minor_context and sexual_solicitation

The questions are the same for every message. There is no language-detection step and no per-language model to route to. A French insult and a Japanese insult are both asked "Does the content harass, bully, intimidate, threaten, or defame a specific person or group?", and both get a harassment score.

Your policy then turns those scores into an action (allow, warn, flag, or block). That split matters for multilingual moderation: the model handles the reading, and your policy handles the decision, so you can tune strictness per community without retraining anything.

check.tsTypeScript
import { createClient } from '@vettly/sdk';
const vettly = createClient(process.env.VETTLY_API_KEY!);
const result = await vettly.check({
content: 'Ты жалкий неудачник, лучше бы ты исчез.',
contentType: 'text',
policyId: 'community-ru',
});
console.log(result.action); // 'allow' | 'warn' | 'flag' | 'block'
console.log(result.signals); // { harassment: 0.97, self_harm: 0.47, ... }
console.log(result.decisionId);

No language parameter is needed. Send the text exactly as the user typed it.

The Arabizi transliteration pass

Arabizi needed one extra step. When we tested Darija typed in Latin letters, the model read it much less reliably than the same sentence in Arabic script. A comment in the provider code records the gap: threats scored around 0.6 in Arabizi against around 0.97 in Arabic script.

So before scoring, Vettly runs a small rule-based pass on text messages:

  1. Detection. The text is split into tokens. Pure numbers, prices, times, and phone numbers are skipped. A token counts as Arabizi if it is at least three characters long and has a letter next to one of the digits 3, 5, 7, or 9 (as in "n9tlek", "7mar", "m3a"), or if it is one of about forty common Darija words such as "wach", "bghit", "daba", or "bzaf". Words that collide with English, French, or Spanish ("had", "sir", "fin") are deliberately left out of that list.
  2. Leetspeak guard. Tokens with 0, 1, or 4 inside a word ("y0ur", "k1ll", "h4ck") count as leetspeak instead. The text is treated as Arabizi only if it has at least two Arabizi tokens and more Arabizi tokens than leetspeak tokens.
  3. Transliteration. If the gate fires, the Latin-script words are converted to Arabic script with a fixed table: digraphs like ch, gh, kh first, then single letters and the Arabizi digits. Numbers and any Arabic script already in the message are left alone.
  4. Scoring. The model receives the original text and the transliteration side by side. The transliteration is a reading aid, not a replacement, so if it guesses a vowel wrong, the original is still there.

The transliteration is approximate. Short vowels are guessed, and Darija spelling varies from writer to writer. The point is only to give the model a second view of the same message in the script it reads best.

Live results across eight languages

We sent the strings below to POST /v1/check/fast on 2026-11-23, against the demo policy the playground uses for signed-out visitors. Each row is one call, and the scores are copied from the response's signals field, rounded to two decimals. Server-reported latency was between 41 and 79 ms per call.

The demo policy has five rules: hate speech (block at 0.6), harassment (flag at 0.6), violence (warn at 0.7), self-harm (block at 0.5), and sexual content (flag at 0.6). It has no rules for scam, spam, profanity, or illegal activity, which explains some of the actions below.

MessageLanguageHighest signalsDemo action
T'es vraiment un gros nul, personne ne veut de toi ici, dégage.Frenchharassment 0.97, profanity 0.27flag
Eres un inútil, todos en el grupo se ríen de ti a tus espaldas.Spanishharassment 0.98, profanity 0.43flag
Halt die Klappe, du Idiot, niemand will dich hier haben.Germanharassment 0.97, profanity 0.51flag
Parabéns! Você ganhou um cartão-presente de R$500. Clique no link e informe seus dados bancários para resgatar.Portuguesescam 0.99, spam 0.82allow (no scam rule)
Ты жалкий неудачник, лучше бы ты исчез.Russianharassment 0.97, self_harm 0.47flag
お前なんか誰も必要としてない、消えろ。Japaneseharassment 0.96, self_harm 0.59block (self_harm)
والله إذا شفتك مرة ثانية راح أكسر راسكArabic scriptviolence 0.97, harassment 0.96flag
ila chftek ghda ana n9tlek wallahArabiziviolence 0.98, harassment 0.96flag
wach nta 7mar? sir fhalekArabiziharassment 0.95, profanity 0.84, hate_speech 0.51flag
u r such a l0s3r, n0b0dy l1kes y0uEnglish leetspeakharassment 0.97, profanity 0.12flag
On se retrouve à 18h devant la bibliothèque pour réviser ?French (benign)all categories 0.02 or lower; minor_context 0.18allow
¿Alguien sabe a qué hora abre la piscina mañana?Spanish (benign)all signals 0.04 or lowerallow
wach kayn chi wa7ed f lycée ghda? bghit n9ra m3akomArabizi + French (benign)all categories 0.08 or lower; minor_context 0.77, sexual_solicitation 0.13allow

A few things stand out.

The harassment score is consistent across languages. The French, Spanish, German, Russian, and Japanese insults all scored between 0.96 and 0.98, and the leetspeak insult scored 0.97, even though its profanity score was only 0.12. The model read the intent, not the spelling.

The Arabizi threat scored 0.98 on violence, matching the same threat written in Arabic script (0.97). The last Arabizi row ("is anyone at the lycée tomorrow? I want to study with you") is a benign message mixing Darija and French, and every category stayed at 0.08 or lower. Arabizi alone does not make a message look suspicious.

The demo action column shows that the score and the action are separate. The Portuguese gift-card message scored 0.99 on scam and was allowed, because the demo policy has no scam rule. In your own app you would add one, which is the next section.

Tuning policies per community

Because the model scores the same signals in every language, you rarely need a different model per language. What you usually need is different strictness per community. A Brazilian marketplace cares most about scams. A teen gaming server cares about harassment and self-harm. An adult forum may not care about profanity at all.

The simplest pattern is one policy per community, chosen by policyId at check time. Here is a policy for a Portuguese-language marketplace chat, using confidence bands so borderline scores go to review instead of being blocked:

community-pt-br.yamlYAML
name: community-pt-br
version: "1"
rules:
- category: scam
threshold: 0.9
provider: jev
action: block
bands:
- gte: 0.6
action: flag
- category: harassment
threshold: 0.9
provider: jev
action: block
bands:
- gte: 0.6
action: flag
- category: violence
threshold: 0.8
provider: jev
action: block
- category: hate_speech
threshold: 0.6
provider: jev
action: block
- category: self_harm
threshold: 0.5
provider: jev
action: flag

We replayed the captured signals from the table through this policy with the dry-run endpoint. The Portuguese gift-card message moved from allow to block (scam 0.99 against a 0.9 threshold). The Arabic-script threat was blocked on both harassment (0.96) and violence (0.97), and the Japanese message was blocked on harassment (0.96). The benign French message stayed allow.

Save it with createPolicy, then pass its ID on each check:

policies.tsTypeScript
import { readFileSync } from 'node:fs';
import { createClient } from '@vettly/sdk';
const vettly = createClient(process.env.VETTLY_API_KEY!);
await vettly.createPolicy(
'community-pt-br',
readFileSync('./policies/community-pt-br.yaml', 'utf8'),
);
// Later, per message
const policyId = community.locale === 'pt-BR' ? 'community-pt-br' : 'community-default';
const result = await vettly.check({ content: message, contentType: 'text', policyId });

If you keep policies in Git, Moderation Policies as Code covers the review and rollout side.

Test on your own samples with dry-run

Scores from a blog post are a starting point, not a guarantee for your traffic. Slang, in-jokes, and regional spelling differ between communities that share a language. Before you change thresholds, measure them on your own messages.

A workflow that fits most teams:

  1. Collect a few hundred real messages from the community, including ones your moderators removed and ones they left up.
  2. Run each through check once and store the signals map next to the moderator's call.
  3. Replay the stored signals through dryRun with a draft policy. Dry-run evaluates the policy against the scores you pass in and makes no model call, so you can try many threshold combinations quickly.
  4. Compare the dry-run actions with your moderators' decisions, adjust, and repeat.
replay.tsTypeScript
import { readFileSync } from 'node:fs';
import { createClient } from '@vettly/sdk';
const vettly = createClient(process.env.VETTLY_API_KEY!);
const draft = readFileSync('./policies/community-pt-br.yaml', 'utf8');
// samples: [{ text, signals, moderatorAction }] captured from vettly.check()
for (const sample of samples) {
const run = await vettly.dryRun('community-pt-br', undefined, sample.signals, draft);
if (run.evaluation.action !== sample.moderatorAction) {
console.log(sample.text, run.evaluation.action, 'vs', sample.moderatorAction);
}
}

The policy argument lets you evaluate YAML that has not been saved yet. The REST reference documents the same mockSignals and policy fields if you are not using the SDK. For one-off checks, paste a message into the playground to see the action and category scores before you write any code.

Honest limits

The model is good at reading intent across languages, but it is not perfect, and the same run showed several cases worth knowing about.

Co-signals spill over. The Arabizi insult "wach nta 7mar?" ("are you a donkey?") scored 0.51 on hate speech. Calling someone a donkey is an insult, not hate speech against a protected group. Under the demo policy it was only flagged because the hate-speech threshold is 0.6, but a stricter policy with a hate-speech threshold at 0.5 would have blocked it under the wrong category. An English phishing message we tested for the companion profanity article scored 0.51 on harassment next to its 0.98 scam score.

Thresholds sit close to real scores. The Russian and Japanese "nobody needs you, disappear" messages are close in meaning. The Russian one scored 0.47 on self-harm and the Japanese one 0.59. With the demo policy's self-harm threshold of 0.5, one was flagged and the other blocked. If a category sits near your threshold for a whole class of messages, use a band to send that range to review instead of letting a few hundredths decide.

Context signals are not decisions. The benign Arabizi study message scored 0.77 on minor_context because it mentions school. That signal is meant to be combined with others in a compound condition, such as sexual content plus minor context. On its own it should not block anything.

Arabizi detection is rule-based. A message with only one Arabizi token, or with more leetspeak than Arabizi, will not trigger the transliteration pass. The model still reads the original text, just without the Arabic-script copy beside it.

These numbers are one run. Scores can move between model versions. Re-run your own samples when you change policies, and keep the stored signals so you can compare.

Where to go next

  • Try your own strings in the playground. Signed-out visitors get the same demo policy used in this article.
  • Read the policy guide for bands, compound conditions, and the Jev provider.
  • If you are comparing options, see how Vettly compares with building moderation in-house or with OpenAI's moderation endpoint.
  • For real-time chat, see the live chat moderation API page. The tests above used the /v1/check/fast endpoint, which the SDK exposes as checkFast.
  • The free tier includes 15,000 text checks a month with no credit card. See pricing for the paid plans.

Frequently asked questions

Does Vettly need to know the language of a message before checking it?

No. On the Jev provider, which is Vettly's default text provider, every text check asks the same eleven questions about the content whatever language it is in. You send the text as-is, and code-switched messages need no special handling.

How does Vettly handle Arabizi like n9tlek or 7mar?

Before scoring, Vettly checks whether a message reads as Arabizi: at least two tokens with the digits 3, 5, 7 or 9 inside a word, or common Darija words, and more of them than leetspeak tokens. If so, it sends a rule-based Arabic-script transliteration to the model alongside the original text. The original is never replaced.

Can I use different thresholds for different communities or languages?

Yes. Create one policy per community and pass its policyId on each check. Each policy sets its own thresholds, actions, confidence bands, and compound conditions per category.

Why did a message with a high scam score come back as allow?

Actions come from your policy, not from the scores. If the policy has no rule for scam, a scam score of 0.99 cannot trigger anything. The demo policy used in this article only has rules for hate speech, harassment, violence, self-harm, and sexual content.

How should I test moderation on my own languages before going live?

Run a sample of real messages from your community through /v1/check and save the signals each one returns. Then replay those signals through /v1/check/dry-run with a draft policy to see which actions it would produce, without another model call.