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

# 33. Southern Sotho in Mova

The Southern Sotho package uses the language code `st` and has text examples in Mova’s corpora. It has no annotated treebank, trained parser model, or measured parser baseline. These are distinct parts of language coverage. A corpus can supply written examples before the system can identify their language in a mixed text or produce a dependency tree for them.

## The Southern Sotho package and Latin-script span identification

Mova’s multilingual pipeline first assigns a language to each sentence and span. A span is a stretch of text that the next stage can send to the parser for the assigned language. This matters for Southern Sotho because Latin script alone cannot distinguish it from other languages written in that script. A document’s language label also cannot settle the language of every sentence. The corpus entry `wiki:st:Bangladesh`, for instance, is catalogued under Southern Sotho and contains full sentences in English.

The Latin-script identification in `tools/langseg` distinguishes English and French using a Latin table, a lexicon for each language, and a character four-gram model. Southern Sotho has no corresponding entry in the Latin-script identification described here. The code `st` identifies the package, but recognizing Southern Sotho spans requires language evidence at the identification stage. A further Latin-script language can be added with a lexicon and a `Lang` code. The `langseg latin-lexicon` command can build a lexicon from an open Universal Dependencies (UD) training split.

The corpus illustrates two kinds of evidence that an identifier would encounter. The same expression occurs with two spellings, and a Southern Sotho noun phrase can contain a name shared with other languages. Both spellings in the table come from running text. The forms are in Latin script, so they require no romanization.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| “Hona jwale” | here now | ‘right now’ | `wiki:st:Leqephe la pele` |
| “Hona joale” | here now | ‘right now’ | `wiki:st:Senyesemane` |
| “Dibaka tsa Amerika” | 8.region 8.POSS America | ‘regions of America’ | `wiki:st:Amerika` |

The numbers in the glosses indicate noun classes, and `POSS` marks a possessive concord. In the last example, the words around the name show how it fits into the Southern Sotho phrase. The name *Amerika* in isolation supplies less evidence about the language of the span.

## Model lookup and the Parse=None output

At level 2, `tools/mova-parse` looks up the parser model for the language assigned at level 1. The lookup uses the language code for the directory under `$MOVA_DATA` and for the model’s binary filename in that language’s model directory. The two stages have separate requirements. A model needs a span routed to its language, and routing a span to a language requires a model there before the parser can annotate it.

For a span assigned to a language whose model is missing, the `# parse` comment reports the missing model. Southern Sotho has no level-2 model, so the missing-model output for `st` has the following field values.

| Output field | Value | Annotation unavailable |
| --- | --- | --- |
| 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` | Parse status recorded for the token |

`Parse=None` records the absence of a parse. The underscores in HEAD and DEPREL leave both the attachment and its relation unspecified. Likewise, underscores in the lexical and morphological columns supply no evidence about a word’s lemma, category, or features. Any token rows shown in this output are unannotated. Their presence gives no evidence that a Southern Sotho tokenizer has resolved the word boundaries.

## Treebank availability and the unmeasured parser baseline

Mova holds no annotated Southern Sotho treebank. The supplied Wikipedia excerpts provide attested wording and spelling, including names, numbers, punctuation, and editorial variation. Their sentence identifiers locate examples in the corpus. A UD treebank additionally specifies token boundaries and supplies reference annotations for the tokens and their syntactic relations. Those annotations give training a target and evaluation a reference.

The absence of a baseline means that Mova has no Southern Sotho attachment score to report. Output containing `Parse=None` has no predicted dependencies to compare with a reference tree, and the current Southern Sotho corpus supplies no annotated development split for that comparison. A count of corpus sentences, or of rows with missing parse fields, would measure a property of the data or output rather than attachment accuracy.

An annotated development split would make it possible to examine errors by construction as well as to report overall scores. For example, evaluating possessive phrases requires reference decisions about the attachment of the possessor and the treatment of its concord. A reader can recognize such constructions in a Wikipedia excerpt, but a parser evaluation needs those decisions recorded consistently in the treebank.

## Training inputs and UAS and LAS evaluation

Mova’s own tree parser and tagger are in the `en` crate. Its baseline procedure uses `en xpos-fill` before running `en train` on the language’s UD training split. The trained parser is evaluated with `en parse-eval` on the development split. The language package specification, [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/), calls for this train-to-development baseline for each language. English and French have model files, `en.bin` and `fr.bin`.

Training requires annotated sentences in the training split. Evaluation requires a development split with reference trees, so that each attachment counted in the evaluation has a reference head and dependency relation. Consistent token and annotation conventions across the splits make the comparison interpretable.

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

Each score is the proportion of evaluated tokens that meet its criterion. Assigning the correct head with the wrong relation earns credit for UAS only. An incorrect head earns credit for neither, even if the relation label happens to match. Both measures concern dependency attachments. They do not measure language identification, lemmatization, tagger accuracy, or the interpretation of an utterance. There are no Southern Sotho scores from this procedure.

## Frames and pragmatics beyond the current package

Mova’s frame, pragmatics, and world components read English trees. The Southern Sotho package supplies no dependency trees for them to read. A Southern Sotho parser would supply syntactic input, while Southern Sotho frame and pragmatic analyses would still require a way to use that input.

The missing analyses concern different kinds of information. A dependency annotation records syntactic heads and relations. A frame analysis can identify the participants in an event or relation and how the sentence expresses them. A pragmatic analysis can consider how the utterance functions in its context. In particular, a dependency tree for an interrogative could describe its clause structure while leaving open whether the speaker seeks information or makes a request.

| Form | Gloss | Translation | Status |
| --- | --- | --- | --- |
| “Na o ka bula monyako?” | Q 2SG.SBJ POT open 3.door | ‘Can you open the door?’ | (constructed) |

Here `Q` marks the question particle, `2SG.SBJ` the second-person singular subject concord, and `POT` the potential marker. The question can concern the addressee’s ability, or it can serve as a request to open the door. Choosing between those readings depends on the situation. The example illustrates an interpretation a pragmatic analysis might need to represent.

## Grammar claims in Squid and priorities for a tokenizer, tagger and treebank

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists, and statistics, wait in a queue for a place in Mova’s code. A queued claim records a point about the language. It has no effect on runtime output until implemented.

The first tokenizer decisions concern boundaries visible in running text. Orthographic spaces help identify separate words, including short grammatical forms that can be important for the analysis. Hyphens and apostrophes also occur inside written forms. A tokenization convention needs to specify their treatment before a treebank can use that convention consistently. The corpus provides instances to consider.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| “sebōpeho-puo” | 7.form-9.language | ‘grammar’ | `wiki:st:Seinterlingue` |
| “ka mor'a” | at rear.of | ‘after’ | `wiki:st:Senyesemane` |
| “Setjhaba sa Basotho” | 7.community 7.POSS 2.Basotho | ‘the Basotho nation’ | `wiki:st:Mmino wa Sesotho` |
| “mofuta wa mmino” | 3.kind 3.POSS 3.music | ‘a kind of music’ | `wiki:st:Kwaito` |

For a tagger, the examples with *sa* and *wa* illustrate why the short written forms matter. In a possessive phrase, the concord agrees with the possessed noun. Thus *sa* goes with class 7 *Setjhaba*, and *wa* goes with class 3 *mofuta*. The concord gives evidence about the construction and the class of the noun it agrees with. Tagging and feature annotation need consistent decisions about how to record that evidence.

For a UD treebank, the first priorities are consistent word boundaries, part-of-speech and feature annotation, and head and relation choices for recurring constructions. Possessive phrases, verbal and nonverbal predicates, and subordinate clauses give the training and development splits basic structures to cover. Annotated examples of spelling variation and embedded names would also show how the same conventions apply across different passages. These priorities describe the inputs needed for a baseline.

## How Mova handles Southern Sotho today

At level 1, `tools/langseg` assigns languages to sentences and spans where it has the relevant identification support. Its Latin-script support distinguishes English and French. Adding another Latin-script language requires a lexicon and a `Lang` code, with open UD training splits available as input to `langseg latin-lexicon`. The current Latin-script support does not identify Southern Sotho as a distinct language.

At level 2, `tools/mova-parse` looks for the model belonging to the assigned language. For `st`, no model exists. The missing-model case is reported in the `# parse` comment and leaves `_` in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL, with `Parse=None` in MISC. Mova does not perform Southern Sotho tokenization, tagging, lemmatization, or parsing.

Mova has no annotated Southern Sotho treebank and has measured no treebank baseline for it. The baseline specified in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) uses `en xpos-fill` and `en train` on a UD training split, followed by `en parse-eval` on the development split to measure UAS and LAS. The frame, pragmatics, and world components, `prag` and `world`, read English trees and have no parsed Southern Sotho input.

Squid records grammatical points as claims and queues those that can be formalized. None of the chapter’s rules is implemented for Southern Sotho. The first implementation priorities are the points 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/st/sources/)).
- [← previous 32. Register, genre and style](https://md.mova.elamur.ai/free/en/docs/languages/st/32-register-and-style/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/st/sources/)
- [↑ back to Southern Sotho (st) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/st/)

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