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/nb/no-x-riksmal/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/) / [nb](https://md.mova.elamur.ai/free/en/docs/languages/nb/) / [no-x-riksmal](https://md.mova.elamur.ai/free/en/docs/languages/nb/no-x-riksmal/) / 28. Riksmål in Mova

# 28. Riksmål in Mova

Mova has no annotated Riksmål treebank or Riksmål parser model, and it reports no Riksmål parsing scores. The Riksmål edition of this manual uses the language code `no-x-riksmal`. That code identifies the edition. In parser output, language identification and grammatical annotation are separate results.

## 1. Language segmentation and support for Latin-script languages

Mova processes multilingual text in two levels. At level 1, `tools/langseg` assigns a language label to each sentence and to each span. A span is a stretch of text handled as a unit for language identification. Level 2 uses the span label to select the model for grammatical analysis. The sentence label describes the sentence as a whole, so the label to inspect when interpreting a particular stretch of mixed-language text is the span label.

For Latin-script text, `tools/langseg` distinguishes English and French using a Latin character table, a lexicon for each language and a character 4-gram model. The segmenter also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported set receive the label `other`.

A further Latin-script language can join the segmenter by adding a lexicon and a `Lang` code. The `langseg latin-lexicon` command builds lexicons from open Universal Dependencies training splits. This extension concerns language identification. A span can be labeled for a language whose parser model is absent. Conversely, a level-2 model can be selected for a span only when the span receives the corresponding language label.

Riksmål uses the Latin script. The script alone supplies no basis for assigning `no-x-riksmal` to a span. When inspecting an output for Riksmål input, first check the language label the segmenter assigned. The missing-model behavior described below applies to a span handled under the Riksmål code.

## 2. Riksmål model and treebank status

Mova stores parser models by language. For level 2 to analyze a Riksmål span, it needs the model under the Riksmål code. Mova currently has models for English and French and no level-2 model for `no-x-riksmal`.

A treebank is a corpus whose sentences carry grammatical annotation. In Universal Dependencies (UD), this includes part-of-speech tags, morphological features and syntactic dependencies between words (de Marneffe et al. 2021, p. 255). In Mova's baseline workflow, the training split provides examples for the tagger and tree parser to learn from. The development split provides reference analyses against which to score their output.

Mova holds no annotated Riksmål corpus. Accordingly, the Riksmål package has no measured treebank baseline. The absence of a score describes the state of the package. An accuracy score would require both parser predictions and reference annotations for a defined evaluation split. The manual records grammatical descriptions for readers and claims for Squid. It supplies neither the sentence-by-sentence annotations of a treebank nor the trained model that supplies analyses at level 2.

## 3. Span output and the Parse=None marker

When the model for a span's language is missing, `tools/mova-parse` reports the language in the `# parse` comment. The token rows for that span carry `Parse=None` in MISC and an underscore in each of the six columns listed below.

| Column | Content when the span's model is missing | Information the column would carry in an analysis |
| --- | --- | --- |
| LEMMA | `_` | The word's dictionary form |
| UPOS | `_` | The universal part-of-speech tag |
| XPOS | `_` | The language-specific part-of-speech tag |
| FEATS | `_` | Morphological features |
| HEAD | `_` | The index of the word's syntactic head, or the root index |
| DEPREL | `_` | The dependency relation to the head or the root relation |
| MISC | `Parse=None` | Miscellaneous information, including the missing-parse marker in this case |

Read the `# parse` comment to identify a language for which a model was unavailable. Read MISC to identify which token rows carry the missing-parse marker. An underscore in HEAD gives no head assignment, and an underscore in DEPREL gives no dependency label. Even when forms appear in token rows, those rows do not establish how a Riksmål tokenizer would divide the text. Mova has no Riksmål tokenization, tagging, lemmatization or parsing at this stage.

Consider a Riksmål sentence that could be used to read such an output.

| Form | Gloss |
| --- | --- |
| Hun | she |
| leser | read.PRS |
| boken | book.DEF.SG |

*Hun leser boken.* ‘She is reading the book.’ (constructed)

Here `PRS` means present tense, `DEF` definite and `SG` singular. The gloss is a human analysis. If the sentence is handled as a `no-x-riksmal` span, its token rows receive the missing-model values in the table. The marker applies to each row in the span regardless of how readily a reader can analyze the sentence.

## 4. The UD training and evaluation baseline

The language package specification, [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/), calls for the same UD baseline for each language. The workflow uses the train split for learning and the dev split for evaluation. Run `en xpos-fill` before training with `en train`. The latter trains the tagger and tree parser on the language's UD train split. Use `en parse-eval` to measure attachment accuracy on the dev split.

| Measure | What counts as a correct attachment |
| --- | --- |
| Unlabeled attachment score (UAS) | The predicted head matches the reference head. |
| Labeled attachment score (LAS) | The predicted head and the predicted dependency relation both match the reference. |

For the same set of evaluated attachments, a correct head with an incorrect relation counts toward UAS only. An incorrect head counts toward neither score, even if the relation label matches. These scores measure agreement with the reference dependencies under the evaluation. They do not independently measure the accuracy of lemmas, parts of speech or morphological features.

A prospective Riksmål baseline needs annotated Riksmål train and dev data. The dev references determine which heads and relations count as correct, so the language and annotation of the evaluation data matter to the interpretation of the scores. A result on another language's dev split is a result for that split. For Riksmål, the present measurement status is that no treebank baseline has been measured.

## 5. Dependencies of frames, pragmatics and world knowledge

Mova's frames, pragmatics and world processing read English trees. These components operate on structured input after parsing. A language label identifies the span's language for routing. It provides no dependency structure from which a downstream component could read grammatical relations.

For example, the subject and object of *leser* in the constructed example are facts a tree could represent through dependencies. The missing-model output leaves the relevant head and relation fields empty. The human gloss in this chapter can explain the example to a reader, while the downstream components require their input as a tree.

For Riksmål, the absence of a parse is therefore an immediate limit on these components. Producing Riksmål trees would supply a prerequisite for downstream analysis. The current components read English trees, so a Riksmål attachment score would answer a question about parsing and leave Riksmål frame interpretation, pragmatic interpretation and use of world knowledge unmeasured.

## 6. Claims in Squid and priorities for implementation

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims include rules, closed lists and statistics. These claims enter a queue for a place in Mova's code. A queued claim records content awaiting implementation. Parser output remains the evidence for what the running worker actually analyzes.

The first priorities are the points a tokenizer, a tagger and a UD treebank baseline need.

- **Tokenization.** Specify conditions that affect boundaries, such as the treatment of punctuation next to words and punctuation within number expressions. Boundary decisions determine which units are available for annotation.
- **Tagging.** Specify the word classes, the inflectional forms that express grammatical features and the contexts that distinguish analyses of the same written form. These distinctions give annotators and a tagger consistent targets.
- **Treebank annotation.** Specify how constructions receive heads and relation labels. Apply the annotation decisions consistently across the training and development splits so that the baseline has comparable examples and references.

These are priorities for turning the grammar into working analysis. They do not identify implemented Riksmål rules. A tokenizer and tagger need rules with stated conditions and exceptions, and a treebank baseline needs those decisions applied to actual sentences. For a closed list used by any of these steps, the complete membership and the conditions for using the list belong in the claim.

## 7. How Mova handles Riksmål today

`tools/mova-parse` uses `tools/langseg` at level 1 to label sentences and spans. The segmenter distinguishes English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Other scripts are labeled `other`. An additional Latin-script language requires a lexicon and a `Lang` code, with `langseg latin-lexicon` providing lexicons from open UD training splits. Mova can identify spans of a language only where the segmenter knows its script or lexicon.

At level 2, `tools/mova-parse` selects the model for each span by language code. There is no model for `no-x-riksmal`. When a Riksmål span reaches this level, the missing model is reported in the `# parse` comment. Its tokens have `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and `Parse=None` in MISC. Mova does not tokenize, tag, lemmatize or parse Riksmål.

The `en` crate provides Mova's tree parser and tagger. Models exist for English and French. The common baseline uses `en xpos-fill` before `en train` on the UD train split, then `en parse-eval` to measure UAS and LAS on the dev split. Mova holds no annotated Riksmål corpus, and no Riksmål treebank baseline is measured.

Mova's frames, `prag` and `world` read English trees. With no Riksmål parse, they have no Riksmål tree to read. Squid records the manual's grammar points as claims and queues those that can be formalized. No Riksmål grammar rule from this manual is implemented yet. The first implementation priorities are the points needed for tokenization, tagging 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/nb/no-x-riksmal/sources/)).
- [← previous 27. Riksmål in print, public life and dialogue](https://md.mova.elamur.ai/free/en/docs/languages/nb/no-x-riksmal/27-register-and-usage/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/nb/no-x-riksmal/sources/)
- [↑ back to Riksmål (no-x-riksmal) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/nb/no-x-riksmal/)

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