By · Last updated 2026-02-26

Back to BlogTechnical

Multi-Language NER: English Fails Arabic

English NER models achieve 85-92% accuracy. Arabic and Chinese? Often 50-70%. Learn about the technical challenges and how to build truly.

February 26, 20268 minute read
NERmultilingualArabic NLPChinese NLPPII detection

Multi-Language NER: Challenges in PII Detection

Updated for 2026

The Accuracy Gap

NER models trained on English reach 85–92% F1 on standard tests. Apply those same models to Arabic or Chinese text. Accuracy drops to 50–70%.

For PII work, that gap is a problem. A 70% hit rate means 30% of sensitive data goes unseen.

The causes are not bugs. They come from how writing systems differ.

Four Root Causes

1. Word Boundaries

English splits words with spaces. Tokenization is easy.

Chinese has no spaces at all.

"张伟住在北京"
→ Split first: ["张伟", "住在", "北京"]

A model cannot tag what it cannot find. Splitting must come before NER.

Arabic links letters within a word. Short vowels are left out. Text runs right to left.

"محمد يعيش في دبي"
→ No short vowels, right-to-left, linked letters

2. Morphology

English verbs change in a few ways. Arabic uses a root system. One root creates dozens of words.

كتب (k-t-b, "write")
→ كاتب (writer), كتاب (book), مكتبة (library)

NER must parse roots to find names in derived word forms.

3. Name Conventions

Latin names go First then Last. Names in RTL languages chain family links.

محمد بن عبد الله
(Muhammad son-of Abdullah)

Chinese names put the family name first. Most names are two or three characters long.

张伟 (Zhang Wei) — 2 chars
欧阳修 (Ouyang Xiu) — 3 chars

A model built on Western name patterns will miss these structures.

4. Text Direction

Some languages run right to left. When RTL text holds an English name, visual order and logical order split apart. This is called BiDi text. It requires careful parsing.

F1 Scores by Writing System

LanguageWriting SystemF1 RangeLevel
EnglishLatin85–92%Low
GermanLatin82–88%Low
FrenchLatin80–87%Low
SpanishLatin81–86%Low
RussianCyrillic75–83%Medium
ArabicAbjad55–75%High
ChineseHanzi60–78%High
JapaneseMixed65–80%High
ThaiThai50–70%Very High
HindiDevanagari60–75%High

Non-Latin systems and missing word gaps lower scores across the board.

Three-Tier Solution

We use three tiers to cover 48 languages and writing systems.

Tier 1: spaCy — 25 Languages

For languages with strong, tested models. This covers English, German, French, Spanish, Italian, Portuguese, Dutch, Polish, Russian, and Greek.

Tier 2: Stanza — Complex Languages

Stanford Stanza handles Arabic, Chinese, Japanese, and Korean. It runs word splits and root analysis before NER.

Tier 3: XLM-RoBERTa — Low-Resource Languages

For languages with no dedicated models. Thai, Vietnamese, Hindi, Bengali, Hebrew, Turkish, and Farsi go here. It handles mixed-language text with no explicit flags needed.

RTL and BiDi

Right-to-left text needs extra steps beyond splitting.

Our pipeline:

  1. Normalizes text to logical order.
  2. Runs NER on that order.
  3. Maps entity positions back to visual order.

We strip attached prefixes before NER and add them back after.

"محمد"  — name only
"لمحمد" — "to Muhammad" (prefix on)

Code-Switching

Real documents often mix languages in one line.

"El meeting con John es at 3pm"
"我今天跟John去shopping"

Our pipeline splits by language. It runs the right model on each part. Then it joins results with position mapping.

Internal Benchmarks

Results from internal tests on mixed-language data:

ScenarioF1
English only91%
German only88%
Arabic only79%
Chinese only81%
English-Arabic mix83%
English-Chinese mix84%
English-German mix89%

Setup Notes

The desktop app auto-detects language per document. For mixed-language files, it processes each segment with the right model. No manual step is needed.

Set the language in the API when you know it:

{
  "text": "محمد بن عبد الله",
  "language": "ar"
}

Use auto-detect when you do not:

{
  "text": "محمد بن عبد الله",
  "language": "auto"
}

Custom patterns should cover locale-specific digits:

# Latin employee ID
EMP-[0-9]{6}

# Arabic employee ID (includes Arabic-Indic digits)
موظف-[٠-٩0-9]{6}

See the full entity list. For API setup, visit the API features page. Our GDPR compliance guide covers how detection gaps affect data protection law.


anonym.legal uses a three-tier NER stack — spaCy, Stanza, and XLM-RoBERTa — to cover 48 languages with consistent PII detection.

Sources

Ready to protect your data?

Start anonymizing PII with 285+ entity types across 48 languages.

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

Related reading

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.