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/ps/34-mova-tools-and-data/)

[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/) / [ps](https://md.mova.elamur.ai/free/en/docs/languages/ps/) / 34. Pashto in Mova

# 34. Pashto in Mova

Mova has Pashto text samples, but the `ps` package has neither a parser model nor an annotated treebank. This chapter describes what the multilingual pipeline returns for that text, what a treebank baseline would measure, and how the grammar manual enters Squid’s implementation queue.

## The Pashto package and its model and corpus inventory

| Resource | Status for Pashto |
| --- | --- |
| Text samples | Mova’s corpora include material from Pashto Wikipedia. The supplied records contain Pashto prose, names, quotations, and mixed-script text. |
| Level-2 parser model | No `ps` model is available. |
| Annotated Universal Dependencies treebank | Mova holds no Pashto treebank. |
| Parser baseline | Mova has measured neither unlabeled attachment score (UAS) nor labeled attachment score (LAS) for Pashto. |

The text samples show forms and contexts that an annotation project would need to handle. They supply source wording for examples. They contain no reference tokenization, lemmas, tags, or dependency trees against which to score a parser. The corpus IDs in this chapter identify the source records for the quoted excerpts.

Mova’s own tree parser and tagger are in the `en` crate. Its model inventory includes English (`en.bin`) and French (`fr.bin`). Each model is used for spans assigned to its language. The package specification in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the same training-to-development baseline for each language, including Pashto.

## Script recognition and language segmentation

Language segmentation is the first level of `tools/mova-parse`. At this level, `tools/langseg` assigns a language label to each sentence and span. A sentence can contain several spans, so the language of the surrounding prose need not be the language of an embedded expression.

The segmenter distinguishes English and French in Latin script using a Latin table, a lexicon per language, and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Outside the supported script and lexicon coverage, it returns `other`. Pashto in its Arabic-based script falls under `other`, so this label cannot distinguish Pashto from other languages written in the same script. The documented extension for another Latin-script language requires a `Lang` code and a lexicon built from open UD training splits with `langseg latin-lexicon`. That procedure concerns Latin-script input.

The following excerpt illustrates why span labels and sentence labels serve different purposes. The Latin-script expression is embedded between Pashto words. The excerpt shows the input pattern, and its romanization and gloss are supplied here for reading.

| Form | Romanization | Gloss | Translation |
| --- | --- | --- | --- |
| د Regency یا Regency era اصطلاحات | də Regency yā Regency era iṣṭilāḥāt | GEN Regency or Regency era term.PL | “the terms ‘Regency’ or ‘Regency era’” |

Corpus excerpt from `wiki:ps:د نیابتي پاچاهۍ (سلطنت) دوره`.

A change of script can occur within a Pashto sentence. Conversely, a change of language can occur within a single script, as when a Pashto source includes an Arabic quotation. Script coverage therefore determines which distinctions the segmenter can make. A label of `other` gives no basis for deciding whether two such passages belong to the same language.

## Multilingual parser output for spans without a model

At the second level, `tools/mova-parse` uses the model of the language assigned to each span. A span assigned to a language with a model can receive an analysis even if another span of the sentence lacks one. When the required model file is absent, the `# parse` comment reports the missing model. The documented output for tokens in a span without a model has the following values.

| Field | Value | Information absent from the output |
| --- | --- | --- |
| `LEMMA` | `_` | Dictionary form |
| `UPOS` | `_` | Universal part-of-speech tag |
| `XPOS` | `_` | Language-specific part-of-speech tag |
| `FEATS` | `_` | Morphological features |
| `HEAD` | `_` | Syntactic head |
| `DEPREL` | `_` | Dependency relation |
| `MISC` | `Parse=None` | The marker records that the parser supplied no analysis. |

The two levels answer different questions. A language label identifies which model level 2 would need. The fields above record whether an analysis is available for the token. In particular, `_` in `HEAD` leaves the attachment unspecified. It cannot be counted as a root attachment. Likewise, `_` in `FEATS` gives no information about whether the source form expresses case, number, or any other feature. The rows can carry the source text through the output while leaving its linguistic analysis open.

## Tokenization, tagging, lemmatization and dependency annotation

The first annotation decisions concern the units that later stages describe. Tokenization determines the boundaries of the units presented for analysis. Tagging assigns parts of speech and, where the annotation calls for them, morphological features. Lemmatization relates written forms to dictionary forms. Dependency annotation assigns heads and labels the relations to those heads. Pashto requires its own conventions for these decisions before the corresponding output can be interpreted consistently.

| Form | Romanization | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- | --- |
| د اسلام | də islām | GEN Islam | “of Islam” | `wiki:ps:صفيه بنت حيي بن اخطب` |
| دهجرت | də hijrat | GEN Hijra | “of the Hijra” | `wiki:ps:صفيه بنت حيي بن اخطب` |
| ۷ مارچ ۱۹۰۰ | 7 mārč 1900 | 7 March 1900 | “7 March 1900” | `wiki:ps:ظاهر هويدا` |

In these excerpts, `GEN` glosses the genitive marker. The marker is separated by a space in the first excerpt and written together with the following noun in the second. An annotation convention must say how to represent these spellings in the treebank, since a whitespace boundary alone does not identify the grammatical units in both excerpts. A convention must also say how to represent date components and adjacent punctuation, including when a date appears in an otherwise Pashto record.

Once the units are fixed, an annotation guide must specify which categories and features to assign and how to choose lemmas across inflection and spelling variation. A dependency tree then needs a head and relation for each syntactic word under the chosen conventions. In clause annotation, the role of a nominal depends on the construction, so the convention has to account for case and agreement as well as order. In phrase annotation, it has to identify the roles of adpositions and the words they accompany. The excerpts illustrate the input to those decisions. They do not supply Pashto annotations from Mova.

## Treebank requirements and the UAS and LAS baseline

A train-to-development baseline requires a UD training split and a separately annotated development split. Both splits need compatible conventions for token boundaries, lemmas, tags, features, and dependencies. Dependency scores rely on reference heads and relations in the development split. Plain corpus text can supply sentences for annotation, but it cannot supply those reference decisions.

Mova’s baseline uses `en xpos-fill` before `en train`. The latter trains the tree parser and tagger on the UD training split for the language. `en parse-eval` measures UAS and LAS on the development split. The measures ask different questions about the same dependency prediction.

| Measure | A scored attachment is correct when |
| --- | --- |
| UAS, unlabeled attachment score | Its predicted head matches the reference head. |
| LAS, labeled attachment score | Its predicted head and dependency relation both match the reference. |

An attachment with the correct head and an incorrect relation counts as correct for UAS alone. An incorrect head fails both measures. These scores measure dependency attachment. They do not report separate accuracy for tokenization, tagging, or lemmatization. For Pashto, there are no measured values because Mova holds no annotated treebank. Blank annotations on the multilingual fallback output provide no substitute for either the reference annotations or the predictions needed for a score.

## Dependencies of frame and pragmatics processing

Mova’s frames, pragmatics, and world processing read English trees. Language segmentation provides labels for runs of text. A frame analysis would instead need syntactic information about the predicate and its dependents, and a pragmatics analysis that reads trees needs the grammatical structure those trees encode. A label on a span supplies none of that structure.

For Pashto, the immediate dependency is a parser analysis. The multilingual output for a span without a model supplies no heads or relations for downstream processing to read. Descriptions of clause structure in the manual can inform future annotation and testing, but they do not turn a span into a tree. The current tree-reading behavior is established for English. A Pashto tree is a prerequisite before any such processing can read a Pashto analysis.

## Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. It queues the claims that can be formalized, including rules, closed lists, and statistics. Each queued claim awaits a place in Mova’s code. Its presence in the queue records a point to implement.

The initial priorities follow the needs of a tokenizer, a tagger, and a UD treebank baseline. For example, the adjacent spellings of the genitive marker and noun raise a token-boundary decision. A tagger needs the categories and feature values required by the annotation, with conditions for assigning them. A treebank baseline needs consistent decisions about heads and relation labels in both splits. The grammar provides descriptions from which such claims can be drawn. The code and annotated data are what make it possible to apply those claims and measure the resulting analyses.

## How Mova handles Pashto today and where processing stops

`tools/mova-parse` uses `tools/langseg` at level 1 to label sentences and spans. `tools/langseg` covers English and French in Latin script, Hebrew-script varieties, and scholarly transliteration of Hebrew or Aramaic. Pashto’s Arabic-based script falls under `other`, so the segmenter does not identify it as Pashto from that script.

At level 2, `tools/mova-parse` parses each span with the model for its assigned language. There is no level-2 model for `ps`. The missing model is reported in the `# parse` comment. The tokens for a span without a model have `_` in `LEMMA`, `UPOS`, `XPOS`, `FEATS`, `HEAD`, and `DEPREL`, and `Parse=None` in `MISC`. Mova has no Pashto tokenization, tagging, lemmatization, or dependency analysis at this stage.

[What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for a shared UD baseline. In the `en` crate, `en train` trains the tree parser and tagger on the UD training split after `en xpos-fill`, and `en parse-eval` measures UAS and LAS on the development split. The available models are `en.bin` for English and `fr.bin` for French. Mova holds no Pashto treebank and has no measured Pashto baseline.

Mova’s frames, pragmatics, and world processing read English trees. With no Pashto parse, `prag` and `world` have no Pashto tree to read. Squid turns grammatical points into claims and queues the formalizable ones. The Pashto rules described in the manual are awaiting implementation, with the earliest work governed by what the tokenizer, tagger, and UD treebank baseline require.

## 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/ps/sources/)).
- [← previous 33. Implicature, presupposition and figurative language](https://md.mova.elamur.ai/free/en/docs/languages/ps/33-inference-and-figurative-language/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/ps/sources/)
- [↑ back to Pashto (ps) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/ps/)

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