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

# 27. Nyanja in Mova

Mova uses `ny` as the language code for Nyanja. Its multilingual parser first assigns language labels and then selects a parser model for each span. Mova has neither a Nyanja model nor an annotated Nyanja treebank. A span identified as `ny` has no grammatical annotation from the parser, and there is no measured Nyanja parsing baseline.

## Language segmentation and model selection

The multilingual parser `tools/mova-parse` has two levels. At level 1, `tools/langseg` assigns a language to each sentence and span. The span label gives level 2 the language code it uses to select a model. This allows different spans within a sentence to be routed according to their respective labels.

For Latin script, the documented distinctions in `tools/langseg` are English and French. The segmenter uses a Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and identifies Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported inventory are classified as `other`. For an additional Latin-script language, the extension uses a lexicon and a `Lang` code. The `langseg latin-lexicon` command supports lexicon preparation from open Universal Dependencies (UD) training splits.

A language code in the grammar manual or a Nyanja label in the corpus identifies the language of that resource. Automatic recognition of a span depends on what the segmenter knows about its script or lexicon. For example, the corpus entry `wiki:ny:Stand and Sing of Zambia, Proud and Free` places an English title before the Nyanja phrase *ndi nyimbo ya fuko*, glossed below. The corpus identifies the entry as Nyanja. Its excerpts give no observed segmentation result.

| Form | Gloss | Translation |
| --- | --- | --- |
| ndi nyimbo ya fuko | COP song GEN.9 nation | “is the national anthem” |

At level 2, the model lookup uses <code>.bin, with the span’s language code in both positions. English and French have model files, `en.bin` and `fr.bin`. There is no model file for `ny`. If the first level supplies a `ny` label, the second level has no Nyanja model to apply to that span.

## The current annotation output for Nyanja spans

When a span’s language has no model file, `tools/mova-parse` reports that language in the `# parse` comment. For a `ny` span, the output token rows carry `Parse=None` in MISC and an underscore in each of the six grammatical fields listed below.

| Field | Value | Information the field would hold |
| --- | --- | --- |
| LEMMA | `_` | Dictionary form |
| UPOS | `_` | Universal part-of-speech tag |
| XPOS | `_` | Language-specific part-of-speech tag |
| FEATS | `_` | Morphological features |
| HEAD | `_` | Syntactic head |
| DEPREL | `_` | Dependency relation to the head |
| MISC | `Parse=None` | Status of the parse for the token |

The comment reports the missing model at the language level. The entries in MISC record the effect on individual rows. In this output, an underscore in FEATS leaves the features unknown, and an underscore in HEAD leaves the syntactic attachment unknown. The displayed token rows give no evidence that a Nyanja-specific tokenizer has analyzed the span. Mova supplies no Nyanja tokenization, tagging, lemmatization or dependency analysis.

The corpus phrase *Dziko la Malaŵi* “the country of Malawi” has the gloss *country.5 GEN.5 Malawi* (`wiki:ny:Malaŵi`). If identified as `ny`, its output would supply no lemma or part of speech for *Dziko*, no features for the class 5 concord in *la*, and no dependency attachment for *Malaŵi*. The gloss describes the corpus phrase. It is not parser output.

## Treebank requirements and the UAS and LAS baseline

The language package specification in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the same parsing baseline for every language. The baseline uses a UD training split to fit a model and a development split to evaluate it. A tagged collection of Nyanja text, even with sentence identifiers, supplies no reference dependency trees by itself. The treebank must provide the reference annotations needed for training and development evaluation.

Mova’s parser is the `en` crate. The workflow applies `en xpos-fill` before `en train`, which trains the tree parser and tagger on the language’s UD training split. The evaluation command `en parse-eval` measures unlabeled attachment score and labeled attachment score on development data using the model fitted to the training data.

| Measure | When a scored token counts as correct |
| --- | --- |
| UAS, unlabeled attachment score | The predicted head matches the reference head. |
| LAS, labeled attachment score | The predicted head and dependency relation both match the reference annotation. |

Both scores express the proportion of evaluated tokens that meet the corresponding criterion. A token assigned the correct head and an incorrect relation counts toward UAS alone. These scores assess dependency attachment. Language identification is a separate step, and the scores do not measure whether it assigned the correct language to a span.

Mova has no annotated Nyanja treebank and no train-to-development UAS or LAS measurement for `ny`. The Wikipedia entries provide examples of usage. They supply neither the reference heads and relations for scoring nor a measured baseline.

## Frames, pragmatics and their parser dependency

The frames, pragmatics and world components, `prag` and `world`, read English trees. For another language, they have no tree input until the language is parsed. A language label identifies a span for model selection. It supplies no dependency structure for these components to read.

For `ny`, the absent model leaves HEAD and DEPREL empty, so this pipeline supplies no Nyanja tree for frames, pragmatics or world processing. A Nyanja tree would supply the missing parser input. The stated support for reading trees is for English, so the availability of a new parser model alone would establish no corresponding support for Nyanja at those later stages.

## Grammar claims in Squid and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid’s implementation queue for a place in Mova’s code. A queued claim records the content to implement. It is not an implemented parser rule or the result of a parser evaluation.

For a language without a model, the first priorities are the points needed by a tokenizer, a tagger and a UD treebank baseline. These stages ask different questions of the same text. For instance, *m'dziko la Malaŵi* “in the country of Malawi” (*LOC-country.5 GEN.5 Malawi*, `wiki:ny:Lilongwe`) illustrates three decisions. A tokenizer needs a policy for the apostrophe in *m'dziko*. A tagger needs categories and features for the resulting tokens. A treebank needs reference heads and dependency relations so that attachments in such phrases can be evaluated. The excerpt itself gives the written form and context, with no implemented annotation decisions attached to it.

None of the chapter’s grammar rules is implemented for Nyanja yet. The implementation queue describes work that can be formalized. The package baseline requires annotated data and a trained model before it can yield attachment scores.

## How Mova handles Nyanja today

`tools/langseg` supplies the sentence and span labels for `tools/mova-parse`. Recognition depends on the segmenter knowing the language’s script or lexicon. Its documented Latin-script distinctions are English and French. An additional Latin-script language uses a lexicon and a `Lang` code, with `langseg latin-lexicon` drawing on open UD training splits.

`tools/mova-parse` looks for the span’s model at <code>.bin. For `ny`, the model is absent. The `# parse` comment reports the missing model, and the token rows have `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and `Parse=None` in MISC. Mova has no Nyanja tokenization, tagging, lemmatization or parsing at this stage.

[What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for a UD train-to-development baseline. The `en` crate provides `en xpos-fill` before `en train`, with `en parse-eval` measuring UAS and LAS. Mova holds no annotated Nyanja treebank, so neither score has been measured for `ny`. The components `prag` and `world` read English trees and have no Nyanja parse to read.

Squid records grammatical points as claims and queues the formalizable ones for implementation. None of the chapter’s rules is implemented for `ny`. The points needed for tokenization, tagging and a UD treebank baseline come first.

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

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