Skip to main content

plot

PyPI Downloads PyPI arXiv License Socket Badge

Python library implementing "Chandassu", metrical poetry in global languages.
Currently supported language(s):

  • Telugu

arXiv Preprint: Read Here

Benchmarks

plot

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

plot

  • 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:

  1. web_scrapping.ipynb: Scraper scripts to collect data from andhrabharati.com
  2. Data_Analysis.ipynb: Analyzes data using different visualizations
  3. Chandassu_Generation.ipynb: Generates chandassu for the scraped data
  4. Score_Generation.ipynb: Computes scores by after chandassu generation
  5. 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 !

Metadata

Release files for chandassu 2.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chandassu 2.7.1
File Size Uploaded
chandassu-2.7.1.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chandassu 2.7.1
File Interpreter ABI Platform
chandassu-2.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 51.6 kB

Release files / chandassu-2.7.1.tar.gz

Download URL chandassu-2.7.1.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4ba17873067a74caed14cddffb0dce81df5bb00268748d978bbaf5f015c2ecd7
BLAKE2b-256 checksum
How to use checksums
9b406972157fb84af83be3576e9127d70f2894771f2bff2523c5de15982ba4c4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.4 Windows/10

Release files / chandassu-2.7.1-py3-none-any.whl

Download URL chandassu-2.7.1-py3-none-any.whl
Size 27.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f3900065ee6564a1f261ca73d8cb8107a0fb28c84fd1d398a87db428b658df03
BLAKE2b-256 checksum
How to use checksums
ac8601388a854d4b6e69fa63b635ea755945b2fbf8da6a36cae1fcc6cac7fda6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.2 CPython/3.11.4 Windows/10

Release history Release notifications | RSS feed

2.7.2

2 release files

This release

2.7.1 This release

2 release files

2.7.0

2 release files

2.6.0

2 release files

2.5.0

2 release files

2.4.0

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.1.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page