Skip to main content

Kurdish text normalizer and number-to-text converter

Project description

ckb_textify

Kurdish text normalizer and number-to-text converter

ckb_textify is a Python library to normalize Kurdish (Central Kurdish - Sorani) text by converting numbers, dates, times, percentages, currencies, and decimals into fully spelled-out Kurdish text. It supports detailed Kurdish time and date expressions, handling suffixes and 12/24-hour formats.

Features

  • Convert integers and decimals to Kurdish words
  • Normalize dates in various formats to Kurdish text
  • Convert times (with AM/PM or Kurdish suffixes) to natural Kurdish expressions
  • Handle currencies, percentages, and decimal units
  • Clean and normalize Kurdish sentences for TTS or NLP applications

Installation

pip install ckb_textify

Usage

from ckb_textify.sentence_normalizer import convert_all

text = "ئەمە بەرواری 12/10/2023 و کاتژمێری 10:30 AM یان 22:45-ە"
normalized_text = convert_all(text)

print(normalized_text)

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Razwan M. Haji — GitHub

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

ckb_textify-1.0.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

ckb_textify-1.0.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file ckb_textify-1.0.0.tar.gz.

File metadata

  • Download URL: ckb_textify-1.0.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ckb_textify-1.0.0.tar.gz
Algorithm Hash digest
SHA256 42ccf32ec7ab8fc3becdbb12b9af80c5fff4e291eedc02459fda62f2f6de2ef9
MD5 38d2881ae73a14c7baba6db4a73b00ee
BLAKE2b-256 197946077bee2da3ce82112aec88a1880021e0a94f9469e4b054b35ce0948e42

See more details on using hashes here.

File details

Details for the file ckb_textify-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ckb_textify-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for ckb_textify-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c75a868a1e67def9b85127851547de538e9e41fbca5307598e90e118f4468b05
MD5 071e2f249f31f3bbea94082f420e4fbf
BLAKE2b-256 3e93583ddc0dadaf33f6ae83254bf31b85f24bc4dec51bf9b35054ab07a97e3d

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