bug-gettext
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]