[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] Russian morphology
From: |
Juri Linkov |
Subject: |
Re: [bug-gettext] Russian morphology |
Date: |
Thu, 21 Mar 2019 23:45:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
Hi Bruno,
>> Indeed, a complete implementation of all Russian morphological rules
>> takes ~1600 lines of dense Perl code:
>>
>> http://www.linkov.net/files/nlp/Lingua-RU-Inflect.pm
>
> Out of curiosity, what are the parameters that influence the
> declension, conjugation, inflection?
> - Gender?
> - Ordinal / cardinal number?
> - what else?
The main lexical properties of words are:
- part of speech
- noun grammatical gender: masculine, feminine, neuter
- noun animacy: animate, inanimate
- verb grammatical aspect: perfective, imperfective
- verb transitivity: transitive/intransitive
- inflection type according to the classification from
the Grammar Dictionary of Andrey Zaliznyak
(the last great linguist of our time).
The main parameters that influence the declension are:
- grammatical case (one of 6 basic: nominative, genitive, dative,
accusative, instrumental, prepositional, plus more than 3 additional)
- number: singular and plural. Dual is not a grammatical number,
it only influences the choice of cases for words after numerals:
for 1 - nominative case, singular
for 2..4 - genitive case, singular
for 5.. - genitive case, plural (some words have an additional form
called "count form", e.g. "5 байт" instead of genitive plural "5 байтов")
Fortunately, only the latter is needed for pluralization of gettext
messages because translators know all lexical properties of the words
used in translation, so they need just to select a proper case
for words after numbers from different categories.
- Re: [bug-gettext] Emacs i18n, Bruno Haible, 2019/03/20
- Re: [bug-gettext] Emacs i18n, Paul Eggert, 2019/03/20
- Re: [bug-gettext] Emacs i18n, Juri Linkov, 2019/03/20
- Re: [bug-gettext] Russian morphology, Bruno Haible, 2019/03/20
- Re: [bug-gettext] Russian morphology,
Juri Linkov <=
- Re: [bug-gettext] Emacs i18n, Bruno Haible, 2019/03/20
- Re: [bug-gettext] Emacs i18n, Richard Stallman, 2019/03/21
- Re: [bug-gettext] Emacs i18n, Juri Linkov, 2019/03/21
- Re: [bug-gettext] Emacs i18n, Richard Stallman, 2019/03/22
- Re: [bug-gettext] Emacs i18n, Yuri Khan, 2019/03/23
- Re: [bug-gettext] Emacs i18n, Ineiev, 2019/03/23
- Re: [bug-gettext] Emacs i18n, Richard Stallman, 2019/03/23
- Re: [bug-gettext] Emacs i18n, Juri Linkov, 2019/03/23
- Re: [bug-gettext] Emacs i18n, Richard Stallman, 2019/03/23
- Re: [bug-gettext] Emacs i18n, Chusslove Illich, 2019/03/22