33. Scottish Gaelic in Mova
Mova has Scottish Gaelic text samples under the language code gd. Published work on a Universal Dependencies (UD) treebank provides a reference for Gaelic annotation. The current Mova release has no local Gaelic treebank, trained Gaelic parser model, or measured Gaelic parsing baseline. These distinctions matter when reading output from the multilingual parser.
The gd package and available resources
The code gd identifies Scottish Gaelic in the manual and in entries from Mova’s text corpus. The corpus samples include encyclopedia prose, headings and short entries from articles. They provide text for inspecting spelling, punctuation and constructions in context. The Gaelic examples in this chapter are excerpts from Scottish Gaelic Wikipedia, licensed under CC BY-SA 4.0. Each carries its Mova sentence ID.
| Corpus excerpt | Gloss | Translation | Sentence ID |
|---|---|---|---|
| Dùthchannan an t-Saoghail | country.PL DEF.GEN world.GEN | “Countries of the world” | wiki:gd:Cruinn-eòlas |
| Sràid nan Clèireach | street DEF.GEN.PL clerk.GEN.PL | “Street of the Clerks” | wiki:gd:Pàrlamaid na h-Alba |
In the glosses, PL marks plural, DEF marks the definite article and GEN marks genitive. The examples preserve the written forms, including the accent in Sràid and the hyphen in t-Saoghail. The glosses explain the excerpts for readers of the manual. The corpus entries provide surface text and a language label.
Mova’s language package calls for a common UD training and evaluation baseline. For Gaelic, the text samples and the reference to published treebank work are available as resources for describing the language. The train and development data needed for a local baseline are absent.
Language identification in Latin-script text
The first level of the multilingual parser assigns a language to each sentence and span through tools/langseg. Its Latin-script component distinguishes English and French using a Latin table, a lexicon for each language and a character model based on sequences of four characters. The segmenter also distinguishes Hebrew-script varieties and recognizes scholarly transliterations of Hebrew or Aramaic. It reports every other script as other.
Gaelic uses Latin script, so script recognition alone cannot separate a Gaelic span from an English or French span. The gd label in a corpus entry records the language of that entry. It gives no evidence that the segmenter will assign gd to the same text as fresh input. The documented route for adding a Latin-script language is to add a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from an open UD training split.
Mixed text makes the distinction between a source label and an automatic span assignment important. An entry labeled Scottish Gaelic can contain a language name, a foreign gloss or a proper name. The following excerpt contains a Gaelic compound followed by its English equivalent, explicitly marked by the Gaelic word for English.
| Corpus excerpt | Gloss | Translation | Sentence ID |
|---|---|---|---|
| Ball-stèidhe (Beurla: baseball) | ball-base (English: baseball) | “Baseball (English: baseball)” | wiki:gd:Spòrs |
The example shows the input a segmenter can encounter. The corpus label applies to the entry, and the excerpt supplies no measured result for the language boundary inside it.
Parser model lookup and Parse=None
At level 2, tools/mova-parse uses the language assigned to each span to select its parser model. The lookup pattern is <code>.bin, with the same language code in the directory and the filename. Model files exist for English and French as en.bin and fr.bin. There is no level-2 model for gd.
When a span’s assigned language has no model file, the # parse comment reports that language. The output rows for the span carry the following values.
| Output field | Value | Annotation absent |
|---|---|---|
LEMMA | _ | Dictionary form |
UPOS | _ | Universal part of speech |
XPOS | _ | Language-specific part of speech |
FEATS | _ | Morphological features |
HEAD | _ | Syntactic head |
DEPREL | _ | Dependency relation |
MISC | Parse=None | The marker records that no parse was produced |
For a span assigned gd, this is the expected result. A reader cannot recover a root, a subject or a modifier from these fields. The rows and Parse=None also give no evidence of Gaelic-specific tokenization. The output convention applies according to the assigned language and whether its model exists. It does not measure the accuracy of the language assignment itself.
Published treebank work and Mova's local corpus status
Colin Batchelor’s gdbank paper describes the beginnings of a UD treebank for Scottish Gaelic (Batchelor 2019, §1). This is published work on Gaelic dependency annotation. It provides a point of reference for how Gaelic text can be represented as UD trees.
Mova currently holds no annotated Scottish Gaelic corpus. The presence of Gaelic text samples supports examples of usage, while a local treebank baseline requires a training split and a development split with reference annotations. The corpus sentence IDs identify sample texts. They do not supply the syntactic heads or relations that evaluation requires.
For example, the two Gaelic forms in the following excerpt can be glossed and translated without specifying their dependency structure. A treebank would record how the words are analyzed in the full sentence, with explicit heads and relation labels.
| Corpus excerpt | Gloss | Translation | Sentence ID |
|---|---|---|---|
| a tha fosgailte | REL be.PRS open | “that is open” | wiki:gd:Prìomh-Dhuilleag |
REL marks a relative particle and PRS marks present tense. The table presents a grammatical gloss. It supplies no reference tree against which a parser could be scored.
The UD training and evaluation baseline
The package specification in What every language gets calls for the same baseline for each language. Mova’s parser is in the en crate. After en xpos-fill, en train trains a tree parser and tagger on the language’s UD training split. en parse-eval evaluates the trained parser on the development split. The training split provides examples for fitting the model. The development split provides reference trees for checking its predictions.
The two reported attachment measures ask different questions about a scored token.
| Measure | Condition for a correct attachment |
|---|---|
| UAS, unlabeled attachment score | The predicted head matches the reference head. |
| LAS, labeled attachment score | Both the predicted head and the predicted dependency relation match the reference annotation. |
A token can count as correct for UAS and fail LAS when the parser attaches it to the right head under the wrong relation. Both measures concern dependency attachment on the evaluated data. They do not measure language identification, frame interpretation or pragmatic analysis.
Gaelic has no measured baseline because Mova holds no Gaelic treebank. There are no Gaelic UAS or LAS values to report. Parse=None is a status in parser output. An attachment score would require actual predictions and reference trees for comparison.
Frames, pragmatics and parser input
Mova’s frames, pragmatics and world components, including prag and world, read English trees. These components require a tree as input. For another language, parsing is a prerequisite. The current input description specifies English trees, so the existence of a parser for another language would establish only that a tree can be produced for it.
A person reading the Gaelic corpus can recognize relations in an excerpt through its words and context. For instance, prìomh-bhaile Libèiria expresses the relation between a capital and the country it serves.
| Corpus excerpt | Gloss | Translation | Sentence ID |
|---|---|---|---|
| prìomh-bhaile Libèiria | capital-city Liberia.GEN | “the capital of Liberia” | wiki:gd:Monrovia |
The interpretation in the translation is supplied for the reader. A gd span with Parse=None has no dependency tree for Mova’s downstream components to read. A language assignment, a corpus label or a gloss does not supply that input.
Grammar claims and the Squid queue
Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized, including rules, closed lists and statistics, enter a queue for a place in Mova’s code. A queued claim records a point for possible implementation.
The conditions on a rule and its exceptions are part of the claim. For example, the corpus forms an t-Saoghail and na h-Alba contain written prefixes. They show particular combinations in context. A rule based on such forms needs the conditions governing where each prefix occurs. The two excerpts by themselves do not supply that distribution.
| Corpus excerpt | Gloss | Translation | Sentence ID |
|---|---|---|---|
| an t-Saoghail | DEF.GEN world.GEN | “of the world” | wiki:gd:Cruinn-eòlas |
| na h-Alba | DEF.GEN Scotland.GEN | “of Scotland” | wiki:gd:Pàrlamaid na h-Alba |
The written forms are relevant to tokenization, and the article and genitive glosses point to distinctions relevant to tagging. An annotated treebank would provide reference analyses of such forms in sentences. Those are the kinds of points that matter first for a tokenizer, a tagger and a UD baseline. Inclusion in the manual or the queue does not make a Gaelic rule active in the parser.
How Mova handles Scottish Gaelic in the current release
At level 1, tools/mova-parse uses tools/langseg to assign languages to sentences and spans. For a language without its own tools, identification is limited to cases where the segmenter knows the script or lexicon. Its Latin-script support distinguishes English and French using a Latin table, language lexicons and character four-grams. It also recognizes Hebrew-script varieties and scholarly Hebrew or Aramaic transliteration. Every other script is other. Adding another Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon uses an open UD training split to build the lexicon.
At level 2, tools/mova-parse selects the parser model for the assigned language of each span. No model exists for gd. For a span assigned that code, the # parse comment reports the missing model, the rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and MISC carries Parse=None. Mova supplies no Gaelic-specific tokenization, tagging, lemmatization or parsing.
The en crate provides Mova’s parser and tagger. After en xpos-fill, en train trains on a language’s UD training split. en parse-eval measures UAS and LAS on the development split. The package specification in What every language gets asks for this baseline for every language. Models exist for English (en.bin) and French (fr.bin). Mova holds no annotated Scottish Gaelic corpus, so there is no measured Gaelic treebank baseline.
Mova’s frames, pragmatics and world components, including prag and world, read English trees. Unparsed Gaelic supplies no tree for them to read. Squid records grammatical points as claims and queues the formalizable ones. The Gaelic rules in the manual have yet to be implemented. The first applicable points are those needed for a tokenizer, a tagger and a UD treebank baseline.
Sources for this chapter
- Batchelor, Colin. 2019. gdbank: The beginnings of a Universal Dependencies treebank for Scottish Gaelic. In Proceedings of the 3rd Celtic Language Technology Workshop. Dublin, Ireland. — CC BY 4.0; not held in the library, to verify
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/gd/33-mova-tools-and-data/