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/cy/wlm/31-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/) / [cy](https://md.mova.elamur.ai/free/en/docs/languages/cy/) / [wlm](https://md.mova.elamur.ai/free/en/docs/languages/cy/wlm/) / 31. Middle Welsh in Mova

# 31. Middle Welsh in Mova

The Middle Welsh edition uses the language code `wlm`. Mova currently has neither a Middle Welsh parser model nor a Middle Welsh treebank. This chapter describes what the multilingual parser can return, what a first Universal Dependencies baseline would measure, and how the grammar manual supplies claims for future implementation.

## 1. Language segmentation and Latin-script coverage

Mova's multilingual parser works at two levels. At level 1, `tools/langseg` assigns a language to each sentence and span. A span is a portion of the input that can be passed to level 2 for parsing with the model for its assigned language. A single sentence can therefore contain spans sent to different models.

For Latin-script text, `tools/langseg` distinguishes English and French using a Latin-script table, a lexicon for each language, and a character 4-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage receive `other`. That label describes script coverage. It is insufficient evidence for deciding whether Latin-script text is Middle Welsh.

Middle Welsh uses the Latin script, so recognition depends on language-specific evidence within that script. The route for adding a Latin-script language is to add a `Lang` code and a lexicon. The `langseg latin-lexicon` command builds lexicons from open Universal Dependencies train splits. The edition code `wlm` identifies the language in the manual, while recognition of a span requires coverage in the segmenter. Recognition and parsing must each be checked, since an error in the assigned language can send a span to the wrong model.

## 2. Model lookup and unannotated parser output

At level 2, `tools/mova-parse` looks up the parser model for the language assigned to each span. When the assigned language has no model file, the `# parse` comment reports that the model is missing. The output for the affected tokens has the following values.

| Output field | Value when the model is absent | Information missing from the parse |
| --- | --- | --- |
| LEMMA | `_` | Dictionary form |
| UPOS | `_` | Universal part-of-speech tag |
| XPOS | `_` | Language-specific part-of-speech tag |
| FEATS | `_` | Morphological feature values |
| HEAD | `_` | Index of the syntactic head |
| DEPREL | `_` | Dependency relation to the head |
| MISC | `Parse=None` | The marker records the absence of a parse |

This is the level-2 result for tokens assigned to `wlm`. Read it together with the language assignment. A span assigned to another language is subject to the lookup for that language. The absence of a `wlm` model therefore tells the reader what happens when a span reaches level 2 as Middle Welsh. The blank annotation fields provide no grammatical analysis of that span.

**Form** `y brenhin` **Gloss** `DEF king` **Translation** ‘the king’ (constructed)

The gloss identifies `y` as the definite article and `brenhin` as ‘king’. If these forms appear in output as `wlm` tokens, those identifications come from the gloss in this example. The LEMMA, UPOS and DEPREL fields in the parser output remain `_`. Likewise, a visible token row gives no assurance that its boundaries were established by a Middle Welsh tokenizer.

## 3. The wlm treebank and baseline measurement gap

Mova holds no annotated Middle Welsh corpus. A treebank for the package would supply Middle Welsh sentences with reference annotation and provide a train split for fitting a model and a dev split for measuring it. The reference annotation has to specify the units the parser will work on, their tags and features, and the dependency heads and relations against which its output will be scored.

The package specification in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) asks for the same baseline for each language. Mova's own parser and tagger are in the `en` crate. After `en xpos-fill`, `en train` trains on the Universal Dependencies train split. `en parse-eval` evaluates the resulting parser on the dev split using two attachment scores.

| Measure | What counts as a correct attachment |
| --- | --- |
| Unlabeled attachment score (UAS) | The parser selects the reference head. |
| Labeled attachment score (LAS) | The parser selects the reference head and assigns the reference dependency relation. |

Models exist for English and French. Neither supplies a measurement for Middle Welsh. There is no measured `wlm` baseline, so no UAS or LAS value can be reported for the package. `Parse=None` is a status for an unavailable parse. It supplies neither the predicted attachments nor the reference attachments needed for either score.

A reported baseline needs to identify the treebank and the train and dev splits used. For Middle Welsh, the transcription or edition and its segmentation conventions also matter. An evaluation is interpretable only when the reader can tell what textual forms and token boundaries the reference annotation represents.

## 4. Dependencies required by frames and pragmatics

Mova's frames, pragmatics and world components read English dependency trees. For Middle Welsh, a dependency tree is a prerequisite for downstream processing. The tree makes the relations among words available to a consumer through the combination of head indices and dependency labels. A language code, a sequence of forms or a set of glosses alone supplies no such relations.

A frame analysis needs to know which word expresses the predicate and which dependents fill its argument positions. A pragmatic analysis that uses syntax likewise needs to identify the relevant structure, such as the predicate to which a negative marker attaches. These are reasons to resolve the corresponding treebank conventions before relying on parsed text as input for later analysis. The English input to the current components establishes their existing coverage. A first Middle Welsh treebank and parser would supply syntactic input, and any use of that input by the downstream components would need to be established separately.

In current `wlm` output, both HEAD and DEPREL are blank. There is accordingly no Middle Welsh dependency structure for `prag` or `world` to read from that output.

## 5. Grammar claims in Squid and the work needed for a baseline

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter a queue for a place in Mova's code. A queued claim still awaits implementation. A construction can therefore have an account in the grammar while parser output for its words is still blank.

The first claims to make operational are those needed for tokenization, tagging and a Universal Dependencies treebank. For tokenization, the annotation needs a consistent account of word boundaries, including how to represent clitics and how to handle differences in spacing across the chosen texts. For tagging and lemmatization, it needs to specify the relation between written forms and lemmas, including how to treat spelling variation and initial mutation. It also needs consistent criteria for assigning parts of speech and features in context. For the dependency layer, it needs decisions about heads and relation labels in ordinary clauses as well as in constructions with particles, relative clauses and verbal nouns. Each decision must be applicable to the forms that occur in the corpus, including cases where the written form permits more than one analysis.

Establishing the baseline requires annotated train and dev splits that use those conventions. The training data can then support the Latin-script lexicon, and the package can prepare the tag fields, train the parser and evaluate its attachments on the dev split. The resulting model also has to be available under `wlm` for `tools/mova-parse` to use it. An end-to-end check would verify both that the segmenter assigns Middle Welsh spans to `wlm` and that the parser lookup returns annotated output for them. The dev scores address the quality of the dependency attachments, while that check addresses whether multilingual input reaches the intended model.

## 6. How Mova handles wlm today

`tools/langseg` assigns a language to each sentence and span. Its Latin-script coverage distinguishes English and French using a Latin table, language lexicons and a character 4-gram model. Adding another Latin-script language requires a lexicon and a `Lang` code. `langseg latin-lexicon` builds lexicons from open Universal Dependencies train splits. Recognition of spans in a language without a model is limited to the segmenter's script or lexicon coverage.

`tools/mova-parse` looks up the model for each span's assigned language. There is no level-2 model for `wlm`. The `# parse` comment reports the missing model, and tokens assigned to `wlm` have `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with `Parse=None` in MISC. Middle Welsh tokenization, tagging, lemmatization and parsing are unavailable.

[What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for a baseline for each language. In the `en` crate, `en xpos-fill` precedes training with `en train` on the train split, and `en parse-eval` measures UAS and LAS on the dev split. English and French have models, `en.bin` and `fr.bin` respectively. Mova has no Middle Welsh treebank and no measured Middle Welsh baseline.

Mova's frames, pragmatics and world components read English trees. `prag` and `world` have no Middle Welsh tree to read. Squid takes claims from the manual and queues those that can be formalized. The chapter's rules remain unimplemented. The first points needed are those for a tokenizer, a tagger and a Universal Dependencies 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/cy/wlm/sources/)).
- [← previous 30. Speech acts, address and figurative language](https://md.mova.elamur.ai/free/en/docs/languages/cy/wlm/30-address-and-pragmatics/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/cy/wlm/sources/)
- [↑ back to Middle Welsh (wlm) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/cy/wlm/)

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