Languages
Why Arabic is hard for machines
Arabic is hard for machines because most vowels go unwritten, words carry attached prefixes and suffixes, and the spoken dialects differ from MSA.
Oct 12, 2026 · Updated Nov 9, 20266 min read11 sources
Why it matters
One Arabic word appears in several written forms, so a query for one form can miss documents that hold another.
The short version
- 1Arabic is normally written without short vowel marks, so one written word can be several different words. Systems have to guess from context.
- 2Prefixes such as the definite article Al attach to the word, so kitAb and AlkitAb are different strings until a system splits them.
- 3Spoken dialects differ from Modern Standard Arabic. NLLB-200 scores lower on every dialect than on MSA, and the best 2024 dialect identifier reached only 50.57 F1.
Arabic is hard for machines for three reasons: everyday writing leaves out most vowels, words carry attached prefixes and suffixes, and the spoken dialects differ from the written standard. Each one breaks a basic assumption that search indexes and translation models make about what a word is.
The result you see in practice: a query that misses documents containing the very word it asked for, and a translation that picks the wrong word.
The three problems at a glance
| Problem | What the machine sees | What goes wrong | Usual fix |
|---|---|---|---|
| Missing vowels | One spelling for several words | Wrong word chosen | Context models, or restoring the marks |
| Attached prefixes and suffixes | Many forms of one word | Search misses, bloated vocabularies | Segmenting words before indexing or training |
| Dialects vs the standard | Text the model rarely saw | Lower scores, output drifts to the standard | Dialect data, dialect identification |
Missing vowels: one spelling, several words
Arabic is usually written without vowel marks. The Unicode Standard says short vowels and other marks, called tashkil, are separate combining marks, and "in normal writing, however, these marks are omitted" (Unicode 18.0, Chapter 9).
A reader fills in the vowels from context. A machine has to guess. Fadel and colleagues show one unvocalized verb that reads as kallama, talked, or kalama, wounded.
The marks carry real information. In their Arabic-English tests on 1 million sentence pairs, feeding the diacritics to the model as a separate input raised BLEU from 33.01 to 34.34. That is one dataset, not a general figure.
For search, the problem is simpler: a word typed with marks and the same word without them are different strings until the system strips the marks.
Prefixes and suffixes attach to the word
Arabic attaches clitics to the base word that English and French write as separate words (MADAR paper). The AraBERT paper gives the plain case: the definite article Al is always prefixed. Without splitting, kitAb and AlkitAb, the same word with and without the article, enter the vocabulary as separate items, which the authors call unnecessary redundancy.
Their fix was to split words into prefixes, stems, and suffixes with the Farasa segmenter before training. That helped sentiment analysis and question answering and hurt named-entity recognition. So segmentation is a choice to test per task, not a free win.
A word-level search index has the same problem. A query for kitAb can miss AlkitAb unless the system splits or normalizes words on both the index side and the query side.
Letter shapes and look-alike characters
Arabic is cursive, even in print. A letter that joins on both sides has four shapes, for isolated, initial, medial, and final positions, but Unicode stores one code point per letter and leaves the shape to the renderer (Unicode 18.0, Chapter 9).
The catch is the Arabic Presentation Forms-A block. Unicode encodes those characters "primarily for compatibility reasons" and gives each a preferred form made of ordinary letters. Two strings can look identical on screen and still differ in code points. Normalize before you compare.
Unicode stores text in reading order and handles the right-to-left direction only at display. The same script, extended with extra letters, also writes Persian, Urdu, and Pashto. See Farsi, Dari, and Pashto and Urdu Nastaliq OCR for what that does to identification and OCR.
Dialects vs Modern Standard Arabic
Modern Standard Arabic (MSA) is the written standard. The dialects are what people speak. They differ in sounds, common words, and grammar. The MADAR paper gives examples:
| Feature | MSA | Egyptian | Levantine | Gulf |
|---|---|---|---|---|
| Letter qaf pronounced | /q/ | Glottal stop | Glottal stop | /g/ |
| Future marker | sa- or sawfa | ha- | Ha- or raH | - |
| "only" | faqaT | bas | bas | - |
Far more training data exists for MSA. AraBench counts about 40 million MSA-English sentence pairs, against 138,000 Levantine-English and 38,000 Egyptian-English pairs in the largest dialect corpus. Models score lower on the dialects. Meta's NLLB-200 3.3B model scores, in chrF++ on FLORES-200 (metrics file):
| Variety | Into English | From English |
|---|---|---|
| MSA (arb_Arab) | 65.8 | 55.0 |
| South Levantine (ajp_Arab) | 64.2 | 49.7 |
| Najdi (ars_Arab) | 63.1 | 51.7 |
| North Levantine (apc_Arab) | 62.8 | 47.9 |
| Mesopotamian, or Iraqi (acm_Arab) | 60.5 | 38.4 |
| Egyptian (arz_Arab) | 58.6 | 44.8 |
| Moroccan (ary_Arab) | 54.7 | 36.1 |
The NLLB paper warns that the Egyptian and South Levantine test sets were translated from English, while four others were adapted from MSA, so the rows are not strictly comparable. See NLLB-200 and low-resource languages for what the model sizes and scores mean.
MSA data alone does not fix it. In AraBench, a system trained on about 40 million MSA-English sentences scored 11.0 BLEU on a Levantine dev set. A system trained only on Levantine data scored 16.5. Fine-tuning the MSA system on Levantine reached 20.4.
Which data you pre-train on matters too. Inoue and colleagues found that matching the variety of the pre-training data to the task data mattered more than the amount of pre-training data.
Telling the dialects apart
Before routing text to a dialect model, a system has to know the dialect. That is hard, because many sentences are valid in several dialects.
In the NADI 2024 shared task, 70 percent of the development sentences were valid in two or more country-level dialects. The winning system reached 50.57 F1. The language identification post covers why closely related varieties are the hardest case.
Shapiro and Duh tested whether to identify the dialect first and route to a dialect-specific model, or use one shared model. The answer depended on how accurate the identifier was. Below a crossover point, the shared model won.
For each major dialect, see the detailed posts: Egyptian, Levantine, Gulf and Najdi, and Iraqi.
How to test an Arabic system
- Search one word with and without vowel marks. Both should return the same documents.
- Search kitAb and AlkitAb. Each should find documents containing the other.
- Paste a word typed with presentation-form characters. It should match the ordinary spelling.
- Run a test set in the dialect of your documents, not just MSA.
- Score both directions. Into English is usually much better than out of English.
- Ask whether the system identifies the dialect first or uses one shared model, and what accuracy the identifier has on your text.
What to do next
- Find out which varieties your documents are in before you pick a tool or test set.
- Run the six checks above on 20 to 50 of your own documents.
- Ask vendors for scores per dialect and per direction, not one Arabic number.
- Confirm the search index normalizes marks, prefixes, and compatibility characters on both index and query.
- Read the dialect post that matches your documents.
Azcuna's BABEL reads, translates, and searches foreign-language documents entirely on-device, with no cloud and no connection, and keeps every claim tied to the passage it came from. The long read on offline machine translation goes further.
Questions people ask
Why is Arabic so hard for machine translation?
Three things stack up. Short vowels are usually not written, so one spelling can stand for several words. Prefixes and suffixes attach to words, so one written word can hold what English writes as several words. And spoken dialects differ from Modern Standard Arabic, which supplies most training data. Each problem lowers search recall and translation quality, and they compound.
Why does Arabic not write vowels?
Arabic writes consonants and long vowels as letters. Short vowels and other marks, called tashkil, are optional signs placed on the letters. The Unicode Standard says Arabic is usually written unvocalized and that these marks are omitted in normal writing. Readers supply the vowels from context. A machine has to do the same, and when it guesses wrong it can read talked as wounded.
What is the difference between Modern Standard Arabic and Arabic dialects?
Modern Standard Arabic is the formal written standard used in news, books, and official documents. The dialects are the spoken languages of daily life, such as Egyptian, Levantine, Gulf, and Iraqi. They differ in sounds, common words, and grammar. The MADAR corpus paper notes, for example, that the future marker is sa- or sawfa in MSA, ha- in Egyptian, and Ha- or raH in Levantine.
Can machine translation handle Arabic dialects?
Partly. Meta's NLLB-200 model covers eight Arabic dialects beyond MSA, but on the 3.3 billion parameter model its FLORES-200 scores are lower for every dialect than for MSA, in both directions. The gap is widest when translating from English into a dialect. Iraqi scores 38.4 chrF++ against 55.0 for MSA. Gulf Arabic has no code of its own in the model at all.
Is Arabic hard for search engines?
Yes, for the same reasons. A word with vowel marks and the same word without them are different strings. A word with the prefix Al and the same word without it are different terms in a word index. Some Arabic letters also exist as separate compatibility characters. A search system has to strip marks, split prefixes, and normalize characters before a query reliably matches the documents that contain the word.
Sources
- 1The Unicode Standard, Version 18.0, Core Specification, Chapter 9: West Asia-I · The Unicode Consortium
- 2AraBERT: Transformer-based Model for Arabic Language Understanding · arXiv, from the Proceedings of the Twelfth International Conference on Language Resources and Evaluation (LREC 2020)
- 3Neural Arabic Text Diacritization: State of the Art Results and a Novel Approach for Machine Translation · arXiv, published in the Proceedings of the 6th Workshop on Asian Translation (Association for Computational Linguistics, 2019)
- 4Comparing Pipelined and Integrated Approaches to Dialectal Arabic Neural Machine Translation · Association for Computational Linguistics (VarDial 2019)
- 5The Interplay of Variant, Size, and Task Type in Arabic Pre-trained Language Models · arXiv, accepted to the Workshop on Arabic Natural Language Processing (WANLP 2021)
- 6The MADAR Arabic Dialect Corpus and Lexicon · LREC 2018 (Bouamor et al.), European Language Resources Association
- 7No Language Left Behind: Scaling Human-Centered Machine Translation · arXiv (NLLB Team, Meta AI), v3 of August 25, 2022
- 8FLORES-200 (README) · Meta AI Research (facebookresearch on GitHub)
- 9NLLB-200 3.3B dense model: FLORES-200 metrics (metrics.csv) · Meta AI Research
- 10AraBench: Benchmarking Dialectal Arabic-English Machine Translation · COLING 2020 (Sajjad et al.), International Committee on Computational Linguistics
- 11NADI 2024: The Fifth Nuanced Arabic Dialect Identification Shared Task · ArabicNLP 2024 (Abdul-Mageed et al.), Association for Computational Linguistics
Where this shows up in our work
- BABEL, offline multilingual translation and search translates and searches foreign-language documents on-device, every fact tied to its source passage.
