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

# 29. Tongan in Mova

Mova has no Tongan parser model or annotated Tongan treebank. This chapter explains what happens when the multilingual parser encounters a span labeled Tongan, what can be measured, and which distinctions a future Tongan analysis would need to capture.

## Language identification and model lookup

Mova's multilingual parser, `tools/mova-parse`, has two levels. At level 1, `tools/langseg` assigns a language to each sentence and span. At level 2, the parser uses the language assigned to each span to look up that language's model. The span is the unit of model selection, so different spans in the same sentence can call for different models.

For Latin-script text, the current identification tools distinguish English and French using a Latin-script table, language lexicons and a character four-gram model. Tongan uses Latin script, but shares that script with both languages. The existence of the language code `to` therefore gives no assurance that a stretch of Tongan text will receive that label. The supported route for adding a Latin-script language to `tools/langseg` uses a lexicon and a `Lang` code. The `langseg latin-lexicon` command can build the lexicon from open Universal Dependencies (UD) training data.

Language identification and model lookup can fail at different points. If a Tongan span receives some other language label, that assigned label governs model lookup. If a span reaches level 2 with the label `to`, there is no Tongan model to load. The missing-model behavior below applies to the latter case.

## Unannotated output for Tongan spans

When the language assigned to a span has no model file, `tools/mova-parse` reports the missing model in the `# parse` comment. The token rows for a span labeled `to` have the following values in the affected columns.

| Column | Value or entry | What the column would contain with an analysis |
| --- | --- | --- |
| LEMMA | `_` | A lexical base form |
| UPOS | `_` | A universal part-of-speech tag |
| XPOS | `_` | A language-specific part-of-speech tag |
| FEATS | `_` | Morphosyntactic features |
| HEAD | `_` | The index of the syntactic head, or `0` for the root |
| DEPREL | `_` | The dependency relation to the head, or `root` |
| MISC | `Parse=None` | A miscellaneous entry recording the absence of a parse |

The underscores leave the corresponding analyses unspecified. In HEAD, for instance, `_` leaves the head unassigned. In FEATS it leaves open whether the word would carry any grammatical features in a completed tree. `Parse=None` records the status of the parse in the output. The presence of token rows alone gives no evidence that Tongan token boundaries have been analyzed.

## Treebank availability and the status of UAS and LAS measurements

Mova holds no annotated Tongan corpus. The Tongan snippets in its corpora provide text examples, without gold-standard tags, heads or dependency relations. A treebank baseline requires annotated training and development splits so that the parser can learn from one set of trees and be evaluated against another.

Mova's own parser and tagger are in the `en` crate. The workflow runs `en xpos-fill` before training with `en train` on a language's UD training split. Then `en parse-eval` measures attachment on the development split. The language package specifies the same baseline procedure for each language in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/). English and French have models, `en.bin` and `fr.bin` respectively.

| Measure | What counts as correct for an evaluated token | Tongan status |
| --- | --- | --- |
| UAS, unlabeled attachment score | The predicted head matches the gold head. | Unmeasured |
| LAS, labeled attachment score | Both the predicted head and the predicted dependency relation match the gold annotation. | Unmeasured |

A correct head with a different relation label counts toward UAS alone. Both measures require predicted dependencies and a reference annotation. The underscores on Tongan token rows supply neither, so they cannot be used to calculate a score.

## Tokenization, tagging and dependency proposals in Squid

Squid reads grammatical statements in the manual as claims. Rules, closed lists and statistics that can be formalized enter its queue for possible implementation. The distinctions below illustrate what a Tongan tokenizer, tagger and UD baseline would need to represent. They are proposals for those components.

For tokenization, individual letters and diacritics matter as much as spaces. The ʻokina represents a consonant in Tongan, and its presence inside a word is no reason to split that word. A vowel macron marks length and belongs with the vowel. A tokenizer should also account for the ʻokina at the start of a word, where its position could otherwise suggest an opening quotation mark.

| Form | Gloss | Translation | Point to capture |
| --- | --- | --- | --- |
| `puleʻanga` | kingdom | ‘kingdom’ | Keep the internal ʻokina inside the word. (`wiki:to:Siokālafi ʻo Tonga`) |
| `ʻi he Pasifiki` | in ART Pacific | ‘in the Pacific’ | Retain the standalone word `ʻi`, including its initial ʻokina. (`wiki:to:Haʻamoa`) |
| `ʻo māmani` | GEN world | ‘of the world’ | Keep the macron on `ā` within `māmani`. (`wiki:to:ʻAfilika`) |

For tagging, the function of a short form can depend on its construction. An article before a noun, a marker before an argument phrase and a tense-aspect marker before a predicate need to be distinguished in context. In particular, an annotation scheme needs to distinguish nominal dependents from the markers that introduce or determine them. A tag for the marker alone cannot give the syntactic relation of the whole phrase.

**Form:** `Naʻe kai ʻe Mele ʻa e ika.` (constructed) **Gloss:** PST eat ERG Mele ABS ART fish **Translation:** ‘Mele ate the fish.’

In this transitive clause, `ʻe` marks the agent `Mele`, and `ʻa` introduces the absolutive phrase `e ika` ‘the fish’. A candidate UD analysis would make `kai` ‘eat’ the clause head, attach `Mele` to it as `nsubj` and `ika` as `obj`, and attach the overt case markers to their respective nominals as `case`. The article `e` is a candidate for `det` under `ika`. In this analysis the grammatical relation is assigned to the nominal head, with the overt marking represented on its own dependent. A treebank would need consistent conventions for these choices and for the relevant constructions beyond this example.

## Frames and pragmatics in the current pipeline

A dependency tree makes the predicate and its syntactic dependents available for later analysis. Frame analysis can use such a tree to identify a predicate and its participants. Pragmatic analysis addresses aspects of interpretation that go beyond the choice of a dependency relation. The information needed for these stages is absent from an unannotated span.

Mova's frame, pragmatics and world components, including `prag` and `world`, read English trees. Tongan currently supplies no tree to those stages. Even in the constructed eating example above, the identification of the predicate and its participants is an analysis given in this chapter. The multilingual parser's output for a span labeled `to` supplies no such analysis. Producing Tongan trees would address the missing input, while the downstream components' stated input is English trees.

## How Mova handles Tongan across the parsing pipeline

`tools/langseg` assigns sentence and span labels at level 1. Recognition of a language depends on the script or lexicon the segmenter knows. At level 2, `tools/mova-parse` uses each span's assigned language to select a model. For `to`, the model is missing. The `# parse` comment reports this, the token rows have `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and MISC contains `Parse=None`. Mova has no Tongan tokenization, tagging, lemmatization or dependency parsing at this stage.

Mova also has no annotated Tongan treebank, so it has no measured Tongan baseline for UAS or LAS. The language package calls for the shared baseline using `en xpos-fill`, `en train` and `en parse-eval`. The frame, pragmatics and world components read English trees, and there is currently no Tongan parse for them to read.

Squid turns the manual's grammatical points into claims and queues those that can be formalized. A queued claim is still pending implementation. For Tongan, the first points for implementation 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/to/sources/)).
- [← previous 28. Implicature, presupposition and figurative meaning](https://md.mova.elamur.ai/free/en/docs/languages/to/28-implied-and-figurative-meaning/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/to/sources/)
- [↑ back to Tongan (to) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/to/)

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