Kaalin
A Python toolkit for the Karakalpak language. Zero dependencies, Python 3.10+.
Installation
pip install kaalin
Script Conversion
Bidirectional Latin ↔ Cyrillic conversion. Loanwords with special characters (ь, ъ, э, ё, щ) are handled automatically.
from kaalin.converter import latin2cyrillic, cyrillic2latin
latin2cyrillic("Assalawma áleykum") # Ассалаўма әлейкум
cyrillic2latin("Ассалаўма әлейкум") # Assalawma áleykum
# You can extend the built-in loanword dictionary with your own entries
latin2cyrillic("stilistika", custom_loanwords={"stilistika": "стилистика"})
Number to Words
Converts numbers to Karakalpak words. Supports integers, floats, and negatives up to 10³⁰.
from kaalin.number import to_word
to_word(123) # bir júz jigirma úsh
to_word(999, num_type="cyr") # тоғыз жүз тоқсан тоғыз
Syllabification
Splits words into syllables. Works with both Latin and Cyrillic input.
from kaalin.syllable import syllabify
syllabify("qaraqalpaqstan") # ['qa', 'ra', 'qal', 'paq', 'stan']
syllabify("Шарапат") # ['Ша', 'ра', 'пат']
String Utilities
Karakalpak-aware upper() / lower() that correctly handle the dotless ı ↔ Í pair.
from kaalin.string import upper, lower
upper("Assalawma áleykum") # ASSALAWMA ÁLEYKUM
lower("ASSALAWMA ÁLEYKUM") # assalawma áleykum
CLI
Convert text files between scripts from the terminal:
cyr2lat input.txt # writes input-lat.txt
lat2cyr input.txt # writes input-cyr.txt
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kaalin-3.3.3.tar.gz.
File metadata
- Download URL: kaalin-3.3.3.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4b41b66876a876fa5bab5632ec6ed691261f9ec6dfc51c0cc2d0c6cb9b8b3cdb
|
|
| MD5 |
f2965363ee11753e2384b132872d8181
|
|
| BLAKE2b-256 |
c87e1eb0cc324d4a7fe3626a0eef9668b1cc4f50c3db1664c58aeae9aadee6af
|
File details
Details for the file kaalin-3.3.3-py3-none-any.whl.
File metadata
- Download URL: kaalin-3.3.3-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
891edc44c103763247ada9f044d4eb8d87e99f504271b2daf6b354a85bdf0932
|
|
| MD5 |
ed05de2e619605460acdb29e3f88a7b5
|
|
| BLAKE2b-256 |
4244791dce20111db8dd07cfecf8f941140ee8c68a3b30f9358c60120d297ad6
|