{"id":24365,"library":"pymorphy3-dicts-uk","title":"pymorphy3-dicts-uk","description":"Ukrainian morphological dictionary data for the pymorphy3 morphological analyzer. Version 2.4.1.1.1663094765 provides dictionaries for Ukrainian language analysis (part of speech tagging, lemma generation, inflection). Released sporadically.","status":"active","version":"2.4.1.1.1663094765","language":"python","source_language":"en","source_url":"https://github.com/no-plagiarism/pymorphy3-dicts","tags":["morphology","ukrainian","nlp","morphological-analysis"],"install":[{"cmd":"pip install pymorphy3-dicts-uk","lang":"bash","label":"Default install"}],"dependencies":[{"reason":"Requires pymorphy3 >= 2.0 to actually use the dictionaries. The -dicts package only provides data.","package":"pymorphy3","optional":false}],"imports":[{"note":"pymorphy3 is a separate library from pymorphy2. Using pymorphy2 will not load these dictionaries.","wrong":"import pymorphy2; from pymorphy2 import MorphAnalyzer","symbol":"pymorphy3.MorphAnalyzer","correct":"from pymorphy3 import MorphAnalyzer"}],"quickstart":{"code":"\"\"\"\nBasic usage of pymorphy3 with Ukrainian dictionaries.\n\"\"\"\nimport pymorphy3\nfrom pymorphy3 import MorphAnalyzer\n\n# Initialize analyzer with Ukrainian dictionary (automatically uses the installed dict)\nmorph = MorphAnalyzer(lang='uk')\n\n# Parse a word\nparse = morph.parse('кицька')\nif parse:\n    word = parse[0]\n    print(f\"Normal form: {word.normal_form}\")\n    print(f\"Part of speech: {word.tag.POS}\")\nelse:\n    print(\"Word not recognized.\")\n","lang":"python","description":"Parses a Ukrainian word to get its normal form and part of speech tag."},"warnings":[{"fix":"Run 'pip install pymorphy3-dicts-uk'.","message":"The dictionary package pymorphy3-dicts-uk must be installed separately; it is NOT automatically pulled by pymorphy3. Forgetting to install it results in a RuntimeError: ``Failed to load dictionary for language 'uk'``.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade: pip install --upgrade pymorphy3 pymorphy3-dicts-uk","message":"Versions prior to 2.4 use an older dictionary format. pymorphy3 2.x requires dictionary version matching the library. If you get import errors or 'Unknown format version', upgrade both.","severity":"deprecated","affected_versions":"pymorphy3 < 2.4"},{"fix":"After creating MorphAnalyzer(lang='uk'), call morph.word_is_known('тест') to confirm dictionaries are loaded.","message":"Loading an analyzer with lang='uk' without first verifying the dictionary is installed does not raise an error until parsing is attempted. This can mislead users into thinking setup succeeded.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"pip install pymorphy3-dicts-uk","cause":"The pymorphy3-dicts-uk package is not installed or the dictionary data is not found.","error":"Failed to load dictionary for language 'uk'"},{"fix":"pip install --upgrade pymorphy3 pymorphy3-dicts-uk","cause":"Mismatch between pymorphy3 version and dictionary version (e.g., pymorphy3 2.4+ with an older dict).","error":"Unknown dictionary format version"},{"fix":"Use: from pymorphy3 import MorphAnalyzer","cause":"Trying to import pymorphy2 instead of pymorphy3.","error":"ModuleNotFoundError: No module named 'pymorphy2'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}