Converter ud-2.18 ⇄ mova
The rules are written in the convert language of The Mova dialect: a UD metadialect, treebanks and converters and run with en convert / en convert-check. Rule ids: ud-2.18.* for ud-2.18 → mova, mova.ud-2.18.* for the reverse.
ud-2.18: EWT conventions of UD 2.18, the base ofmovauntil 2.19 (the corpora Mova annotated before, the models trained on them).mova: the base, UD 2.19 with EWT conventions and our own normalizations (dialects/mova); the rules are the four EWT FEATS changes of the 2.19 release (ud-2.19).
The who-pronoun rules repeat the ud-next rules, which predicted this change before the release. The ud-next rule discourse-adv is not here: EWT 2.19 keeps its 9 adverbs with discourse.
ud-2.18 → mova
Order matters: the free-relative rules fire before the general rules about who; every Case rule has !feats.Case, so a second run changes nothing.
rule: ud-2.18.whom-lemma
what: whom → lemma who
from: ud-2.18
to: mova
match: t[upos=PRON, form=whom]
set: t[lemma=who]
source: UD 2.19 docs/_en/pos/PRON.md; EWT 2.19
rule: ud-2.18.whomever-lemma
what: whomever → lemma whoever
from: ud-2.18
to: mova
match: t[upos=PRON, form=whomever]
set: t[lemma=whoever]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.whom-acc
what: whom, whomever — Case=Acc by form
from: ud-2.18
to: mova
match: t[upos=PRON, form=whom|whomever, !feats.Case]
set: t[feats+=Case=Acc]
source: UD 2.19 docs/_en/pos/PRON.md; docs/changes.md No. 18
rule: ud-2.18.who-freerel-acc
what: who/whoever heading a free relative in object position whose clause has its own subject — Acc
from: ud-2.18
to: mova
match: t[upos=PRON, form=who|whoever, !feats.Case, rel=obj|iobj|obl|obl:agent|nmod]; r[rel=acl:relcl, head=t]; s[rel~nsubj, head=r]
set: t[feats+=Case=Acc]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.who-freerel-nom
what: who/whoever heading a free relative in object position whose clause has no subject of its own — Nom
from: ud-2.18
to: mova
match: t[upos=PRON, form=who|whoever, !feats.Case, rel=obj|iobj|obl|obl:agent|nmod]; r[rel=acl:relcl, head=t]
set: t[feats+=Case=Nom]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.who-acc
what: who/whoever as a direct or prepositional object — Acc
from: ud-2.18
to: mova
match: t[upos=PRON, form=who|whoever, !feats.Case, rel=obj|iobj|obl|obl:agent|nmod]
set: t[feats+=Case=Acc]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.who-nom
what: who/whoever in every other position — Nom
from: ud-2.18
to: mova
match: t[upos=PRON, form=who|whoever, !feats.Case]
set: t[feats+=Case=Nom]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.whose-dependent
what: whose with a noun — Case=Gen and Poss=Yes
from: ud-2.18
to: mova
match: t[upos=PRON, form=whose, rel=nmod:poss, !feats.Case]
set: t[feats+=Case=Gen; feats+=Poss=Yes]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.whose-independent
what: standalone whose — Poss=Yes without Case
from: ud-2.18
to: mova
match: t[upos=PRON, form=whose, rel!=nmod:poss]
set: t[feats+=Poss=Yes]
source: UD 2.19 docs/_en/pos/PRON.md
rule: ud-2.18.imperative-do-inf
what: the verb under imperative do (Don't worry) — VerbForm=Inf without Mood; do keeps Mood=Imp
from: ud-2.18
to: mova
match: v[feats.Mood=Imp]; d[lemma=do, rel=aux, head=v, feats.Mood=Imp]
set: v[feats-=Mood, feats+=VerbForm=Inf]
source: EWT 2.19 data (dialects/ud-2.18/seeds.md#imperative-do: the guideline wins)
rule: ud-2.18.propn-number
what: a proper noun without Number — Number=Sing
from: ud-2.18
to: mova
match: t[upos=PROPN, !feats.Number]
set: t[feats+=Number=Sing]
source: EWT 2.19 data: every PROPN has Number (475 had none in 2.18)
rule: ud-2.18.no-neg
what: adverb no — PronType=Neg
from: ud-2.18
to: mova
match: t[upos=ADV, lemma=no, !feats.PronType]
set: t[feats+=PronType=Neg]
source: EWT 2.19 data: ADV no 31 of 31 with PronType=Neg (0 in 2.18)
mova → ud-2.18
rule: mova.ud-2.18.who-case-drop
what: drop Case from who pronouns (2.18 EWT has none)
from: mova
to: ud-2.18
match: t[upos=PRON, lemma=who|whoever, feats.Case]
set: t[feats-=Case]
source: UD 2.18 docs/_en/pos/PRON.md:48
rule: mova.ud-2.18.whose-case-drop
what: drop Case=Gen from whose, keep Poss=Yes
from: mova
to: ud-2.18
match: t[upos=PRON, form=whose, feats.Case]
set: t[feats-=Case]
source: UD 2.18 docs/_en/pos/PRON.md:68
rule: mova.ud-2.18.whom-lemma
what: whom, whomever — lemma equals form (EWT 2.18 custom)
from: mova
to: ud-2.18
match: t[upos=PRON, form=whom|whomever]
set: t[lemma=@form]
source: EWT 2.18
rule: mova.ud-2.18.imperative-do-fin
what: the infinitive under imperative do — back to Mood=Imp, VerbForm=Fin (EWT 2.18 custom)
from: mova
to: ud-2.18
match: v[xpos=VB, feats.VerbForm=Inf, !feats.Mood]; d[lemma=do, rel=aux, head=v, feats.Mood=Imp]
set: v[feats+=Mood=Imp, feats+=VerbForm=Fin]
source: EWT 2.18 (dialects/ud-2.18/seeds.md#imperative-do)
rule: mova.ud-2.18.no-neg-drop
what: adverb no — drop PronType
from: mova
to: ud-2.18
match: t[upos=ADV, lemma=no, feats.PronType=Neg]
set: t[feats-=PronType]
source: EWT 2.18
There is no reverse rule for propn-number: which proper nouns had no Number in 2.18 is not visible from the tree, so export to 2.18 keeps it.
This page in Markdown https://md.mova.elamur.ai/free/en/docs/dialects/ud-2.18/convert/