26. Betawi in Mova
Mova uses the language code bew for Betawi. Its collections include Betawi text, while its multilingual pipeline has no Betawi parser model or annotated Betawi treebank. This chapter describes what the pipeline returns, what can be measured, and how the grammar manual relates to the implementation.
Language identification and routing for Latin-script input
The multilingual pipeline in 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 each span’s language to select the model for that span. The sentence label and the span labels have distinct roles in mixed text. A span can select a model for a different language from the one assigned to the sentence as a whole.
For Latin-script text, tools/langseg distinguishes English and French using its Latin table, a lexicon for each language, and a character 4-gram model. The tool also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported cases are classed as other. Betawi has no entry among the supported Latin-script languages. The bew code used for Betawi in Mova’s collections does not by itself give tools/langseg the lexical evidence needed to assign it to a span. A further Latin-script language can be added with a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from open Universal Dependencies (UD) training splits.
The Betawi corpus illustrates why routing uses spans. The entry for Aceh includes a name in Latin script and the same name in Arab Gundul script, with the reading Acèh supplied in the text. The corpus ID identifies the entry as Betawi, while the two forms provide different script evidence for language identification. The forms below are corpus excerpts, with no pipeline output implied.
| Form | Romanization | Gloss | Translation |
|---|---|---|---|
| Acéh | — | place.name | ‘Aceh’ |
| اچيه | Acèh | place.name | ‘Aceh’ |
Corpus example wiki:bew:Acéh.
Parser-model availability and Parse=None output
At level 2, tools/mova-parse looks for the model file belonging to the language assigned to the span. The model filename is the language code followed by .bin. The available models are English en.bin and French fr.bin. There is no level-2 model for bew. When a span reaches level 2 with a language that has no model file, tools/mova-parse reports that language in the # parse comment and returns the following values on the span’s token rows.
| Output field | Value when the language has no model | Information the field would carry |
|---|---|---|
| LEMMA | _ | Lemma |
| UPOS | _ | Universal part-of-speech tag |
| XPOS | _ | Language-specific part-of-speech tag |
| FEATS | _ | Morphological features |
| HEAD | _ | Index of the syntactic head |
| DEPREL | _ | Dependency relation to the head |
| MISC | Parse=None | Status of the parse for the token |
The comment reports model availability by language, and Parse=None records the missing parse on the row itself. The underscores mark unset fields. For example, _ in HEAD supplies no head index, so the row cannot be read as a root or as a dependent of another row. Likewise, _ in FEATS supplies no analysis of the word’s morphology. The presence of token rows gives no evidence of Betawi-specific tokenization.
The condition for this output is the language assigned to the span at level 2. Parse=None therefore gives no independent evidence for identifying a span as Betawi. To interpret it in mixed text, read it together with the routing and the # parse comment. A span that routes to a language with a model is parsed with that language’s model, even when the span occurs in a document collected under another language code.
Treebank availability and the UD training and evaluation baseline
Mova’s Betawi corpus contains text records, including the cited Wikipedia excerpts. Mova holds no annotated Betawi corpus or treebank. A text record can document a form in context, but the Betawi records supply no reference token tags or dependency trees for comparing with parser output. The corpus ID identifies the record from which an example was taken.
The package specification in What every language gets asks for the same UD training and evaluation baseline for each language. Mova’s tree parser and tagger are in the en crate. The baseline uses a UD training split for training and a development split for evaluation.
| Stage | Command | Role in the baseline |
|---|---|---|
| Prepare the training data | en xpos-fill | Prepare the UD training split before training. |
| Fit the model | en train | Train the tree parser and tagger on the prepared training split. |
| Evaluate | en parse-eval | Measure attachment scores on the development split after training on the training split. |
Unlabeled attachment score (UAS) measures whether the predicted syntactic head agrees with the reference head for the tokens scored. Labeled attachment score (LAS) requires agreement on both the head and the dependency relation. For example, a correct head with an incorrect relation counts as a correct attachment for UAS and an incorrect attachment for LAS. Both scores require reference dependency annotations. The number of corpus records and the occurrence of Parse=None measure neither type of agreement.
| Betawi resource or result | Status in Mova |
|---|---|
| Text records | Present |
| Annotated treebank | Absent |
| UD training-to-development baseline | Unmeasured |
| UAS and LAS for that baseline | No measured scores |
Frames and pragmatics
Mova’s frame, pragmatics and world components read English trees. The relevant components include prag and world. These components depend on the syntactic input produced upstream. A language label supplies routing information, while an unannotated row supplies no dependency structure for a frame or pragmatics analysis. A parse is a prerequisite for another language to supply input at this stage. The current components’ use of English trees is a separate limit on what a future Betawi parser would provide by itself.
The text can convey an event even when that event is unavailable to the pipeline. The following excerpt expresses a birth and its date. In its source sentence, the phrase follows the person’s name in a parenthetical. The gloss and translation describe the text, and no Betawi frame for this event is produced by the pipeline.
| Form | Gloss | Translation |
|---|---|---|
| lair 12 Sèptèmber 1997 | be.born 12 September 1997 | ‘born on 12 September 1997’ |
Corpus example wiki:bew:Sydney Sweeney.
A similar distinction applies to discourse interpretation. The word doang in the next excerpt restricts the phrase to one partner. The English translation makes that restriction explicit. Its presence in the manual gives a reader an interpretation of the wording. It supplies no input tree to prag or world.
| Form | Gloss | Translation |
|---|---|---|
| ama atu pasangan doang | with one partner only | ‘with only one partner’ |
Corpus example wiki:bew:Ruti buaya.
Manual claims, the Squid queue and implementation status
Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized go into Squid’s queue, where they await a place in Mova’s code. The formalizable types include rules, closed lists, and statistics. A rule states a condition and the outcome that follows, including any exceptions. A closed list identifies all members within its stated scope. A statistical claim records a quantity under the conditions for which it was established.
These claims preserve what the grammar says at a level where an implementation can use it. For a rule, the environment and any exceptions are part of the claim. For a closed list, the scope determines what counts as a member. For a statistic, the population and measure determine what the figure describes. An example shows how a particular form is used. Its occurrence alone does not establish a general rule, a complete inventory, or a frequency.
The following excerpt, for example, attests the form nyang before mashur. The occurrence illustrates a relative expression in context. A claim describing the full distribution of nyang would need to specify the environments covered by the rule.
| Form | Gloss | Translation |
|---|---|---|
| nyang mashur | REL famous | ‘who is famous’ |
Corpus example wiki:bew:Abu Nawas.
A claim’s presence in the queue records its availability for implementation. It does not change how the running tools identify a language, assign tags, or build a tree. Corpus attestation, a formalized claim, and behavior in the running tools therefore provide evidence about different things. The corpus gives the attested form, the claim gives a grammatical description, and the tool output shows the analysis actually performed.
How Mova handles Betawi today
Mova can identify spans of a language only where tools/langseg knows the language’s script or lexicon. Its Latin-script support covers English and French. To add Betawi to that route, the segmenter needs a lexicon and a Lang code.
If a span is assigned bew, tools/mova-parse has no model to apply at level 2. Its rows carry Parse=None in MISC and have unset lemma, tag, feature and dependency fields. Mova does not tokenize, tag, lemmatize or parse Betawi. With no annotated Betawi treebank in Mova, there is no measured Betawi treebank baseline. Betawi supplies no trees to the English-tree components that handle frames, pragmatics and world information.
Squid records the manual’s grammatical points as claims and queues those that can be formalized. None of the chapter’s rules is implemented. The first grammatical points needed for Betawi support are those required 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).
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/bew/26-mova-tools/