25. Divehi in Mova
Mova’s Divehi package uses the language code dv. The multilingual pipeline can process text that contains Thaana, which it classifies as other. Divehi has no dedicated parser model, annotated treebank, or measured parsing baseline in Mova. This chapter explains what the pipeline returns for such text and how Squid records the grammar described in this manual.
Script identification and language segmentation
The first level of tools/mova-parse uses tools/langseg to assign a language or fallback label to each sentence and span. For Latin script, the segmenter distinguishes English and French using a Latin table, a lexicon for each language, and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside this coverage fall under other.
Thaana therefore falls under other. That label alone cannot identify a span as Divehi. The existence of the dv package code also gives the segmenter no way to recognize romanized Divehi. The documented extension for a further Latin-script language adds a lexicon and a Lang code, using langseg latin-lexicon with open Universal Dependencies (UD) training splits. This extension concerns Latin-script recognition.
A sentence from a Divehi corpus can contain both Thaana and Latin text. In the following parenthetical, the Thaana words introduce the English name of the anatomical structure. The corpus ID identifies the source sentence. The example gives no observed segmentation output or prediction about the exact boundary the segmenter would return.
| Form | Romanization | Gloss | Translation |
|---|---|---|---|
| (އިނގިރޭސި ބަހުން: Renal pyramids) | (ingirēsi bah-un: Renal pyramids) | (English language-INST: renal pyramid.PL) | “(in English: renal pyramids)” |
Corpus sentence wiki:dv:ގުރުދާ ޕިރަމިޑް (Divehi Wikipedia, CC BY-SA 4.0). INST marks the instrumental and PL marks the plural.
Output for spans without a Divehi parser model
The second level of tools/mova-parse selects the model associated with each span’s language. Mova has models for English and French. No model exists for dv. Where a span has no model, the # parse comment reports the missing model and the returned token rows have the following values.
| Field | Value for a token without a parser model | 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 | The marker records the absence of a parse |
The token rows are records in the multilingual output. Mova supplies no Divehi-specific tokenization, tagging, lemmatization, or dependency analysis. An underscore in FEATS provides no evidence about whether a form carries a grammatical feature. The same applies to HEAD and DEPREL: their empty values give no evidence about the token’s syntactic role. Model selection is per span, so a span with an available model can receive grammatical annotations in the same text.
A corpus example shows why a visible string can require a separate morphological analysis. In the date expression below, the digit sequence and the following Thaana material are written together. The hyphens in the romanization show the divisions used in the gloss. They give no indication of token boundaries emitted by Mova.
| Form | Romanization | Gloss | Translation |
|---|---|---|---|
| 1966ގައެވެ | 1966-ga-eve | 1966-LOC-DECL | “in 1966” |
Corpus sentence wiki:dv:ހުޅުލެ (Divehi Wikipedia, CC BY-SA 4.0). LOC marks the locative and DECL marks the declarative ending.
Treebank availability and the unmeasured parsing baseline
Mova includes Divehi text among its corpus examples and holds no annotated Divehi treebank. The examples are evidence for written forms and constructions. A UD treebank would also supply reference annotations, including the syntactic heads and dependency relations needed to evaluate a parser. The absence of a treebank in Mova leaves the Divehi baseline unmeasured.
What every language gets specifies the same baseline for every language. In the en crate, en xpos-fill precedes en train, which trains a tagger and tree parser on the language’s UD training split. en parse-eval measures attachment on the development split after training on the training split.
| Measure | What a correct attachment requires |
|---|---|
| Unlabeled attachment score (UAS) | The predicted head matches the reference head. |
| Labeled attachment score (LAS) | The predicted head and dependency relation both match the reference. |
Divehi has no reported value for either measure. Both depend on comparing predictions against annotated reference trees. The fallback values in the multilingual output record missing analyses and provide no measurement of attachment accuracy. Corpus sentence IDs locate the text used in examples and supply no reference attachments for scoring.
Dependency trees as input to frames and pragmatics
A dependency tree supplies the grammatical relations that downstream interpretation can use. For example, a tree can represent which expression serves as a predicate and which expression is its subject. Frame interpretation uses grammatical structure to help identify what the clause describes and the participants in it. Pragmatic interpretation concerns what the utterance does in context, such as asking for information or making an assertion.
Mova’s frames, pragmatics, and world components read English trees. An unparsed Divehi span supplies no tree to those components. A span’s script classification, its corpus provenance, and an English translation in the manual each convey information about the text, while leaving its dependency structure unannotated. Even with a future Divehi parse, the current downstream components are described here as readers of English trees.
How Mova handles Divehi grammar claims in Squid
Squid reads this manual and turns each grammatical point into a claim. Claims that can be formalized, including rules, closed lists, and statistics, wait in Squid’s queue for a place in Mova’s code. The queue records candidate work. Implementation is a separate step, and none of the manual’s Divehi grammar rules is implemented in Mova. The first claims relevant to implementation are those needed for a tokenizer, a tagger, and a UD treebank baseline.
The runtime boundary starts at identification. tools/langseg can identify a language only where it knows the script or lexicon. It classifies Thaana as other. tools/mova-parse selects a model by span language and has no level-2 model for dv. When a span lacks a model, the # parse comment reports the absence, its grammatical fields are unfilled, and Parse=None appears in MISC. Mova provides no Divehi tokenization, tags, lemmas, or dependency trees. It holds no annotated Divehi treebank and has no measured baseline. Mova’s frames and its prag and world components read English trees and have no parsed Divehi input.
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/dv/25-mova-tools/