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

# 27. Latgalian in Mova

Latgalian has a grammar manual in Mova under the language code `ltg`. It has no level-2 parser model or annotated treebank in Mova, and no parsing baseline has been measured. This chapter describes how the multilingual parser routes text, what its output shows when a model is missing, and how Squid records grammar rules for future implementation.

## Language segmentation and model selection

The multilingual parser `tools/mova-parse` works at two levels. At level 1, `tools/langseg` assigns a language to every sentence and span. At level 2, the parser selects a model for each span using that span’s language code. In a sentence with several language spans, model selection therefore takes place separately for each span.

For Latin-script text, the segmenter distinguishes English and French using its Latin table, a lexicon for each language, and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported cases receive the label `other`. To add a Latin-script language, the segmenter needs a lexicon and a `Lang` code. The `langseg latin-lexicon` command supports building the lexicon from open UD training splits.

A corpus label identifies the language of the source material. Automatic identification depends on what the segmenter knows about the script or lexicon. For example, a Latgalian encyclopedia sentence can give the Estonian name of a country alongside its Latgalian name. These two source phrases illustrate the input a segmenter can encounter. The language column describes the phrases themselves.

| Form | Language | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- | --- |
| *Igaunejis Republika* | Latgalian | Estonia.GEN.SG republic.NOM.SG | Republic of Estonia | `wiki:ltg:Suoku puslopa` |
| *Eesti Vabariik* | Estonian | Estonia republic | Republic of Estonia | `wiki:ltg:Suoku puslopa` |

## Latgalian model and treebank availability

A level-2 model supplies the parser and tagger with trained data for a particular language. A treebank supplies sentences with reference annotations for training and evaluation. Mova has neither resource for Latgalian. Its own parser, the `en` crate, has models for English (`en.bin`) and French (`fr.bin`). The multilingual parser looks up the model for the language assigned to the span.

The Latgalian examples cited in this manual supply attested wording. For instance, *latgaļu volūdā* occurs in the encyclopedia’s welcome message. A reference gloss can describe the forms in a phrase without supplying a complete annotated sentence for a treebank.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *latgaļu volūdā* | Latgalian.GEN.PL language.LOC.SG | in Latgalian | `wiki:ltg:Suoku puslopa` |

The absence of a model concerns what the parser can produce for Latgalian spans. The absence of a treebank also leaves Mova without a Latgalian reference dataset on which to establish a training and evaluation baseline.

## Unannotated parser output for Latgalian spans

If the model for a span’s language is missing, `tools/mova-parse` reports the language in the `# parse` comment. Each token row for the span carries the following values. The comment reports the missing model for the language, and `Parse=None` marks the individual rows affected.

| Column | Value for a token in a span with no model | Annotation the column ordinarily carries |
| --- | --- | --- |
| `LEMMA` | `_` | Dictionary form |
| `UPOS` | `_` | Universal part of speech |
| `XPOS` | `_` | Language-specific part of speech |
| `FEATS` | `_` | Morphological features |
| `HEAD` | `_` | Index of the syntactic head |
| `DEPREL` | `_` | Dependency relation to the head |
| `MISC` | `Parse=None` | Miscellaneous information, including the missing-parse marker |

In this case, the underscores mark annotations the parser did not supply. An underscore in `HEAD`, for example, leaves the head unknown. A syntactic root would require an actual head and relation annotation under the UD convention. The missing-model output describes the fields of any token rows emitted for the span. It does not supply Latgalian-specific tokenization.

The corpus phrase *1802 godā* contains a year numeral and the locative singular of the noun for ‘year’. The gloss gives that morphological analysis for a reader of the manual. On a row for *godā* in a span handled as `ltg`, the missing-model output has `_` in `FEATS` and `Parse=None` in `MISC`.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *1802 godā* | 1802 year.LOC.SG | in 1802 | `wiki:ltg:19 godu symts` |

## The UD training and evaluation baseline

The language package described in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the same Universal Dependencies baseline for every language. With a UD training split available, `en xpos-fill` precedes `en train`, which trains the tree parser and tagger on that split. `en parse-eval` measures the resulting parser against the development split. The training and development splits serve different purposes. The training split supplies examples for fitting the model, while the development split supplies reference trees for scoring its predictions.

| Measure | Full name | What must match the reference |
| --- | --- | --- |
| UAS | Unlabeled attachment score | The syntactic head |
| LAS | Labeled attachment score | Both the syntactic head and the dependency relation |

A predicted attachment with the reference head and a different dependency label counts as correct for UAS and incorrect for LAS. Both scores require reference dependencies. Since Mova has no Latgalian treebank, it has no measured Latgalian UAS or LAS. The missing-model marker is an output status and provides no attachment score.

## Tree input for frames and pragmatics

Mova’s frame, pragmatics, and world components read English trees. The `prag` and `world` components thus depend on annotations beyond the language assignment. A language code tells the multilingual parser which model to select. A dependency tree provides syntactic heads and relation labels that later components can read.

For Latgalian, the absent level-2 parse leaves these components without a tree for the span. Annotation in the prose of the manual, such as a locative gloss, is available to the reader and supplies no dependency structure to the components. Parsing Latgalian would supply a prerequisite for downstream analysis. The current tree-reading support is for English.

## Squid claims and the distinction between queued and implemented rules

Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized include rules, closed lists, and statistics. These enter Squid’s queue for a place in Mova’s code. A conditional rule belongs in the manual with the conditions for its application and any exceptions. A closed list belongs there with its full membership. Such details make the claim precise enough to express what the grammar describes.

The queue is a record of claims awaiting implementation. The presence of a claim there therefore gives no assurance that a tokenizer, tagger, or parser applies it. A feature shown in a gloss remains a description of the example until a tool supplies that feature in its output. For a language without its own model, the first grammar points to address are those needed for tokenization, tagging, and a UD treebank baseline.

## How Mova handles Latgalian today

`tools/langseg` assigns languages to sentences and spans. Identification of Latgalian is possible only where the segmenter knows the script or lexicon well enough to identify it. The specified Latin-script distinctions are English and French. An additional Latin-script language requires a lexicon and a `Lang` code.

`tools/mova-parse` selects a level-2 model by span language. Latgalian has no model, so for a span treated as `ltg` the missing language is reported in the `# parse` comment and the token rows carry `Parse=None` in `MISC`. `LEMMA`, `UPOS`, `XPOS`, `FEATS`, `HEAD`, and `DEPREL` contain `_`. Mova has no Latgalian tokenization, tagging, lemmatization, or parsing at this stage.

Mova has no annotated Latgalian corpus and no measured treebank baseline for the language. The baseline in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for training with `en train` after `en xpos-fill` and measuring UAS and LAS from train to development data with `en parse-eval`. The downstream frame, pragmatics, and world components read English trees. Latgalian currently supplies no parsed trees for them to read.

Squid records grammatical points as claims and queues the formalizable ones for implementation. The Latgalian grammar rules are unimplemented. The first points for tool development are those needed by 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/ltg/sources/)).
- [← previous 26. Reference, dialogue and discourse](https://md.mova.elamur.ai/free/en/docs/languages/ltg/26-reference-and-discourse/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/ltg/sources/)
- [↑ back to Latgalian (ltg) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/ltg/)

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