Skip to main content

A library for processing Uzbek text, including conversion, cleaning, and analysis.

Project description

Uzhond

Uzhond is a Python library for processing Uzbek text. It provides functionalities for text conversion, cleaning, stop word management, and text analysis, making it a useful tool for both beginners and advanced users.

Features

  • Convert between Cyrillic and Latin scripts
  • Clean text by removing special characters and extra spaces
  • Manage Uzbek stop words
  • Analyze text for word and sentence counts

Installation

pip install uzhond

Usage

from uzhond.converter import to_latin, to_cyrillic
from uzhond.cleaner import remove_special_chars, remove_emojis, normalize_spaces
from uzhond.stopwords import remove_stopwords
from uzhond.analyzer import count_words, count_sentences

text = "Салом дунё! 😊  Узбек тилидаги матн."

# Конвертация
latin_text = to_latin(text)
cyrillic_text = to_cyrillic(latin_text)

# Очистка
cleaned = remove_special_chars(text)
no_emoji = remove_emojis(cleaned)
normalized = normalize_spaces(no_emoji)

# Работа со стоп-словами
filtered = remove_stopwords(normalized)

# Анализ
words = count_words(filtered)
sentences = count_sentences(filtered)

print(f"Слов: {words}, Предложений: {sentences}")

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uzhond-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uzhond-0.1.0-py3-none-any.whl (1.9 kB view details)

Uploaded Python 3

File details

Details for the file uzhond-0.1.0.tar.gz.

File metadata

  • Download URL: uzhond-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for uzhond-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d17f57207cb57703ccefdc69615f26338f67468610dd8bf270ba39ca3a736240
MD5 80cd33fa3db4e8115d087724cd6539e6
BLAKE2b-256 51b335e5f8a09bcfc580e0b10e74fef0ce6a792509334a522e73d8d9c43d902e

See more details on using hashes here.

File details

Details for the file uzhond-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: uzhond-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for uzhond-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84486d194202da48c165401314b4dc28d33b1b9d0b9d41e0b255186c1e9318d8
MD5 eb7d2c6ecdfe706b00d969e75b24d0ed
BLAKE2b-256 1740ffbf0db10725e105786f84f134a66e0d61dd778fea2f397338124e103ecc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page