A story, then a system
Tradition says that at the end of his cosmic dance, Śiva sounded his drum fourteen times, and each beat gave a line of sounds. That is why the lines are also called the Māheśvara sūtras. Whatever their origin, they open Pāṇini’s grammar and make the rest of it possible.
How the code works
Each line ends in a consonant that is never pronounced. It is a marker, called an it. Two rules turn the list into a code:
“The final consonant (of an item taught by the grammarian) is a marker.”
Aṣṭādhyāyī 1.3.3“A first sound, joined to a final marker, names itself and every sound in between.”
Aṣṭādhyāyī 1.1.71So a + the marker c (end of line 4) gives ac: every sound from a up to that marker, which is all the vowels. ha + the final marker l gives hal: all the consonants. These short names are called pratyāhāras, and Pāṇini uses about forty of them.
Why the strange order?
The list is not in the usual alphabet order (क ख ग घ ङ…). It is arranged so that the classes Pāṇini’s rules actually need fall into unbroken runs. A few sounds had to appear twice (ha, and the marker ṇ) to make every needed class reachable. Linguists still discuss how close this ordering comes to the best possible.
One rule, many words
“In place of ik (i u ṛ ḷ, short or long), yaṇ (y v r l) comes, before ac (a vowel).” Three pratyāhāras make one rule that covers dozens of sound changes: sudhī + upāsya → sudhyupāsya, madhu + ari → madhvari.
Aṣṭādhyāyī 6.1.77Without the code, this one line would have to list every vowel and every pairing by hand.
Śiva Sūtra explorer
Tap a sound, then a dashed marker. Or try a famous one:
Why it still matters
A grammar written like a program
Variables, ordered rules, defaults and exceptions, compressed symbols: Pāṇini’s grammar reads to many modern readers like a formal system, and it has drawn the attention of linguists and computer scientists for two centuries. The timeline follows that story from Calcutta in 1786 to the NLP labs of today.
Questions people ask
What is a pratyāhāra?
A pratyāhāra is a short code for a class of sounds, made from a first sound and a marker letter from the Śiva Sūtras. It names that sound and every sound up to the marker: ac means all the vowels, hal all the consonants, yaṇ the semivowels y v r l.
Why are the Śiva Sūtras not in alphabetical order?
The sounds are arranged so that the classes Pāṇini’s rules need fall into unbroken runs. A few items appear twice, such as ha and the marker ṇ, so that every needed class can be named.
What does “iko yaṇ aci” mean?
Aṣṭādhyāyī 6.1.77: in place of ik (i, u, ṛ, ḷ) comes yaṇ (y, v, r, l) before a vowel. So sudhī + upāsya becomes sudhyupāsya, and madhu + ari becomes madhvari.
Cite: Ray, N. S. (2026). “The Śiva Sūtras: Pāṇini’s sound code.” Vaaani. https://vaaani.in/vyakarana/shiva-sutras/ · Sources: Cardona (1997); Kiparsky (2009); Vasu (1891–98).