Python library implementing "Chandassu", metrical poetry in global languages.
Currently supported language(s):
- Telugu
arXiv Preprint: Read Here
Benchmarks
Our algorithm achieves 91.73% accuracy on the proposed Chandassu Score.
Usage
Install package using
pip install chandassu
Check padyam
from chandassu.telugu.laghuvu_guruvu import LaghuvuGuruvu
from chandassu.telugu.padya_bhedam import check_padyam
data= """తొండము నేక దంతమును తోరపు బొజ్జయు వామ హస్తమున్
మెండుగ మ్రోయు గజ్జెలును మెల్లని చూపులు మందహాసమున్
కొండొక గుజ్జు రూపమున కోరిన విద్యలకెల్ల నొజ్జవై
యుండెడి పార్వతీ తనయ యోయి గణాధిప నీకు మ్రొక్కెదన్"""
# Generate LaghuvuGuruvu Sequence
lg_data= LaghuvuGuruvu(data= data).generate()
score= check_padyam(
lg_data= lg_data ,
type= "vutpalamaala",
return_micro_score= True,
verbose= False
)
print(score)
Computational Architecture
- nidhi.py: Telugu alphabet classification with phonological categorizations
- panimuttu.py: Vowel-consonant operations utility functions
- laghuvu_guruvu.py: Prosodic analysis engine with tokenizer and syllabic weight classifier
- ganam.py: Pattern repository mapping LaghuvuGuruvu sequences to metrical units
- padyam_config.py: Configuration database for padyam type constraints and rules
- check_lakshanam.py: Validation module for yati (caesura) and prasa (alliteration)
- padya_bhedam.py: Main integration module for metrical assessment and evaluation
Notebooks:
- web_scrapping.ipynb: Scraper scripts to collect data from andhrabharati.com
- Data_Analysis.ipynb: Analyzes data using different visualizations
- Chandassu_Generation.ipynb: Generates chandassu for the scraped data
- Score_Generation.ipynb: Computes scores by after chandassu generation
- Accuracy_Evaluation.ipynb: Benchmarking and accuracy (Chandassu Score) evaluation
Eager to Contribute?
Any data, features, refactoring or your innovative thought, please check here.
Acknowledgements
Special thanks to Sesha Sai Vadapalli and Kalepu Nagabhushana Rao, maintainers of andhrabharati.com.
Appana Mohan Naga Phani Kumar for proofreading our article.
Sincere gratitude to our parents and family members for their continuous support throughout this work.
This work was undertaken with the grace of Sri Ramalinga Chowdeswari Devi.
Citation
@misc{pavan2025computationalsociallinguisticstelugu,
title={Computational Social Linguistics for Telugu Cultural Preservation: Novel Algorithms for Chandassu Metrical Pattern Recognition},
author={Boddu Sri Pavan and Boddu Swathi Sree},
year={2025},
eprint={2510.01233},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2510.01233},
}
Thank You !
Release files for chandassu 2.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| chandassu-2.6.0.tar.gz | 24.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| chandassu-2.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 51.4 kB
Release files / chandassu-2.6.0.tar.gz
| Download URL | chandassu-2.6.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae1f11fba8d98e043261ac1314e7b053222bdc0fb2ce2cc5ab9da2602e206b78
|
|
BLAKE2b-256 checksum How to use checksums |
13cc75dc06b321195d672d471c4672382ea3f0fbe9adf5c0969ded9ecd5103e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.11.3 Windows/10
|
Release files / chandassu-2.6.0-py3-none-any.whl
| Download URL | chandassu-2.6.0-py3-none-any.whl |
|---|---|
| Size | 27.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ac049c6b7385da3fdcd70d099705d14ffe9501a87b7a95ad9013af1728bb0eed
|
|
BLAKE2b-256 checksum How to use checksums |
132f97a7b4f75247b16b0d11b76c81792f42d37c0825fcdee8a5506c5ab3f032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.11.3 Windows/10
|