पिङ्गल - Laghu-Guru Pattern Validator
TYCS · IKS PROJECT · ROLL 2407025 · ID 2407025
पिङ्गल

Laghu-Guru Pattern Validator

A prosody engine that syllabifies Sanskrit verse, classifies every syllable as laghu (light) or guru (heavy) by classical rule, and checks the resulting pattern against named Chandas - the same light/heavy binary logic Piṅgala used c. 3rd–2nd century BCE to encode meter, centuries before it resurfaced as the binary numeral system in computing.
(empty - tap L or G above)
Guru - heavy syllable Laghu - light syllable gold outline - mismatch vs. selected meter

Why this counts as Indian Knowledge Systems

Piṅgala's Chandaḥśāstra treats every metrical syllable as one of exactly two states - laghu or guru - and shows how fixed-length sequences of these two states can be enumerated, counted, and converted to and from an ordinal index. That is functionally identical to representing a number in base 2, worked out roughly two thousand years before it was needed for electronic computing. This tool takes that same principle and applies it as a rule-based classifier and pattern matcher, so the syllable rules become executable code rather than a manuscript formula.

Classification rules implemented here: a syllable is guru if its vowel is inherently long, if it carries an anusvāra, visarga or candrabindu, or if it is followed by a conjunct of two or more consonants before the next vowel; otherwise it is laghu. The optional "pada-end" toggle reflects the traditional convention that the final syllable of a line may be counted as guru regardless of its natural weight.

TYCS · IKS Topic 25 · Piṅgala · Laghu-Guru Pattern Validator Roll No. 2407025