Elamur: **Mova** · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/languages/ber/ber-x-ma/33-mova/)

[Mova](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [languages](https://md.mova.elamur.ai/free/en/docs/languages/) / [ber](https://md.mova.elamur.ai/free/en/docs/languages/ber/) / [ber-x-ma](https://md.mova.elamur.ai/free/en/docs/languages/ber/ber-x-ma/) / 33. Moroccan Berber in Mova

# 33. Moroccan Berber in Mova

The `ber-x-ma` edition covers Standard Moroccan Amazigh, Tachelhit, Tarifit and Central Atlas Tamazight. Mova currently has no parser model or annotated treebank for this edition. The text samples below illustrate distinctions that matter for language identification, annotation and evaluation.

## Language segmentation and model selection

Mova processes multilingual text in two levels. At level 1, `tools/langseg` assigns language labels to sentences and spans. At level 2, `tools/mova-parse` selects a model separately for each span according to its language code. A sentence can therefore contain spans that take different routes through the parser. Model selection follows the code assigned to the span. It does not infer a Moroccan Berber variety from a word form or from the edition of this manual.

Script matters at the first level. Tifinagh falls under `other` in the current recognizer. For Latin script, the recognizer distinguishes English and French using a Latin character table, lexicons and a character four-gram model. Latin spelling alone thus provides no basis for assuming that a Tachelhit span will receive a Moroccan Berber label. A further Latin-script language can be added with a lexicon built from open UD training data and a `Lang` code. Recognition and model availability are separate conditions. Adding a lexicon can support recognition, while parsing still requires a model for the assigned code.

A script change can occur inside a phrase that cites a name. The first example combines Latin-script Tachelhit with a Japanese name in katakana. The second is a Tifinagh noun phrase whose two words belong together grammatically.

| Form | Romanization | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- | --- |
| `s tjjabunit アシモ` | `s tjjabunit Ashimo` | in Japanese ASIMO | ‘in Japanese, ASIMO’ | `wiki:shi:ASIMO` |
| `ⴰⵎⵏⵏⵉ ⴰⴷ` | `amnni ad` | poem this | ‘this poem’ | `wiki:zgh:ⵎⵄⵟⵓⴱ ⵍⵓⵏⵉⵙ` |

## Current ber-x-ma output and the missing level-two model

The level-two lookup uses the span's language code to find its model in that language's data directory. There is no `ber-x-ma` model. If a span reaches level two with this code, the `# parse` comment reports the missing model and the output follows the pattern below.

| Output field | Value for a token in a span with no model |
| --- | --- |
| LEMMA | `_` |
| UPOS | `_` |
| XPOS | `_` |
| FEATS | `_` |
| HEAD | `_` |
| DEPREL | `_` |
| MISC | Contains `Parse=None` |

The underscores indicate absent annotations. For example, an underscore in HEAD supplies no governor, including the special head value used for a root. The presence of token rows alone gives no evidence of a Moroccan Berber tokenization analysis. `Parse=None` records missing analysis for the span, so its presence also gives no measure of parser accuracy.

## Annotated data, training and UAS and LAS measurements

The cited Wikipedia excerpts supply text in Standard Moroccan Amazigh and Tachelhit. They supply no reference UD analyses. A training split for a tree parser needs annotated sentences with word boundaries, tags, heads and dependency relations. Evaluation additionally needs an annotated development split whose sentences are held out of training. Mova holds no annotated Moroccan Berber corpus, so the train-to-development baseline has no measured result.

Mova's parser and tagger are trained with `en train` on the UD training split after preparation with `en xpos-fill`. Evaluation uses `en parse-eval` on the development split. The baseline requested by [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) uses this procedure for each language.

| Measure | Criterion for a correct attachment |
| --- | --- |
| UAS, unlabeled attachment score | The predicted head matches the reference head. |
| LAS, labeled attachment score | Both the predicted head and the dependency relation match the reference annotation. |

Both scores express the proportion of evaluated words meeting the corresponding criterion. A correct head with an incorrect relation counts toward UAS alone. The comparison requires corresponding syntactic words in the predicted and reference analyses. These measures concern attachment. They do not directly measure language identification, lemma accuracy or the quality of pragmatic interpretation.

## Tree input for frames, pragmatics and world modeling

A UD tree represents grammatical relations among syntactic words. For example, a dependency analysis can identify a predicate's subject and distinguish it from a dependent phrase expressing time. A frame can use such distinctions to represent the participants and circumstances of an event. The same grammatical structure can be relevant to pragmatic interpretation and to representing what a text says about the world.

The Tachelhit fragment below combines a birth predicate, a person's name, a place phrase and a year phrase. The two occurrences of `g` introduce different kinds of circumstance. Their spelling is the same, while the place name and year indicate how the phrases are to be understood.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| `ilul blɛid lɛkkaf g ṛṛbaṭ g 1952` | be.born.PFV.3SG.M Belaid Lekkaf in Rabat in 1952 | ‘Belaid Lekkaf was born in Rabat in 1952’ | `wiki:shi:Blɛid Lɛkkaf` |

Mova's frames, pragmatics and world components currently read English trees. Moroccan Berber text supplies no tree for those components today. A Moroccan Berber parser would supply the first required input for downstream analysis. The existence of a parser alone establishes no downstream support.

## How Squid turns the manual into queued claims

Squid reads the grammar manual and turns each grammatical point into a claim. Points that can be formalized enter its queue for a place in Mova's code. These include rules, closed lists and statistics. A queued claim records a grammatical assertion that can be acted on. Queue status confers no runtime behavior.

Conditions belong to the claim they govern. A rule limited to one variety or construction has that scope, and an exception limits the rule where its conditions apply. A closed list states the whole inventory within its stated scope. A corpus fragment can illustrate one entry or one occurrence, but its presence alone cannot establish a complete inventory or the frequency of the pattern.

## Tokenization, tagging and treebank requirements

Tokenization must establish which written spans correspond to syntactic words. A corpus annotation policy needs to handle punctuation, numerals, script changes and the written attachment of clitics across the spellings it covers. A change of script can mark the beginning of a cited name, as in the ASIMO example. It gives no general rule for where syntactic words begin or end. Where a single written token contains several syntactic words, UD can represent the written token and the separate word analyses. Decisions about splitting need to be applied consistently across the training and development data.

Tagging follows the syntactic analysis of the words. Annotation needs to distinguish the lemma from the written form, the universal part of speech from any language-specific tag, and the relevant morphological features from the tag itself. For noun state, an annotation policy must specify how state is represented where the distinction applies. In the Tachelhit example below, `umḍan` is the annexed-state form following `n`. The Standard Moroccan Amazigh example illustrates a numeric expression for which the treatment of the decimal point and percent sign needs a consistent convention.

| Form | Romanization if needed | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- | --- |
| `n umḍan` | — | of number.ANN | ‘of a number’ | `wiki:shi:0 (amḍan)` |
| `61.82% ⴳ ⵍⵎⵣⴰⵄⴷⴰ` | `61.82% g lmzaɛda` | 61.82.percent in Lmzaada | ‘61.82 percent in Lmzaada’ | `wiki:zgh:ⵍⵎⵣⴰⵄⴷⴰ (ⵡⴰⵡⴳⴷⴰ)` |

A treebank baseline needs complete heads and dependency relations as well as consistent tokenization and tags. Its coverage should identify the varieties and scripts represented in each split. A score on development sentences from one variety and script measures performance on that sample. Coverage of the manual's other varieties and scripts requires evaluation data that represent them.

## How Mova handles Moroccan Berber today

`tools/mova-parse` uses `tools/langseg` for level-one language identification and a model for each span's language at level two. The recognizer covers English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. It classifies other scripts, including Tifinagh, as `other`. An additional Latin-script language can enter the recognizer through a lexicon built with `langseg latin-lexicon` from open UD training data and a `Lang` code.

There is no level-two model for `ber-x-ma`. When its model is needed, the `# parse` comment reports the gap and the tokens carry `Parse=None` in MISC with empty analysis fields. Mova performs no Moroccan Berber tokenization, tagging, lemmatization or dependency parsing. Its ability to identify spans depends on the scripts and lexicons known to `tools/langseg`.

The `en` crate supplies the parser and tagger training and evaluation workflow requested by [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/). The available models are `en.bin` for English and `fr.bin` for French. Moroccan Berber has no annotated corpus in Mova and no measured UAS or LAS baseline. The English-tree consumers for frames, pragmatics and world modeling, including `prag` and `world`, have no Moroccan Berber tree input.

Squid extracts claims from the manual and queues the formalizable ones. These rules remain unimplemented for Moroccan Berber. The first points needed for implementation are those that support a tokenizer, a tagger and a UD treebank baseline.

## Sources for this chapter

- No source was planned for this chapter; its points are to be checked against public-domain and open grammars (see [Sources](https://md.mova.elamur.ai/free/en/docs/languages/ber/ber-x-ma/sources/)).
- [← previous 32. Central Atlas Tamazight](https://md.mova.elamur.ai/free/en/docs/languages/ber/ber-x-ma/32-central-atlas-tamazight/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/ber/ber-x-ma/sources/)
- [↑ back to Moroccan Berber (ber-x-ma) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/ber/ber-x-ma/)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://mova.elamur.ai/sitemap.xml) · [llms.txt](https://mova.elamur.ai/llms.txt)
