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 !

Release files for chandassu 2.5.0

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.5.0
File Size Uploaded
chandassu-2.5.0.tar.gz 22.8 kB Details

Built distribution (wheel)

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

Total release size: 48.5 kB

Release files / chandassu-2.5.0.tar.gz

Download URL chandassu-2.5.0.tar.gz
Size 22.8 kB
Tags Source
SHA-256 checksum
How to use checksums
6e9671261fea6d6594a37dc6e39565b2dab5b8264ca8e0347490692cf4b5f7d3
BLAKE2b-256 checksum
How to use checksums
08e9a09e16ec08cc12d22b186994df0a3a8e8aeef7a3d9439a1834c261dec93b
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.5.0-py3-none-any.whl

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

Release history Release notifications | RSS feed

2.7.0

2 release files

2.6.0

2 release files

This release

2.5.0 This release

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