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/sh/kjv/30-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/) / [sh](https://md.mova.elamur.ai/free/en/docs/languages/sh/) / [kjv](https://md.mova.elamur.ai/free/en/docs/languages/sh/kjv/) / 30. Kajkavian in Mova

# 30. Kajkavian in Mova

Mova has a multilingual parser, but it has no Kajkavian parser model and holds no annotated Kajkavian treebank. The Kajkavian grammar gives Squid material for claims about the language. A parsing baseline requires annotated data and a model evaluated against it.

## Language segmentation and model lookup

Parsing in `tools/mova-parse` has two levels. At level 1, `tools/langseg` assigns a language to each sentence and span. At level 2, `tools/mova-parse` uses the language assigned to a span to look up its model. Under `$MOVA_DATA`, the language code determines both the language directory and the basename of the `.bin` file in its `models` directory. A sentence with more than one language span is therefore handled by span at model lookup.

| Level | Component | Result |
| --- | --- | --- |
| 1 | `tools/langseg` | Language labels for sentences and spans |
| 2 | `tools/mova-parse` | A parse for a span when its language has a model, or a missing-model report when the model is absent |

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. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside those it handles are classified as `other`. A further Latin-script language is added through a lexicon and a `Lang` code. The toolchain provides `langseg latin-lexicon` to build the lexicon from an open UD training split.

The code `kjv` identifies Kajkavian in the language package. The code’s use in the package establishes neither that a raw passage receives a `kjv` span label nor that the parser has a model for that label. The Latin-script distinctions specified for the segmenter cover English and French. No level-2 model exists for `kjv`, so a span reaching level 2 as Kajkavian has no model available for parsing.

## Current parser output for Kajkavian

When a span reaches level 2 with a language code whose model is absent, `tools/mova-parse` reports that language in the `# parse` comment. The token rows for the span contain underscores in the six annotation columns below and `Parse=None` in `MISC`. This is the missing-model output for Kajkavian.

| Field | Output for a token in the span |
| --- | --- |
| `LEMMA` | `_` |
| `UPOS` | `_` |
| `XPOS` | `_` |
| `FEATS` | `_` |
| `HEAD` | `_` |
| `DEPREL` | `_` |
| `MISC` | Contains `Parse=None` |

`LEMMA`, `UPOS`, `XPOS` and `FEATS` would carry the lemma, universal part of speech, language-specific tag and morphological features. `HEAD` and `DEPREL` would identify the syntactic head and the relation to it. The missing values leave both the word analysis and the dependency structure unspecified. The occurrence of token rows in this output describes how the parser reports a missing model. It does not establish a Kajkavian tokenizer or confirm the word boundaries that a Kajkavian analysis would use.

| Form | Gloss | Translation |
| --- | --- | --- |
| *Kaj delaš?* | what do.PRS.2SG | ‘What are you doing?’ (constructed) |

The gloss identifies *delaš* as a second-person singular present form. It is a grammatical example, independent of the parser output. If the question were passed to level 2 as a `kjv` span, the missing-model output would supply no lemma, part of speech, features, head or dependency relation for either word. The example does not demonstrate how the segmenter labels the question.

## The missing treebank and the unmeasured parsing baseline

Mova holds no annotated Kajkavian corpus or treebank. There is consequently no Kajkavian parsing baseline measured in Mova. The package’s baseline calls for training on a language’s UD training split and evaluating on its development split. The training split supplies annotated examples from which to fit the parser. The development split supplies the reference annotation against which to score the resulting parses.

A treebank provides boundaries and analyses for actual sentences. For attachment evaluation it specifies which token is the head of each annotated dependent and which relation connects them. A grammar chapter can describe the conditions on a construction and illustrate it with a glossed sentence. Those descriptions and examples do not supply the annotated splits used by the evaluation command. A lexicon for language segmentation serves another purpose. It helps associate a span with a language and supplies no reference heads or relations for scoring a parse.

| Measure | What must agree with the reference for an evaluated token |
| --- | --- |
| Unlabeled attachment score (UAS) | The syntactic head |
| Labeled attachment score (LAS) | Both the syntactic head and the dependency relation |

For a token assigned the correct head and the wrong relation, the attachment is correct for UAS and incorrect for LAS. These measures require generated parses and reference trees. No Kajkavian value is available for either measure. `Parse=None` records model availability for a span. It is not an attachment score and gives no estimate of accuracy for Kajkavian.

The two gaps affect different parts of the toolchain. The missing model prevents level 2 from producing a Kajkavian analysis. The missing treebank leaves Mova without the annotated training and development data needed for its requested baseline.

## Training and evaluation in the multilingual toolchain

Mova’s tree parser and tagger are trained through the `en` crate, which already has models for English (`en.bin`) and French (`fr.bin`). [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) asks for the same train-to-development baseline for each language. The multilingual parser uses a language’s finished model at runtime, after the segmenter has assigned the language.

| Step | Command | Role in the baseline |
| --- | --- | --- |
| Prepare the data | `en xpos-fill` | Prepare the UD data before training |
| Train | `en train` | Fit the tree parser and tagger on the language’s UD training split |
| Evaluate | `en parse-eval` | Measure UAS and LAS on the development split using the parser trained on the training split |

Language recognition, model training and model lookup have different inputs. A segmentation lexicon helps level 1 assign language labels. The annotated training split is the input to parser and tagger training. A trained model at the language-specific lookup location is the input level 2 needs to parse a span with that language label. The annotated development split is used to measure attachment accuracy. Reporting a baseline concerns the last of these operations, while making a model available to `tools/mova-parse` concerns runtime lookup.

For Kajkavian, an open UD training split would also provide the source for a Latin-script lexicon through `langseg latin-lexicon`. Adding that lexicon and a `Lang` code would address recognition. Preparing the annotated training data and fitting a model would address parsing. The comparison with an annotated development split would establish the baseline. Neither the English nor the French model provides a Kajkavian baseline, since the measures are obtained against annotated sentences in the language being evaluated.

## Dependencies of frames and pragmatics on parsed trees

Mova’s frames, pragmatics and world components read English trees. The relevant input is a tree containing word analyses and syntactic relations. A span label provides language identification alone. A Kajkavian row with `_` in `HEAD` and `DEPREL` supplies no dependent-to-head relation for the downstream components to read.

The absence of Kajkavian trees is therefore a direct limit on downstream processing. There is no Kajkavian parse from which Mova can derive a frame or a pragmatic analysis. For example, the gloss of *Kaj delaš?* identifies an interrogative word and a verb form, and the translation presents the utterance as a question. Those are observations about the constructed example. The runtime’s missing-model output supplies no corresponding syntactic analysis to the frame or pragmatics components.

Parsing is a prerequisite for downstream processing of another language. The current readers are described for English trees. The existence of a future Kajkavian parser would establish that trees are available, while support for reading those trees for frames, pragmatics and the world component would be a separate capability.

## Squid claims and the implementation queue

Squid reads the grammar manual and turns every grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter Squid’s queue for a place in Mova’s code. The queue records points awaiting implementation. It does not change the segmenter, add a model file or supply annotated training and development splits.

The first Kajkavian points relevant to implementation are those needed for tokenization, tagging and a UD treebank baseline. A tokenization rule can state when a written sequence forms a token and identify any exceptions. A tagging rule can specify the information needed to assign a word class or a morphological feature under stated conditions. A dependency rule can describe which syntactic relation applies to a construction and what governs that choice. These descriptions can inform consistent annotation when the treebank is prepared. Rules with exceptions need those exceptions represented in the claim so that the scope of each point is explicit.

A queued statistical claim and a measured parser baseline also have different origins. The claim comes from a grammatical point in the manual. UAS and LAS come from running an attachment evaluation on annotated development data. For Kajkavian, the appearance of a rule, list or statistic in the manual or queue provides no evidence of runtime implementation or parser accuracy.

## How Mova handles Kajkavian today

`tools/langseg` labels sentences and spans. Its Latin-script distinction covers English and French, and a further Latin-script language joins through a lexicon and a `Lang` code. `langseg latin-lexicon` builds such a lexicon from an open UD training split. Mova can identify spans of a language without a parser model only where the segmenter knows its script or lexicon.

`tools/mova-parse` looks up a model for the language of each span at level 2. There is no model for `kjv`. For a span passed to level 2 as Kajkavian, the `# parse` comment reports the missing model. The span’s token rows have `_` in `LEMMA`, `UPOS`, `XPOS`, `FEATS`, `HEAD` and `DEPREL`, with `Parse=None` in `MISC`. Mova has no Kajkavian tokenization, tagging, lemmatization or parsing here.

Mova holds no annotated Kajkavian treebank, and no Kajkavian treebank baseline has been measured. The baseline requested by [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) uses `en xpos-fill` before training with `en train` on a UD training split, then measures UAS and LAS on the development split with `en parse-eval`. Mova’s frames, `prag` and `world` read English trees and have no parsed Kajkavian trees to read.

Squid turns the manual’s grammatical points into claims and queues those that can be formalized. The Kajkavian rules await implementation. The points needed for tokenization, tagging and a UD treebank baseline come first.

## 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/sh/kjv/sources/)).
- [← previous 29. Kajkavian status and standardization](https://md.mova.elamur.ai/free/en/docs/languages/sh/kjv/29-status-and-standardization/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/sh/kjv/sources/)
- [↑ back to Kajkavian (kjv) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/sh/kjv/)

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