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/tn/33-mova/)

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

# 33. Tswana in Mova

Tswana has the language code `tn` in Mova. The available material includes Tswana text, while the package still lacks the annotated treebank and parser model needed to turn that text into Universal Dependencies (UD) trees. The distinction matters throughout the pipeline. A corpus label identifies the language of a record, a span label selects a model, and a dependency tree supplies the structure used by later stages.

## The tn package and its current data

The `tn` package has Tswana corpus material, including excerpts from the Tswana Wikipedia. These records supply examples of written usage and preserve source identifiers. They cover material such as place names, biographies and public institutions. Their language labels describe the corpus records. The records supply no reference dependency trees for training or evaluation.

For example, the corpus contains this noun phrase. Tswana uses Latin script, so the form line gives the original spelling directly.

| Form | Gloss |
| --- | --- |
| *Profense* | province |
| *ya* | of |
| *Aforika Borwa* | South Africa |

Translation “Province of South Africa.” Corpus ID `wiki:tn:Gauteng`.

The phrase supplies an attested spelling and word sequence. Turning it into treebank material would require token boundaries, lemmas, tags and morphological features where applicable, and a head and relation for each syntactic word. The corpus label and the source ID supply none of those decisions. Mova currently holds no annotated Tswana corpus, has no level-2 model for `tn`, and reports no treebank baseline for the language.

## Language and span identification

The multilingual pipeline first assigns languages to sentences and spans. A span is a portion of a sentence to which the first level assigns one language. The second level uses that assignment to look up the corresponding parser model. This permits a sentence with spans in different languages to reach different models, provided the first level identifies the spans and the associated models are available.

The Latin-script recognizer in `tools/langseg` distinguishes English and French using its Latin table, language lexicons and a character 4-gram model. It also recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage are classified as `other`. Adding a Latin-script language calls for a lexicon and a `Lang` code. The `langseg latin-lexicon` command derives lexicons from open UD training splits.

Tswana's Latin spelling and the `tn` label attached to a corpus item give no basis for assuming that the recognizer will identify Tswana in arbitrary input. The same applies to the boundaries of a possible embedded span. For instance, the Tswana corpus includes this English name within a longer Tswana passage.

| Form | Gloss |
| --- | --- |
| *Union of South Africa* | official English name of the Union of South Africa |

Translation “Union of South Africa.” Corpus ID `wiki:tn:Aforika Borwa`.

The corpus ID applies to the excerpt as a record. The name illustrates a point at which span identification may matter, and the record supplies no reference span boundaries or observed language labels from `tools/langseg`.

## Model lookup and unannotated output

At level 2, `tools/mova-parse` looks for the model associated with the language code assigned to the span. The lookup uses that code for both the language directory under `$MOVA_DATA` and the `.bin` model name. English and French have `en.bin` and `fr.bin`, respectively. There is no corresponding Tswana model, so a span that reaches level 2 as `tn` follows the missing-model case.

The `# parse` comment reports the language for which the model is missing. The affected token rows carry the following values.

| Field | Value | Annotation absent |
| --- | --- | --- |
| LEMMA | `_` | Lemma |
| UPOS | `_` | Universal part-of-speech tag |
| XPOS | `_` | Language-specific part-of-speech tag |
| FEATS | `_` | Morphological features |
| HEAD | `_` | Syntactic head |
| DEPREL | `_` | Dependency relation |
| MISC | `Parse=None` | Status marking the absence of a parse |

Here `_` in HEAD gives no head assignment, including no root assignment. `Parse=None` records the missing parse. A row carrying that marker gives no evidence of Tswana-specific tokenization. The missing-model case operates on the rows present in the output, while a Tswana tokenizer would have to establish word boundaries according to conventions for the language. The same rows also supply no tagger, lemmatizer or parser analysis to inspect.

## Treebank requirements and the UAS and LAS baseline

The baseline specified in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for training on the UD train split and evaluation on the dev split. The training data must supply the reference annotations the parser and tagger learn from. The development data must supply reference analyses against which the predicted dependencies can be scored. The splits need a common annotation policy so that the same construction receives comparable treatment in both.

The training sequence runs `en xpos-fill` before `en train`. The latter trains the parser and tagger from the language's UD training split. `en parse-eval` then measures attachment on the development split.

| Measure | A scored word counts as correct when |
| --- | --- |
| UAS, unlabeled attachment score | Its predicted head matches its reference head. |
| LAS, labeled attachment score | Its predicted head and dependency relation both match the reference. |

Each score expresses the proportion of scored words that meet its criterion. A correct head with an incorrect relation contributes to UAS alone. An incorrect head fails both criteria. The scores describe dependency attachment on the evaluation material. They supply no separate measure of lemma accuracy, language identification, frame extraction or pragmatic interpretation.

For Tswana, one annotation decision concerns the treatment of written sequences such as the following.

| Form | Gloss |
| --- | --- |
| *go* | infinitive marker |
| *opela* | sing |

Translation “To sing.” Corpus ID `wiki:tn:Adina (moopedi)`.

The excerpt gives the two forms in context in the corpus sentence. A UD annotation policy must specify their representation as syntactic words, their tags and the dependency analysis of the infinitival expression. Attachment evaluation requires those reference decisions to have been made for the development examples. With no Tswana treebank in Mova, neither UAS nor LAS has been measured. An unannotated span marked `Parse=None` is a missing analysis and supplies no attachment score.

## Tree input for frames and pragmatics

Mova's frames, pragmatics and world components read English trees. A language label tells the pipeline which language a span belongs to, while a tree provides the syntactic relations between its words. For a Tswana span with `Parse=None`, there is no Tswana tree to pass on.

A clause may be intelligible to a reader even when the pipeline has no tree for it. To derive a frame from a clause, the relevant structure would include the predicate and its dependents. The spelling of the input, the language code and the corpus source identifier supply no assignment of those roles. The absence of a frame therefore gives no evidence about which participants the Tswana clause expresses.

A Tswana parse is a prerequisite for downstream processing of Tswana. The stated downstream support is for English trees, so a future Tswana model would establish the tree input stage. It would by itself establish no Tswana frame, pragmatic or world analysis.

## Squid claims and the implementation queue

Squid reads the manual and represents each grammatical point as a claim. Claims that can be formalized, including rules, closed lists and statistics, wait in Squid's queue for implementation in Mova. A queued claim records work to be done. It has no effect on parsing while it remains in the queue.

The first implementation work concerns the conventions a tokenizer, a tagger and a UD baseline need. For a tokenizer, the immediate question is which written units yield syntactic words. For a tagger, it is which categories and features receive explicit labels, including how the labels apply to grammatical forms in context. For the treebank, it is how heads and relations are assigned consistently in training and development material. A rule intended for any of these uses needs its conditions and exceptions stated so that it can be applied across examples. Corpus excerpts can illustrate those decisions, and reference annotation makes the decisions testable.

Reading a chapter into claims supplies no annotated training split or model. The current Tswana data and the implementation state must therefore be read independently of the number or detail of grammatical points in the manual.

## How Mova handles Tswana today

`tools/mova-parse` uses `tools/langseg` at level 1 to label sentences and spans. Language identification depends on the scripts and lexicons that `tools/langseg` knows. Its Latin-script support distinguishes English and French. A further Latin-script language can be added with a lexicon and a `Lang` code, using `langseg latin-lexicon` with open UD training data.

At level 2, `tools/mova-parse` selects a model by the span's language code. For `tn` there is no model. The missing-model report appears in the `# parse` comment, and the affected rows have `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with `Parse=None` in MISC. Mova supplies no Tswana-specific tokenization, tagging, lemmatization or dependency parsing.

Mova holds no annotated Tswana treebank, so there is no measured Tswana UAS or LAS baseline. The baseline in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) uses `en xpos-fill` before `en train` on the UD train split and `en parse-eval` to measure UAS and LAS on the dev split. Models exist for English and French.

The downstream components for frames, pragmatics and world representation read English trees. With no Tswana parse, they have no Tswana tree to read. Squid turns the manual's grammatical points into claims and queues those that can be formalized. The Tswana rules remain unimplemented. The initial implementation points are the ones needed for 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/tn/sources/)).
- [← previous 32. Register and stylistic variation](https://md.mova.elamur.ai/free/en/docs/languages/tn/32-register/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/tn/sources/)
- [↑ back to Tswana (tn) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/tn/)

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