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/pl/pl-x-middle/26-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/) / [pl](https://md.mova.elamur.ai/free/en/docs/languages/pl/) / [pl-x-middle](https://md.mova.elamur.ai/free/en/docs/languages/pl/pl-x-middle/) / 26. Middle Polish in Mova

# 26. Middle Polish in Mova

The edition code for Middle Polish is `pl-x-middle`. This chapter describes how that edition fits into Mova’s multilingual pipeline, what the output records when a parser model is missing, and what evidence the package would need to report a parser baseline.

## The Middle Polish edition and its current package state

The edition code identifies Middle Polish in the grammar manual. The multilingual pipeline has separate requirements for recognizing a language in running text and for analyzing text assigned to that language. Recognition depends on the language identifier’s inventory. Syntactic analysis depends on a model for the assigned code. The manual supplies grammatical descriptions that Squid can turn into claims.

| Package component | State for Middle Polish |
| --- | --- |
| Grammar manual | Uses the edition code `pl-x-middle`. |
| Language identification | The Latin-script identifier supports English and French. Its inventory does not include Middle Polish. |
| Parser model | Mova has no level-2 model for `pl-x-middle`. |
| Annotated corpus | Mova holds no Middle Polish treebank. |
| Parser baseline | No Middle Polish treebank baseline has been measured. |

When reading multilingual output, check the span’s language assignment before interpreting its parse status. The label identifies the language whose model the parser would look for. The parse status records whether analysis is available for that assignment. For Middle Polish, both questions matter because the Latin-script identifier has no Middle Polish entry and the edition has no parser model.

## Latin-script language identification and span labeling

Level 1 of `tools/mova-parse` uses `tools/langseg` to assign a language to every sentence and span. The span label matters in a mixed-language sentence because level 2 selects a model separately for each span. A label associated with the whole sentence therefore gives only part of the information needed to interpret its parser output.

For Latin script, `tools/langseg` uses a Latin table, a lexicon for each supported language, and a character 4-gram model. The supported Latin-script languages are English and French. The identifier also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported inventory are classified as `other`. Middle Polish is written in Latin script, so the inventory of languages within that script is the relevant limit on recognition.

Adding a Latin-script language requires a lexicon and a `Lang` code. The `langseg latin-lexicon` command builds a lexicon from an open Universal Dependencies training split. Adding identification support would allow the pipeline to assign the new code to spans. Parsing those spans would still require a separate model for that code.

## Missing parser model and the Parse=None output

At level 2, `tools/mova-parse` looks for the model corresponding to each span’s language code. The model file follows the pattern <code>.bin. When that file is missing, the parser reports the language in the `# parse` comment and records `Parse=None` in the MISC column of the affected token rows. It writes `_` in each of the six analysis columns shown below.

| Column | Value for tokens in a span with no model | Information left unset |
| --- | --- | --- |
| LEMMA | `_` | Lemma |
| UPOS | `_` | Universal part of speech |
| XPOS | `_` | Language-specific part of speech |
| FEATS | `_` | Morphological features |
| HEAD | `_` | Syntactic head |
| DEPREL | `_` | Dependency relation |
| MISC | `Parse=None` | Records the absence of a parse |

The following Latin-script example illustrates the distinction between a displayed form and its analysis. It is a constructed sentence, with a manual gloss.

| Form | Gloss |
| --- | --- |
| Król | king.NOM.SG |
| czyta | read.PRS.3SG |
| list | letter.ACC.SG |

“The king reads a letter.” (constructed)

If a span containing this sentence is assigned `pl-x-middle`, its rows have the missing-model values above. The gloss supplies grammatical information by hand. The token forms in the output do not supply that information, and their appearance in rows does not establish that Mova has a Middle Polish tokenizer. The condition for the Middle Polish missing-model output is a span assigned the Middle Polish code.

## Treebank availability and the unmeasured parser baseline

The language package described in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) asks for the same parser baseline for every language. It uses a Universal Dependencies training split for model training and a development split for evaluation. The `en` crate supplies the training and evaluation commands.

| Stage | Command | Role in the baseline |
| --- | --- | --- |
| Preparation | `en xpos-fill` | Prepares the training data before training. |
| Training | `en train` | Trains a tree parser and tagger on the language’s UD training split. |
| Evaluation | `en parse-eval` | Evaluates the trained parser on the development split and reports UAS and LAS. |

Unlabeled attachment score, or UAS, measures agreement with the reference heads. Labeled attachment score, or LAS, requires agreement on both the head and the dependency relation. These scores need parser predictions and annotated development data to compare them with.

For Middle Polish, Mova holds no annotated corpus and has no measured treebank baseline. Consequently there are no Middle Polish attachment scores to report. `Parse=None` is a status in the parser output. It does not provide any of the comparisons with reference annotations needed for evaluation. The available English and French models, `en.bin` and `fr.bin`, correspond to those languages’ assignments in the multilingual pipeline.

## Dependency trees as input to frames and pragmatics

Mova’s frames, pragmatics and world components read English dependency trees. A language label and a sequence of token forms supply only the identity of a span and the text shown for it. The head and dependency-relation columns supply the links that organize a dependency tree.

For a span assigned to Middle Polish, `Parse=None` leaves both columns unset. For example, there is no dependency link in the output that a downstream component could inspect to find the subject of the verb in the constructed sentence above. The manual gloss belongs to the example and does not fill the parser’s output columns.

Parsing is a prerequisite for passing another language’s trees to these components. The available downstream processing reads English trees. For Middle Polish the pipeline already stops at the preceding stage, where it has no tree to pass to frames, pragmatics or world processing.

## Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in an implementation queue for a place in Mova’s code. A queued claim has the status of a description awaiting implementation.

The manual, the queue and the parser baseline answer different practical questions. The manual gives the conditions under which a grammatical point applies. The queue records formalizable points that could be implemented. The baseline measures the trained parser’s output against annotated development data. Reading a rule into the queue leaves the parser output unchanged. The Middle Polish package still needs annotation and a model to produce and evaluate dependency trees.

The first grammatical points relevant to implementation are the ones needed by a tokenizer, a tagger and a UD treebank baseline. Tokenization needs decisions about where token boundaries fall. Tagging needs the distinctions expressed in part-of-speech and feature labels. A dependency baseline needs annotated heads and relation labels. These are the immediate places where the grammar can inform the analysis of Middle Polish text.

## How Mova handles Middle Polish today

At level 1, `tools/mova-parse` uses `tools/langseg` to label sentences and spans. Its Latin-script support covers English and French, and Middle Polish has no entry there. A further Latin-script language requires a lexicon and a `Lang` code. The lexicon can be built from an open UD training split with `langseg latin-lexicon`.

At level 2, the parser selects a model by the span’s language code. Mova has no model for `pl-x-middle`. For spans assigned that code, `tools/mova-parse` reports the missing model in the `# parse` comment, writes `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and writes `Parse=None` in MISC. Mova does not tokenize, tag, lemmatize or parse Middle Polish.

Mova holds no Middle Polish treebank and has measured no parser baseline for the edition. The baseline specified in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) uses `en xpos-fill` before `en train` on a UD training split, then `en parse-eval` to measure UAS and LAS on the development split. Mova’s frames, pragmatics and world components read English trees. Without parsed Middle Polish trees, they have no Middle Polish input.

Squid reads the manual as grammatical claims and queues the formalizable ones. The chapter’s rules are awaiting implementation. The first points relevant to the pipeline are those needed for tokenization, tagging 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/pl/pl-x-middle/sources/)).
- [← previous 25. Implied and figurative meaning in texts](https://md.mova.elamur.ai/free/en/docs/languages/pl/pl-x-middle/25-implied-and-figurative-meaning/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/pl/pl-x-middle/sources/)
- [↑ back to Middle Polish (pl-x-middle) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/pl/pl-x-middle/)

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