The structure of the Arabic word
A written Arabic word is made of layers:
- Proclitics: the interrogative particle “أ”, the conjunctions “و، ف”, prepositions and similar particles “ب، ل، ك”, the future particle “س”, and the definite article “ال”.
- The stem, produced by interdigitating (Interdigitation) the root into the pattern: the root “ع ل م” with the pattern “مُفَعِّل” → “مُعَلِّم”. This is the essence of non-concatenative (templatic) morphology (Non-concatenative / Templatic Morphology).
- Inflectional affixes: markers of the imperfective, plural, feminine and dual: “يَـ…ـونَ”, “ـات”, “ـان”.
- Enclitics: attached pronouns “ـه, ـها, ـهم, ـكم, ـنا”.
Example: «وسيعلّمونها» = و (conjunction) + س (future) + يُعَلِّمُ (stem from the root ع-ل-م on the pattern يُفَعِّل) + ون (masculine plural) + ها (object pronoun).
Broken plurals make things harder: “كُتُب” is the plural of “كِتاب”, and “رجال” the plural of “رجل”; the singular cannot be recovered by removing a suffix.
Features of morphological analysis
Full morphological analysis of a word is not limited to segmenting it; it specifies feature values (Features):
| Feature | Values | Example «يُعَلِّمونها» |
|---|---|---|
| Part of speech | Noun, verb, particle… | Verb |
| Aspect/tense | Perfective, imperfective, imperative | Imperfective |
| Person | 1, 2, 3 | 3 (third person) |
| Gender | Masculine, feminine | Masculine |
| Number | Singular, dual, plural | Plural |
| Voice | Active, passive | Active |
| Case/mood | Nominative/indicative, accusative/subjunctive, jussive… | Indicative |
| Attached pronoun | Its type, person and number | ها: third person feminine singular |
| Lemma and root | Lemma: عَلَّمَ, root: ع-ل-م |
The analysis is usually written in a scheme such as the Buckwalter scheme, the PATB tag scheme or the CAMeL scheme.
Stage one: out-of-context analysis
A morphological analyzer takes a single word and returns all possible analyses. The best-known example is the Buckwalter analyzer (BAMA), which relies on three lexicons (prefixes, stems, suffixes) and three compatibility tables that determine which prefix is compatible with which stem and which suffix. The analyzer segments the word in every possible way and accepts the segmentations whose components are compatible.
For the undiacritized word «كتب», for example, the analyses include: كَتَبَ (active perfective verb), كُتِبَ (passive), كُتُب (plural of كتاب), and كَتَّبَ (doubled verb). Many Arabic words have more than ten analyses when all feature values are counted.
Stage two: in-context disambiguation
Morphological disambiguation picks the correct analysis by looking at the context. Three generations of methods have appeared:
- MADA, then MADAMIRA (Habash & Rambow 2005; Pasha et al. 2014): train classifiers (SVMs and language models) that predict each feature separately from the context, then rank the analyzer's analyses by how well they agree with the predictions, and pick the highest. MADAMIRA combines MADA for MSA with AMIRA for segmentation, and supports Egyptian Arabic.
- Farasa (Abdelali et al., 2016): focuses on segmentation at very high speed, using a ranking classifier (SVM-rank) with light features, and achieved segmentation performance close to MADAMIRA at much higher speed.
- Neural models: BiLSTM networks, then pretrained models (such as CAMeLBERT) fine-tuned to predict features or the full analysis. CAMeL Tools (Obeid et al., 2020) provides an open-source Python framework that combines an analyzer based on a morphological database with statistical and neural disambiguators, and supports MSA and several dialects.
Why does morphology matter even with transformers?
- Pre-segmentation before the subword tokenizer improved models such as AraBERT on some tasks because it reduces splitting words into arbitrary pieces.
- Morphological tasks themselves (diacritization, spelling correction, Arabic teaching, dictionary search) need accurate, interpretable analysis.
- Scarce resources for dialects: analyzers can be adapted with rules where there is not enough data to train a model.
- Evaluation: many errors of large models in Arabic are morphological (gender and number agreement, attached pronouns).
Evaluation metrics
- Segmentation accuracy at the word level.
- Per-feature accuracy (POS, gender, number…) and full-analysis accuracy (All-tags accuracy).
- Lemma accuracy and diacritization accuracy when the analysis includes full diacritization.
Try it: in the Morphology module, type “وسيعلمونها فبكتابهم والمعلمات” and look at the possible segmentations the lab suggests, then think: which one is correct in the sentence “والمعلمات سيعلمونها”? This is exactly what the disambiguation stage does.
