The story is that the grammar began with a drum. शिव (Śiva), as नटराज (Naṭarāja), the king of dancers, came to the end of his dance, and as he finished he beat his drum fourteen times. He did it, the verse says, to lift up सनक (Sanaka) and the other sages, and each beat was a line of sounds. A short book of verses on those lines, the नन्दिकेश्वरकाशिका (Nandikeśvarakāśikā), opens with the moment:
नृत्तावसाने नटराजराजो ननाद ढक्कां नवपञ्चवारम्।
At the end of the dance, the king of dancers sounded his drum nine and five times. नवपञ्च, nine and five, is the poem’s way of saying fourteen without saying it. The sounds of those beats, the story goes on, reached पाणिनि (Pāṇini), and from them he made his grammar.
That is a story, not history. Nobody heard the drum, and nothing in the grammar depends on it. But the story gets one thing right. The fourteen lines are where पाणिनि’s grammar starts, they come before everything else in it, and without them very little of the rest can even be read. They are known as the शिवसूत्र (Śivasūtra), or the माहेश्वरसूत्र, the सूत्र of the Great Lord. What they hold looks like the alphabet. It turns out to be something cleverer: a list built so that two letters can name any group of sounds a rule will ever need.
Fourteen lines
Here they are, as every grammar of Sanskrit prints them:
अइउण् । ऋऌक् । एओङ् । ऐऔच् । हयवरट् । लण् ।
ञमङणनम् । झभञ् । घढधष् । जबगडदश् । खफछठथचटतव् । कपय् । शषसर् । हल् ॥
Read aloud, they sound like nonsense. They are not words. Each line is a run of sounds with one extra consonant stuck on its end: अ, इ, उ, then ण्; ऋ, ऌ, then क्. The last consonant is not part of the list. It is a marker, and पाणिनि has a name for a marker, इत् (it). One of his rules, हलन्त्यम्, says that a consonant at the end of anything taught in the grammar is a marker; a few rules later, तस्य लोपः says that a marker disappears. So the markers are there to be pointed at, and never to be said.
The sounds themselves are a strange order for anyone who grew up with क ख ग घ ङ. That order is a map of the mouth, row by row from the throat to the lips, and these lines ignore it. The vowels come first, but the long ones are missing. Then come ह, य, व, र and ल, the semivowels with ह in front. The nasals follow in a row of their own, ञ म ङ ण न, then the voiced consonants with a puff of breath, झ भ घ ढ ध, then the plain voiced ones, ज ब ग ड द, then the voiceless, ख फ छ ठ थ च ट त क प, then the three hissing sounds श ष स, and finally ह again. The rows of the mouth are cut up and dealt out by kind. And the consonants are written with an अ only so they can be said aloud; a commentary on the lines, the काशिकावृत्ति (Kāśikāvṛtti), says so in as many words.
Where are आ, ई and ऊ? They aren’t needed. A separate rule says that a short vowel named in a list stands for its long and its other forms too, so अ in this list brings आ along with it.
Two letters for a group
Now the trick. Take any sound in the list and any marker after it, put them together, and the pair names every sound from the first up to the marker, with the markers themselves left out. पाणिनि puts it in four words, आदिरन्त्येन सहेता, “the first, with the last marker”. A name made this way is a प्रत्याहार (pratyāhāra), a drawing-together.
Start with अ and run to the marker च् at the end of the fourth line, and you have अच् (ac): अ इ उ ऋ ऌ ए ओ ऐ औ, every vowel. Start with ह and run to the very last marker, ल्, and you have हल् (hal): every consonant. Take अ to the same last marker and you have अल् (al), every sound there is. The names are so useful that they leaked out of the grammar. A Sanskrit word that ends in a consonant is still called हलन्त, “ending in हल्”, and Nepali school grammar uses the word too, for the little stroke under a letter, ्, that shows it has no vowel. Few people who say it know that हल् is a range in a list.
Smaller groups are just as easy. इक् (ik), from इ to the marker क् of the second line, is इ उ ऋ ऌ. यण् (yaṇ), from य to the marker ण् of the sixth line, is य व र ल. Those two names, with अच्, make one of the most used rules in the grammar:
इको यणचि
Three words: of इक्, यण्, before अच्. In place of इ उ ऋ ऌ, put य व र ल, before a vowel. That is the join from Chapter 14, where इति and आदि became इत्यादि and सु and आगत became स्वागत, stated whole in three words. Which one replaces which? Another rule says that a sound is replaced by the one most like it. इ and य are both said with the tongue raised toward the palate, so इ becomes य, and in the same way उ becomes व, ऋ becomes र and ऌ becomes ल.
Play with it and two oddities show. ण् is a marker twice, at the end of the first line and of the sixth, so अण् could mean अ इ उ or a run of fourteen sounds out to ल. The commentaries settle it by usage: in every rule but one, अण् ends at the first ण्, and in that one, the rule that lets a vowel stand for its long forms, it runs to the second. The other oddity is ह, which is in the list twice, on the fifth line and alone on the last. Groups that start with ह start at the first one, so हल् is all the consonants. The second ह is there so that the groups that end at ल्, the ones that start in the middle of the consonants, take ह in too.
Most pairs name nothing anyone needs. The list allows 305 pairs of a sound and a later marker, and they name 281 different groups of two sounds or more. पाणिनि uses about forty of them. The काशिकावृत्ति counts them in a verse, so many names with each marker, and its total is 41, to which grammarians add one more made a different way: a group of just र and ल, named with the nasal अ of the sixth line. That makes 42, and the widget marks each of the 41 with a rule that uses it.
Why this order
So why put the sounds in such a strange order? Because the order is the whole design. A group can only be named if its sounds stand together in one unbroken stretch, and पाणिनि’s rules need dozens of groups: the vowels, the consonants, the voiced consonants, the stops that can be doubled, the sounds that turn into others before a hiss. Each one has to be a stretch. Put the nasals in the wrong place and some rule about nasals needs a list instead of a name. The fourteen lines are an arrangement in which, as far as possible, every group the grammar talks about is one piece of the line.
That is why the semivowels sit together just after the vowels, य व र ल. It is why the voiced stops with a puff, झ भ घ ढ ध, come right before the plain voiced ones, so that झश् (jhaś), from झ to the marker श्, is every voiced stop, and जश् (jaś), from ज, is the plain ones alone. One rule, झलां जश् झशि, says that the sounds of झल् become the sounds of जश् before the sounds of झश्: a whole class of consonants turns voiced before another class, in three words, because each class is one stretch of the list.
People have puzzled over this order for a long time. Much of it is explained by the rules, but not all, and for the leftover puzzles some scholars looked to older ways of listing the sounds. Others, the linguist Paul Kiparsky among them, argued that the grammar itself explains nearly everything: the list has the order and the shape that make the rules shortest, together with the grammar’s habit of letting a special rule override a general one. Wiebke Petersen, a computational linguist, took the question to mathematics. She took the groups पाणिनि actually uses and asked whether any list could make every one of them an unbroken stretch. None can, unless some sound is written twice. Then she showed that one sound written twice is enough, that ह is the only good choice for it, and that पाणिनि’s fourteen lines repeat as few sounds and use as few markers as any such list can. However he found it, the arrangement is the best possible by that measure.
This is what makes the lines interesting outside Sanskrit. They are a piece of data design: a way of laying out information so that the questions you will ask of it are cheap to answer. Anyone who has given a computer a range, every row from 5 to 9, every letter from a to f, has used the same idea. पाणिनि had no computer. His grammar was learned by heart, and every syllable saved was a syllable less to carry.
The list he was given
One more look at the first line. अइउण् lists the short अ, and पाणिनि needs that अ to behave like आ in his rules, as its short partner, said with the mouth just as open. But the short अ of Sanskrit isn’t said that way. It is said with the mouth less open, a closed sound, while आ is long and open. So for the length of the grammar पाणिनि treats अ as open, and puts it back with a rule of two letters. That rule is the very last of the grammar’s almost four thousand, and Chapter 27 comes back to it.
Whether पाणिनि made the list himself or reshaped an older one, nobody knows, and scholars disagree. The tradition has its own answer. The पाणिनीय शिक्षा (Pāṇinīya Śikṣā), a short book in verse on how the sounds are made, bows to him in its closing verses:
येनाक्षरसमाम्नायमधिगम्य महेश्वरात्।
कृत्स्नं व्याकरणं प्रोक्तं तस्मै पाणिनये नमः॥
To पाणिनि, who received the list of sounds from the Great Lord and taught the whole of grammar from it, a bow. अक्षरसमाम्नाय (akṣarasamāmnāya) is the grammarians’ own name for the fourteen lines. Nepali has both halves, अक्षर, a letter, and समाम्नाय, a list handed down.
It begins with येन, by whom, and answers it with तस्मै, to him, the kind of pair Chapter 23 is about. And it gives शिव the list and पाणिनि everything built on it. The order of that thanks is fair in a way the verse may not have meant. The rules, almost four thousand of them, are where the work is. But the list is where the cleverness is easiest to see, because it is small enough to hold in one hand.
What to take away is that the fourteen शिवसूत्र are not the alphabet but a list of the sounds of Sanskrit in the order पाणिनि’s rules need, each line closed by a marker that is never said. A sound and a later marker name every sound between them, so अच् is the vowels, हल् the consonants, इक् is इ उ ऋ ऌ and यण् is य व र ल, and a rule like इको यणचि says a whole join of Chapter 14 in three words. The list allows 281 groups and पाणिनि uses about forty; the order was chosen so that each group he needs is one unbroken stretch, and with ह written twice it repeats as few sounds and uses as few markers as such a list can. It is data design: information laid out so that the questions asked of it are short to ask.
Found a mistake? Please tell us.
