PyMorphy3 is a morphological analyzer (POS tagger + inflection engine) for the Russian language. It provides tools for parsing words, getting normal forms, and inflecting words into various grammatical forms. The current version is 2.0.6, and the library is actively maintained with frequent minor releases to support new Python versions and address issues.
pip install pymorphy3 pymorphy3-dicts-ruVerified import paths — ran on the pinned version, not inferred.
Initializes the MorphAnalyzer and demonstrates parsing a word to get its grammatical tag and normal form, then inflecting it to a different case.
Upgrade your Python interpreter to 3.6 or higher, or pin `pymorphy3` to `<2.0.0`.
Remove calls to `restore_word_case`. You may need to handle word casing manually or derive it from the `lexeme` property of a `Parse` object if applicable.
Install with `pip install 'pymorphy3[fast]' pymorphy3-dicts-ru` to enable C-extensions for faster processing on supported Python versions.
Ensure `Click` is installed if you use the CLI tools: `pip install pymorphy3[cli]` (or `pip install Click`).