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/bs/30-bosnian-in-mova/)

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

# 30. Bosnian in Mova

Bosnian has a place in Mova’s grammar manual, but its text has no Bosnian parser model or measured parsing baseline. This chapter describes how language labels select a model, what appears in the output when the model is missing, and what a Bosnian baseline would need to cover.

## Language segmentation and script coverage

Mova’s multilingual parser uses two levels. At level 1, `tools/langseg` assigns a language label to each sentence and span. At level 2, `tools/mova-parse` selects the parser model for each span by its language code. A single sentence can therefore contain spans that would use different models. The language label is assigned before any grammatical analysis of the span.

For Latin script, `tools/langseg` distinguishes English and French using its Latin table, language lexicons and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes scholarly transliteration of Hebrew or Aramaic. It classifies scripts outside its recognized set as `other`, which includes Cyrillic. Latin-script Bosnian falls within a script the segmenter can inspect, but the Latin table and the existing language lexicons do not provide a Bosnian classifier. Adding a Latin-script language requires a lexicon and a `Lang` code. The `langseg latin-lexicon` command derives a lexicon from open Universal Dependencies (UD) training splits.

A proper name can retain foreign spelling in a Bosnian phrase. The words surrounding the name supply evidence about the language of the phrase, and the name itself may offer little evidence for a span boundary. The same caution applies to initials, digits and identifiers, which can occur in many languages. A script decision alone cannot resolve those cases.

| Form | Romanization | Gloss | Translation |
| --- | --- | --- | --- |
| *u gradu Barcelone* |  | in city.LOC.SG Barcelona.GEN.SG | in the city of Barcelona |
| *у граду Барселоне* | *u gradu Barselone* | in city.LOC.SG Barcelona.GEN.SG | in the city of Barcelona |

The Latin phrase is from `wiki:bs:Autopista C-32`. The Cyrillic phrase is (constructed). `LOC` marks locative, `GEN` genitive and `SG` singular.

## The missing bs model and Parse=None output

Level 2 looks for a model under the language code assigned to the span. Bosnian uses `bs`, and there is no level-2 model for that code. The missing-model outcome applies to a span reported as `bs`. A span assigned another code is subject to the model lookup for that code.

The multilingual parser reports a missing model in the `# parse` comment. For the affected tokens it writes the following values.

| CoNLL-U field | Value |
| --- | --- |
| `LEMMA` | `_` |
| `UPOS` | `_` |
| `XPOS` | `_` |
| `FEATS` | `_` |
| `HEAD` | `_` |
| `DEPREL` | `_` |
| `MISC` | `Parse=None` |

These values record the absence of language-specific analysis. A blank `FEATS` value in this output provides no evidence that a word lacks inflection, and a blank `HEAD` provides no evidence that a word is the root. `Parse=None` describes the model outcome for the span even when the output contains token rows. Those rows do not establish that their boundaries follow Bosnian tokenization conventions.

## Treebank availability and the unmeasured baseline

Mova holds Bosnian text examples, including the Wikipedia passages cited in this chapter. It holds no annotated Bosnian treebank, so it has no measured Bosnian treebank baseline. The examples show which forms and constructions occur in the text. They do not give reference lemmas, tags, heads or relations against which to score parser output.

The package baseline uses the training and development splits of a language’s UD treebank. Unlabeled text can supply material for annotation, but it cannot supply the reference dependencies needed to compute attachment scores. Likewise, counting missing-model spans measures how often that output occurs in the input examined. It does not measure attachment accuracy. For Bosnian, UAS and LAS are unmeasured.

A baseline for both standard scripts would need annotated examples in both, with results that show which scripts the evaluation actually covered. A score on Latin-script development data would describe the material in that split. It would give no direct measurement for Cyrillic, and a parser evaluation on already selected Bosnian sentences would leave multilingual span recognition unmeasured.

## The training and evaluation workflow

Mova’s parser and tagger are in the `en` crate. The crate is used for more than one language. English and French have models, `en.bin` and `fr.bin`, and [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the same type of baseline for each language.

| Step | Input and operation |
| --- | --- |
| Prepare the annotations | Run `en xpos-fill` before training on the language’s UD training split. |
| Train | Use `en train` to train the tree parser and tagger on that split. |
| Evaluate | Use `en parse-eval` to measure UAS and LAS on the development split after training. |

Unlabeled attachment score, or UAS, checks whether a word has the reference head. Labeled attachment score, or LAS, requires both the reference head and the reference dependency relation. These scores answer a question about agreement with the treebank. Segmentation into language spans, word boundaries in raw text and the assignment of lemmas and tags are distinct decisions. Attachment scores alone cannot show which of those decisions a raw-text pipeline gets right.

For the multilingual route, model evaluation and model selection both matter. A trained Bosnian model could supply analyses for spans routed to `bs`. It would still take Bosnian recognition at level 1 to route those spans correctly. A direct train-to-dev evaluation would establish the parser baseline, while examples containing Bosnian text with foreign names or longer foreign passages would exercise the routing step.

## Frames and pragmatics

Mova’s frame, pragmatic and world components work from English trees. They have no Bosnian tree input today. A Bosnian dependency tree would supply grammatical input for later work on frames and pragmatics. An attachment score would measure agreement with reference trees and would leave the accuracy of those later interpretations open.

Consider the short Bosnian question *Možeš li zatvoriti prozor?* (constructed).

| Form | Gloss | Translation |
| --- | --- | --- |
| *Možeš li zatvoriti prozor?* | can.PRS.2SG Q close.INF window.ACC.SG | Can you close the window? |

`PRS` marks present, `2SG` second-person singular, `Q` a question particle, `INF` infinitive and `ACC` accusative. The form contains a finite verb, the question particle *li*, and an infinitive with an object. A dependency analysis can represent those grammatical relationships. In a conversation the utterance can ask about ability or serve as a request to close the window. Choosing between those readings requires interactional context. The example illustrates the grammatical evidence an analysis could provide and the additional context needed for pragmatic interpretation.

## 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 its queue for a place in Mova’s code. The presence of a claim records what the manual says. It does not change segmentation, assign a feature or produce a dependency.

The conditions on a claim determine where it is applicable. A spelling rule needs the relevant script and character context. A tagging rule needs the context in which a form has a given analysis, including any other analyses the same spelling can have. A dependency rule needs the construction and the relation between its words. Claims that depend on the intentions of speakers or on preceding discourse require evidence beyond the words in an isolated clause. The queue can hold formalizable claims before the language has a parser. None of this chapter’s rules is implemented for Bosnian today.

## Priorities for tokenization, tagging and parsing

A Bosnian baseline needs consistent decisions about word boundaries, then about the analyses assigned to those words and the relations among them. The examples below show where written-text conventions and grammatical structure meet. They are cases for annotation and evaluation.

### Tokenization

Both scripts need explicit coverage, including Latin diacritics and Cyrillic letters. Within Latin spelling, *dž*, *lj* and *nj* can represent single letters even though each uses two characters. This distinction matters to letter-level processing. At the word level the letters of a name such as *Banjoj* belong to the same word. Clitics written with spaces, including *se*, *je* and *li*, need their own word boundaries in examples where they occur separately. Sentence boundary decisions also need to account for periods in abbreviations, ordinal expressions and dates. A final period after a year at the end of a sentence can serve both the written year expression and sentence closure.

| Form | Gloss | Translation |
| --- | --- | --- |
| *u Banjoj Luci* | in Banja.LOC.SG Luka.LOC.SG | in Banja Luka |
| *Autovía A-16* | motorway A-16 | A-16 motorway |
| *112 km* | 112 kilometre.UNIT | 112 kilometres |

The first phrase is from `wiki:bs:Banjalučka biskupija`, the second from `wiki:bs:Autopista C-32` and the third from `wiki:bs:Aconcagua`. `UNIT` marks a unit symbol. The corpus has a nonbreaking space between the number and the unit symbol. Cases like these call for consistent treatment of spaces inside names, hyphens inside identifiers and spacing between quantities and units.

### Tagging and lemmatization

Inflected words need a lemma and the features licensed by their use in the sentence. In *u Banjoj Luci*, *u* introduces a location, and both parts of the place name are locative. The place name as a whole has the citation form *Banja Luka*. Other uses of *u*, including expressions of motion into a place, can take the accusative. A tagger that relies only on the presence of *u* would miss that distinction. An auxiliary or copula also needs analysis in context. In the short phrase below, *je* is a present-tense copula linking the subject to a nominal predicate.

| Form | Gloss | Translation |
| --- | --- | --- |
| *je planina* | be.PRS.3SG mountain.NOM.SG | is a mountain |

The phrase comes from `wiki:bs:Aconcagua`. `3SG` marks third-person singular and `NOM` nominative. The same spelling *je* can be a perfect auxiliary or an accusative pronoun in other contexts. A Bosnian tagging baseline needs examples that distinguish those uses.

### Dependency parsing

A first treebank needs consistent analyses of common constructions such as copular clauses, prepositional phrases, clauses with clitics, and coordination. In UD, a nominal predicate heads a copular clause and the copula attaches to that predicate. In a simple adpositional phrase, the nominal heads the phrase and the adposition attaches to the nominal. These head choices matter to an attachment baseline even where the grammatical reading is clear to a speaker. Named entities, coordinated expressions and relative clauses provide further cases in which a parser must resolve attachments across several words.

Subjects can be unexpressed in Bosnian finite clauses. A parser must handle a sentence whose verbal morphology supplies person and number even when there is no overt subject token. A first development split should also exercise the difference between such clauses and fragments, including headings. The short clause form below has a finite verb and a separate *se*.

| Form | Gloss | Translation |
| --- | --- | --- |
| *Takmiči se* | compete.PRS.3SG REFL | competes |

The form is from `wiki:bs:FC Flora`. `REFL` marks the reflexive clitic. Here *se* belongs to the verb *takmičiti se* ‘compete’. Other uses of *se* occur in other constructions, so its spelling alone cannot settle its dependency analysis.

## How Mova handles Bosnian today

At level 1, `tools/langseg` gives each sentence and span a language label. Its Latin-script distinctions cover English and French, and it also recognizes Hebrew-script varieties and scholarly transliteration of Hebrew or Aramaic. It assigns other scripts, including Cyrillic, to `other`. Support for another Latin-script language requires a lexicon and a `Lang` code. The workflow for deriving such a lexicon from open UD training splits uses `langseg latin-lexicon`.

At level 2, `tools/mova-parse` looks up the model for the assigned language code. There is no `bs` model. The parser reports the missing model in the `# parse` comment, writes `_` in `LEMMA`, `UPOS`, `XPOS`, `FEATS`, `HEAD` and `DEPREL`, and places `Parse=None` in `MISC`. Mova supplies no Bosnian tokenization, tagging, lemmatization or dependency parsing. Language-span identification is limited to the scripts and lexicons `tools/langseg` knows.

Mova holds no annotated Bosnian treebank and has measured no Bosnian baseline. The common package baseline uses `en xpos-fill` before `en train` on a UD training split and `en parse-eval` for UAS and LAS on the development split. The available models are `en.bin` and `fr.bin`.

Mova’s frames, pragmatics and world components, including `prag` and `world`, read English trees. They have no Bosnian trees to read. Squid extracts claims from the manual and queues formalizable claims for implementation. None of this chapter’s rules is implemented for Bosnian. The first points needed are those that support Bosnian 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/sh/bs/sources/)).
- [← previous 29. Reference, discourse and dialogue](https://md.mova.elamur.ai/free/en/docs/languages/sh/bs/29-reference-and-discourse/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/sh/bs/sources/)
- [↑ back to Bosnian (bs) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/sh/bs/)

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