Skip to main content

Uzbek Morphological Analyzer using Complete Set of Ending (CSE)

GitHub Hugging Face PyPI Website

Project Description

uzmorph is a professional-grade morphological analyzer for the Uzbek language that combines a massive lexicon (~122k stems) with CSE (Complete Set of Endings) morphological rules. It supports robust suffix stripping and multi-POS disambiguation for high-accuracy linguistic analysis.

You can try the live demo here: Hugging Face Space

Key Features

  • High Accuracy: Achieved 93% Word Coverage Accuracy on a sample of 20K unique Uzbek words.
  • Massive Lexicon: Built with over 122K unique stem-POS pairs.
  • Rule-Based CSE Engine: Implements the Complete Set of Endings paradigm for agglutinative suffix analysis.
  • Multi-POS Support: Handles ambiguous words (e.g., ot as both Noun "horse" and Verb "throw") by validating suffix rules against lexicon POS.
  • Rich Morphological Tagging: Extracts detailed features including part-of-speech (POS), tense, person, possession, case, and voice.
  • Flat JSON Output: Returns analysis results in a developer-friendly, flattened JSON-compatible format.

Installation

pip install uzmorph

Quick Start

from uzmorph import UzMorph

# Initialize the analyzer
analyzer = UzMorph()

# Analyze a word
results = analyzer.analyze("maktabimda")

# Formatted console print
analyzer.print_result(results)

JSON Result Sample

Each analysis result is a dictionary containing the following structure:

[
    {
        "word": "maktabimda",
        "stem": "maktab",
        "lemma": "maktab",
        "cse": "imda",
        "cse_formula": "(i)mda",
        "pos": "NOUN",
        "possession": "1",
        "cases": "Locative",
        "singular": "1",
        "syntactical_affixes": "(i)m da",
        "note": null,
        "ball": 308
    }
]

API Reference

UzMorph Class

  • analyze(word, pos_filter=None): Performs morphological analysis and returns a list of results.
  • print_result(results): Prints formatted output to the console.
  • get_pos_list(): Returns a formatted string of all available POS tags.
  • get_features_list(): Returns a list of all possible property keys in the result.

Project Structure (for PyPI)

For a clean PyPI contribution, only the following files are included in the package:

  • uzmorph/ - Core package directory containing implementation and data files (root.csv, cse.csv, etc.)
  • pyproject.toml - Package metadata and build configuration.
  • LICENSE - MIT License file.
  • README.md - Documentation.
  • MANIFEST.in - File inclusion rules for the source distribution.

License

MIT

Metadata

Release files for uzmorph 1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uzmorph 1.2.2
File Size Uploaded Provenance Actions
uzmorph-1.2.2.tar.gz 474.1 kB Without provenance Details for uzmorph-1.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for uzmorph 1.2.2
File Interpreter ABI Platform Actions
uzmorph-1.2.2-py3-none-any.whl Python 3 none any Details for uzmorph-1.2.2-py3-none-any.whl

Total release size: 965.7 kB

Release files / uzmorph-1.2.2.tar.gz

Download URL uzmorph-1.2.2.tar.gz
Size 474.1 kB
Tags Source
SHA-256 checksum
How to use checksums
90267fa0c1c7f671d7dbf5166354e630301d8cf5dbcdce732835e234662d74f1
BLAKE2b-256 checksum
How to use checksums
57206767d3f8e21b9aa3aa120ffcbf584d58daec4683be8a2b3997113d01714c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / uzmorph-1.2.2-py3-none-any.whl

Download URL uzmorph-1.2.2-py3-none-any.whl
Size 491.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb8e9a8ea186c3ffbf4ed7fe4fd5ecabe590a83f22697ea99217292ffc752d08
BLAKE2b-256 checksum
How to use checksums
c21bb1a2a5f8fbf1fd4a1e92dd528411bd8ecc9c081c05742c909e381b790360
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Security for uzmorph 1.2.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page