https://pypi.org/project/UzSyllable
https://github.com/UlugbekSalaev/UzSyllable
UzSyllable tool is focused to make division of syllables and end of line breaks of Uzbek language. The tool includes Syllabification, End-of-Line, Count of Syllables methods. It is created as a python library and uploaded to PyPI. It is simply easy to use in your python project or other programming language projects via the API.
The UzSyllable project is a text processing tool that includes three main methods: syllabification, end-of-line, and count of syllables. Syllabification involves dividing words in Uzbek text into their constituent syllables, which can be useful for pronunciation, spelling, and linguistic analysis. End-of-line justification involves determining the appropriate places to break lines in Uzbek text, which can improve the readability and aesthetics of written materials. Count of syllables involves counting the number of syllables in a given word or sentence, which can be useful for metrics such as rhyme and meter in poetry or for determining the complexity of a text. The UzSyllable project uses machine learning algorithms and linguistic rules to perform these methods accurately and efficiently on Uzbek text.
- Syllabification
- Hyphenation
- Count of Syllables
Three options to use UzSyllable:
- pip
- Web tool
- API
To install UzSyllable, simply run:
pip install UzSyllable
After installation, use in python like following:
from UzSyllable import syllables
print(syllables('maktabimda'))
# Output : ['mak-ta-bim-da']
print(syllables('мактабимда'))
# Output : ['мак-та-бим-да']
from UzSyllable import hyphenation
# call hyphenation method
print(hyphenation('maktabimda'))
# Output : ['mak-tabimda', 'makta-bimda', 'maktabim-da']
from UzSyllable import count
# call count of syllables method
print(count('maktabimda'))
# Output : 4
You can use web interface.
-
Example Request: https://api.urdu.uz/syllables?word=maktab
-
Example Request: https://api.urdu.uz/line-break-syllables?word=maktabgacha
-
Example Request: https://api.urdu.uz/count-syllables?word=maktabgacha
@misc{UzSyllable,
title={UzSyllable}: Syllabification Tool for Uzbek},
url={https://github.com/UlugbekSalaev/UzSyllable},
note={Software available from https://github.com/UlugbekSalaev/UzSyllable},
author={
Ulugbek Salaev},
year={2023},
}
For help and feedback, please feel free to contact the author.