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/nah/28-mova-tools/)

[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/) / [nah](https://md.mova.elamur.ai/free/en/docs/languages/nah/) / 28. Nahuatl in Mova

# 28. Nahuatl in Mova

Mova has Nahuatl text examples under `nah`. It has no Nahuatl parser model, annotated treebank, or measured parsing baseline. The status of a span’s language label, the status of its parse, and the status of a grammar rule in Squid describe different parts of the system.

## Language segmentation and model selection

The multilingual parser `tools/mova-parse` works at two levels. At level 1, `tools/langseg` assigns a language to each sentence and span. At level 2, the parser selects a model for each span using that span’s language code. When the label is `nah`, level 2 needs the Nahuatl model even if another span in the same sentence has a language label with an available model.

For Latin-script text, the currently described segmentation support distinguishes English and French using a Latin table, language lexicons, and a character 4-gram model. The segmenter also recognizes Hebrew-script varieties and scholarly transliteration of Hebrew and Aramaic. It assigns `other` to scripts outside its supported set. Adding a Latin-script language requires a `Lang` code and a lexicon. The `langseg latin-lexicon` command builds the lexicon from open Universal Dependencies (UD) training data.

The `nah` code used for the grammar and corpus examples does not establish that the segmenter can recognize Nahuatl in running text. The presence of a Nahuatl word, a macron, or a switch to Spanish within an excerpt gives a reader evidence about the text. Which labels Mova can assign depends on its segmentation support.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *Tepētl* | mountain | “mountain” | `wiki:nah:Tepetl` |
| *Montaña* | mountain (Spanish) | “mountain” | `wiki:nah:Tepetl` |

These forms occur in the same corpus entry, where the parenthesis supplies a Spanish equivalent. They illustrate a language boundary that segmentation would need to handle. The corpus entry gives the text and its source identifier.

## Unannotated output and Parse=None

When a span is assigned a language whose model file is unavailable, `tools/mova-parse` reports the missing model in the `# parse` comment. For a `nah` span, the output has the following values in the annotation fields.

| Output field | Value | Information absent or recorded |
| --- | --- | --- |
| `LEMMA` | `_` | Lemma |
| `UPOS` | `_` | Universal part of speech |
| `XPOS` | `_` | Language-specific part of speech |
| `FEATS` | `_` | Morphological features |
| `HEAD` | `_` | Syntactic head |
| `DEPREL` | `_` | Dependency relation |
| `MISC` | `Parse=None` | Parse unavailable |

A row can carry surface text and this status even though Mova has no Nahuatl tokenizer producing language-specific token boundaries. The exported surface material therefore gives no basis for treating an orthographic unit as a validated UD word. The missing values apply to the annotations in the output, including the head and relation that would attach the word to a dependency tree. An available model can still parse a different span according to its own language label.

## Treebank availability and baseline measurements

Mova holds no annotated Nahuatl treebank. Its Nahuatl corpus excerpts supply text, while a UD treebank supplies reference analyses for syntactic words, tags and dependency trees. The excerpts carry no reference heads or relations against which to score a parser. No Nahuatl treebank baseline has been measured.

The language package, specified in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/), calls for the same baseline procedure for each language. In Mova’s `en` crate, `en xpos-fill` precedes `en train`, which trains a tagger and tree parser on the language’s UD training split. `en parse-eval` measures attachment on the development split. The available models are English (`en.bin`) and French (`fr.bin`).

| Measure | What counts as a correct attachment |
| --- | --- |
| UAS, unlabeled attachment score | The predicted syntactic head matches the reference head. |
| LAS, labeled attachment score | Both the predicted head and the predicted dependency relation match the reference analysis. |

A Nahuatl result under this procedure requires a UD training split and an annotated development split. An absent baseline has no numerical value. The scores would measure syntactic attachment on the development split. Coverage of the language segmenter and the quality of frames and pragmatic analysis require separate evidence.

## Grammar claims and Squid's implementation queue

Squid reads the grammar manual and represents each grammatical point as a claim. Claims that can be formalized, including rules, closed lists and statistics, wait in Squid’s implementation queue. A grammatical rule can be present in the manual and queued while Mova still has no code that applies it.

For a rule, the conditions determine where it applies, and the exceptions determine where the ordinary result fails. A closed list depends on a stated domain. For example, an inventory described for a particular variety and spelling convention makes a claim about that domain. A statistic needs a defined body of material and a unit of counting. Those details establish what could be put into code or tested against annotated data.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *inic ōme* | ORD two | “second” | `wiki:nah:Ome` |
| *inic nāhui* | ORD four | “fourth” | `wiki:nah:Nahui` |

`ORD` marks the ordinal construction in these glosses. The two examples show *inic* before a numeral in ordinal expressions. A rule based on that pattern would need to specify which uses of *inic* it covers and how the expression is annotated. The corpus identifiers identify the examples. They supply neither a complete inventory of ordinal expressions nor UD analyses of the forms.

## Tokenizer, tagger and dependency baseline priorities

The first implementation work concerns decisions that determine what a treebank records and what a tokenizer, tagger and dependency parser can learn from it. These are priorities for a Nahuatl baseline.

### Tokenization and spelling

The tokenizer needs consistent treatment of accented Latin letters, punctuation, and the boundary between an orthographic token and a UD syntactic word. The policy needs to say what happens when spelling conventions differ across texts and how any normalization is reflected in the annotation. Material in a different language may be adjacent to Nahuatl inside parentheses. Written numbers add another boundary decision because commas and multiplication signs can occur inside an expression.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *Cē* | one | “one” | `wiki:nah:Tepetl` |
| *18,980 Tonalli* | 18,980 day | “18,980 days” | `wiki:nah:Nexihuilpiliztli` |
| *2×3* | 2 multiplied-by 3 | “two times three” | `wiki:nah:Chicuace` |
| *2 × 5* | 2 multiplied-by 5 | “two times five” | `wiki:nah:Mahtlactli` |

The macron in *Cē* belongs to the written form. In *18,980*, the comma groups digits. The multiplication sign appears with and without surrounding spaces in the corpus. An annotation policy needs to account for both layouts. It also needs to specify where bound morphology is analyzed within a word so that a morpheme boundary is distinguished from a syntactic word boundary.

### Tagging and lemmatization

A baseline needs annotation decisions for the forms a tagger will encounter. For nouns, these include how visible possession and number marking are represented. For predicates, they include how person and other inflectional distinctions are recorded. For expressions such as *inic ōme*, the analysis needs to specify the category of each annotated word and how the ordinal interpretation is represented. The universal category, any language-specific tag, and morphological features each need consistent treatment across spellings and varieties covered by the data.

Lemmatization requires a convention for choosing the citation form of an inflected or possessive form and for handling attested spelling variation. The reference analysis must make it possible to distinguish a spelling variant from a different lemma.

### Dependency annotation and evaluation

The treebank needs decisions about heads and relations in ordinary clauses, nominal expressions, ordinal expressions and the fragments that occur in the selected material. In predicates with bound person marking, it needs to distinguish information expressed in the predicate’s morphology from dependencies linking independent syntactic words. Text with a Spanish gloss can also require an annotation decision about how the parenthetical material relates to the surrounding Nahuatl.

Training and development data need compatible tokenization and annotation conventions for the resulting scores to be interpretable. The development trees provide the reference for comparing predicted heads and relations with annotated ones. This is the first dependency baseline the package calls for. Nahuatl currently has no such measurement in Mova.

## How Mova handles Nahuatl parsing, frames and pragmatics

`tools/langseg` assigns a language to sentences and spans. Its ability to identify a language depends on the scripts and lexicons it supports. `tools/mova-parse` then uses the model for each span’s assigned language. Nahuatl has no `nah` model. For a span assigned `nah`, the `# parse` comment reports that the language has no model. Its tokens carry `_` in `LEMMA`, `UPOS`, `XPOS`, `FEATS`, `HEAD` and `DEPREL`, with `Parse=None` in `MISC`. Mova provides no Nahuatl tokenization, tagging, lemmatization or dependency parsing.

Mova has no annotated Nahuatl treebank or measured Nahuatl baseline. [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the common UD baseline using `en xpos-fill`, `en train` and `en parse-eval`. The first grammar points for implementation are those needed by a tokenizer, a tagger and a UD treebank baseline. Squid has grammar claims and a queue for formalizable claims. Queue entries await implementation, and this chapter’s rules have no current implementation in Mova.

Mova’s frames, pragmatics and world components, `prag` and `world`, read English trees. Nahuatl currently supplies no dependency trees for those components to read.

## 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/nah/sources/)).
- [← previous 27. Register, inference and figurative language](https://md.mova.elamur.ai/free/en/docs/languages/nah/27-register-and-figurative-language/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/nah/sources/)
- [↑ back to Nahuatl (nah) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/nah/)

> 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)
