Skip to main content
AI Data

Collecting Text Data for Right-to-Left and Complex Scripts

July 2026 · 9 min read · Updated September 2026

Short answer. Pipelines that reach 97% accuracy on Latin documents commonly drop to 85–90% on Arabic or Hebrew. Right-to-left typography itself is described by Arabic NLP researchers as effectively solved, though not universally implemented — the failures are in the pipeline, not the theory. The real difficulty sits in three script families: right-to-left scripts with contextual letter shaping, logographic scripts without whitespace, and Indic scripts with stacked conjuncts and diacritics.

Key takeaways

  • Right-to-left typography is effectively solved at the standards level; pipeline breakage on it is an engineering defect, not a research problem.
  • Three script families drive most collection difficulty: right-to-left scripts with contextual shaping, logographic scripts with no whitespace, and Indic scripts with stacked diacritics.
  • Pipelines that reach 97% accuracy on Latin documents commonly drop to 85–90% on Arabic or Hebrew because of contextual letter shaping and cursive connectivity.
  • Arabic diacritic restoration remains a persistent, unresolved problem because most written Arabic omits the vowel marks that disambiguate it.
  • Script detection is not language identification: over 1.5 billion people speak languages that share a script, so routing by script alone will merge distinct languages.

How do you collect text data for right-to-left and complex scripts?

The typography itself is not the hard part; the hard part is orthographic variation, diacritics, morphology and script heterogeneity in the underlying language.

A panoramic survey of Arabic NLP addresses right-to-left typography in a single sentence and then sets it aside, describing it as an effectively solved problem, although not universally implemented. That parenthetical matters: rendering right-to-left text is solved at the standards level, so a pipeline that breaks on it has an implementation defect, not a research gap. The difficulties that actually determine whether a text collection project in Arabic, Hebrew, Urdu, Devanagari or Amazigh succeeds sit elsewhere — in how the language is written, not in which direction it flows.

Which three script families cause most of the collection difficulty?

Document-processing literature groups the difficulty into three script families, and each breaks a collection pipeline in a different way.

Contextual shaping is when a single letter changes its printed form depending on its position in a word. Arabic and Hebrew are right-to-left scripts with contextual shaping: a pipeline achieving 97% accuracy on Latin-script documents frequently drops to 85–90% on Arabic or Hebrew because right-to-left flow and contextual shaping require different segmentation logic. Arabic characters take isolated, initial, medial and final forms depending on position, which multiplies the number of visual classes a recognition system must distinguish — Latin case variation is far more limited and does not depend on position at all. Add cursive connectivity and ligatures and segmentation becomes genuinely hard.

Chinese, Japanese and Korean are logographic scripts — writing systems built from word- or morpheme-level glyphs rather than an alphabet — with glyph vocabularies in the tens of thousands (more than 20,000 standard CJK Unified Ideographs, and over 50,000 in traditional Chinese) and no whitespace separating tokens. The consequence compounds: a single word-segmentation error misaligns every field that follows it.

Devanagari, Tamil and related Indic scripts stack characters and place vowel diacritics above, below and beside base characters simultaneously, which causes bounding-box-based extractors to misread or skip entire syllables.

One practical recommendation from the same literature is worth adopting directly: use per-region script detection rather than document-level language flags, which prevents field-boundary bleed in mixed-script documents. A document is not in one language; regions of it are.

Why do written dialects break text normalisation?

Many written dialects have no settled spelling rules at all, so a project that skips normalisation collects inconsistent text that cannot be merged or trained on reliably.

The Arabic-script NLP community makes this point in unusually direct language: when speakers write a dialect, for social media, for advertising to low-literacy populations, or for building computational resources, they don't use rules for writing the oral message because there are none — conventions develop but are also easily ignored, since, the intent being to communicate, the receiver can be flexible as long as the message is understandable. Moroccan Arabic, Darija, still shows substantial variation despite efforts to systematise its writing over time.

Text normalisation — mapping nonstandard spellings and orthographic variants to a consistent form — becomes a required pipeline stage rather than a refinement; the literature reports it significantly improves downstream performance in machine translation, ASR postprocessing and morphological tagging. A collection project has to decide, before any text is gathered, whether to collect as written, or collect and normalise. Both are defensible: collecting as written preserves how people actually write, which matters for user-generated text; normalising produces the consistency most training uses need. Collecting as written and recording a normalised parallel form is the expensive option that serves both. What is not defensible is leaving the decision to individual annotators, because the result will mix both with no way to tell which is which.

Why are Arabic diacritics still an unresolved problem?

Because most Arabic is written without the vowel marks that disambiguate it, so a model trained on naturally occurring text inherits that ambiguity rather than resolving it.

Diacritic restoration — the task of reconstructing the vowel and disambiguation marks omitted from written text — is described as a persistent and unresolved problem in Arabic NLP, arising from lexical ambiguity, syntactic variation and the absence of diacritics in most written texts. A 2026 shared task frames the current frontier: automatic diacritisation of speech dictation remains challenging because of the mismatch between speech-based transcriptions and traditional text-only diacritisation approaches — ASR systems produce undiacritised or partially normalised output, while text-based diacritisation models cannot use the acoustic information that would resolve the ambiguity.

Arabic script also carries two distinct diacritic systems worth naming in any annotation guideline: i'jām, the dots that distinguish otherwise identical letter forms, and tashkīl, the vowel marks. They are different problems, and a specification that says only "handle diacritics" resolves neither. The comparable case shows up in other scripts too — Fongbe tonal diacritics preserved in some corpora and stripped in others create incompatibility when datasets are combined. The pattern generalises well beyond Arabic.

Why does Arabic morphology multiply vocabulary size?

Because a rich inflectional system packs gender, number, person, aspect, mood, case and attachable clitics into single words, so an Arabic corpus contains far more unique word forms than an equivalent English corpus of the same token count.

The survey gives an example worth quoting: wa+sa+ya-drus-uuna+ha, "and they will study it," a single Arabic word rendering a five-word English sentence. The practical implication is that token-count parity across languages is not coverage parity — a hundred million tokens of Arabic does not give a model the same exposure per word form as a hundred million tokens of English. A scoping document that specifies collection volume in tokens without accounting for morphological richness is under-specifying for morphologically rich languages.

Does a shared script mean a shared language?

No. Over 1.5 billion people speak languages that share the same script, and shared scripts can map the same characters to different words or different characters to the same word.

The Arabic script alone covers Perso-Arabic languages including Persian, Urdu, Pashto, Sorani Kurdish, Azeri, Ottoman Turkish, Sindhi and Uyghur, plus Ajami traditions across Africa including Hausa, Fula, Wolofal, Swahili, Kanuri, Mandingo and Tamazight — together representing almost one billion speakers, many of them under-resourced in NLP. This has two operational consequences: script detection is not language identification, so a pipeline that routes purely on script will merge Urdu and Persian, and a corpus assembled by script filter will be multilingual whether or not it was meant to be. The reverse case is equally real — a single language written in multiple scripts, such as Tashlhiyt, which coexists as a hybrid digital orthography alongside Tifinagh, amplifying inconsistency and posing structural challenges for normalisation, tokenisation and corpus alignment.

How does Lifewood approach right-to-left and complex-script collection?

By treating the orthographic decision and the reviewer's language fluency as project-design questions, not implementation details to be resolved later.

Lifewood collects text data across 50+ languages and dialects, including Arabic-script and Indic-script languages, through 40+ delivery centres across 30+ countries. Two things follow from the analysis above. First, the orthographic decision must be made before collection, and it requires native judgement: deciding whether to normalise Darija spelling, and to what standard, is not a decision a specification document can make on its own — it needs people who write the language deciding what counts as the same word, recorded as a documented convention with worked examples. This is the same point that applies to scoping language coverage at the locale level more generally: for languages without a settled orthography, the convention is part of the deliverable.

Second, script complexity changes the annotator requirement, not just the tooling requirement. Verifying Devanagari transcription, where diacritics attach above, below and beside a base character, requires someone who reads Devanagari fluently, not someone comparing two strings. The same holds for Arabic contextual forms, where a visually plausible wrong form is invisible to a non-reader. Projects that budget script-complex languages at Latin-script review rates tend to discover the shortfall at the QA stage — the same failure mode covered in how human-in-the-loop review improves multilingual data quality and in what actually breaks in multilingual AI data collection.

What should a right-to-left and complex-script specification include?

A specification for this work should separate rendering from linguistics, fix the orthographic convention up front, and staff review with people who actually read the script.

  • Separate rendering from linguistics: right-to-left display is an implementation problem, and treating it as one keeps engineering fixes from being confused with data questions.
  • Decide the orthographic convention before collection, with native-speaker input and worked examples, and state whether the project collects as-written, normalised, or both in parallel — the same discipline used when collecting speech and text that mixes languages.
  • Specify diacritic handling explicitly, distinguishing letter-distinguishing marks from vowel marks where the script has both.
  • Use per-region script detection, not document-level language flags, for mixed-script material.
  • Do not equate script with language: add a language-identification stage after script detection, informed by the same reasoning covered in high-resource vs low-resource languages in AI training.
  • Account for morphology in volume targets, since token parity is not coverage parity for morphologically rich languages — a point that also shapes how multilingual text data trains better LLMs.
  • Budget script-literate reviewers rather than string comparators, and price the work accordingly.
  • Check what happens to the corpus when it is merged with an existing one: diacritic stripping, normalisation convention and encoding form are where merges silently corrupt data. Lifewood's own multilingual data collection programs and broader AI data services are built around exactly this checklist.

Frequently asked questions

Not at the standards level. Arabic NLP researchers describe right-to-left typography as effectively solved, though not universally implemented. Breakage in a specific pipeline is an implementation defect rather than a linguistic difficulty, and it should be fixed in engineering rather than treated as a data-collection question.

Contextual character shaping across isolated, initial, medial and final forms, plus cursive connectivity and ligatures, makes recognition hard. Orthographic variation, absent diacritics and rich morphology make text processing hard. The two sets of problems require different fixes.

Decide before collection starts. As-written text preserves how people actually write, which matters for user-generated content. Normalised text gives training consistency. Collecting both in parallel, an as-written record plus a normalised form, serves both purposes at a higher cost.

Most written Arabic omits diacritics, so restoration must infer lexical and syntactic meaning from context alone. Speech-based transcription and text-based diacritisation approaches also do not currently combine well, since ASR output is typically undiacritised while text models cannot use acoustic cues.

No. Over 1.5 billion people speak languages that share scripts, and the Arabic script alone spans Perso-Arabic languages and African Ajami traditions covering almost a billion speakers. Language identification has to run as a separate stage after script detection, not be inferred from it.

Effectively, yes. Arabic inflection and clitics produce far more unique vocabulary types than English does, so an equal token count exposes a model to fewer examples per word form. Volume targets for morphologically rich languages should account for this rather than assuming token parity means coverage parity.

Sources and further reading

  1. "A Panoramic Survey of Natural Language Processing in the Arab World", arXiv, on right-to-left typography as effectively solved, and on morphological richness, orthographic ambiguity, dialectal variation, orthographic noise and resource poverty
  2. Extend, "Multilingual OCR: 100+ Languages", on the 97% Latin to 85–90% Arabic and Hebrew accuracy drop, the three script families, CJK glyph counts and segmentation compounding, Indic character stacking, and per-region script detection
  3. "Performance Gap Analysis between Latin and Arabic Scripts HTR", arXiv, on contextual character shapes across positional forms, cursive connectivity, ligatures, and the i'jām and tashkīl diacritic systems
  4. AbjadNLP 2026 workshop, on the absence of writing rules for dialects, Darija orthographic variation, and the scope of Arabic-derived scripts across Perso-Arabic and African Ajami traditions representing almost one billion speakers
  5. KSAA-2026 Shared Task, on diacritic restoration as a persistent unresolved problem and the mismatch between speech-based transcription and text-only diacritisation
  6. "DATASHI: A Parallel English-Tashlhiyt Corpus for Orthography Normalization and Low-Resource Language Processing", arXiv, on hybrid digital orthography, script heterogeneity and the downstream benefits of explicit normalisation
  7. Rustagi, "Multilingual NLP: Why Working with Languages with Complex Scripts is Challenging", on shared scripts across 1.5 billion speakers and character-to-word mapping differences

Have an AI or visibility project in mind?

From AI evaluation and human-in-the-loop review to GEO and AEO strategy, our team can help you deploy with confidence and get found in the AI search era.

Talk to our team