Composed in what is now northwestern Pakistan around 500–400 BCE, the Aṣṭādhyāyī — the "Eight Chapters" of Pāṇini — gives a generative description of Sanskrit in just under 4,000 sūtras (terse aphoristic rules). By Paul Kiparsky's count the whole grammar is 3,981 rules totalling fewer than 10,000 words (editions divide a few rules differently). Linguists including Leonard Bloomfield, Paul Kiparsky, and Noam Chomsky have discussed its formal analysis in relation to later work in linguistics and computer science.
We know almost nothing about Pāṇini the person. Later tradition places his home at Śalātura: an 8th-century copper-plate inscription calls him Śālāturīya, "the man from Śalātura", and the 7th-century Chinese pilgrim Xuanzang reported his birthplace as a town on the Indus. Śalātura is usually identified with modern Lahor (Lahur), near Attock in northwestern Pakistan, not the major Punjabi city of Lahore. He probably worked in the 5th or 4th century BCE, and his grammar was designed to be memorized aloud. The Aṣṭādhyāyī was preserved by recitation for centuries before being written down. To keep the text as short as possible, Pāṇini built an entire technical metalanguage: marker letters tagged onto words and affixes to signal how they behave; the Śiva sūtras, 14 short lines listing the sounds of Sanskrit in a fixed order, so that any class of sounds can be named by its first member plus a closing marker (ac = every vowel, hal = every consonant); conventions for "context-sensitive" rule application, anuvṛtti (rule inheritance from a previous line that need not be re-stated), and a precedence system for resolving which rule applies when two rules conflict.
To a modern eye the result looks uncannily like the context-sensitive rewrite rules of modern phonology. Pāṇini uses no arrows, though: he marks each part of a rule with a grammatical case. The genitive names what is replaced, the nominative its replacement, the ablative the sound before it and the locative the sound after it. In modern notation:
A → B / X _ Y
"A becomes B in the context where it is preceded by X and followed by Y" — the format that Chomsky and Halle's The Sound Pattern of English (1968) made standard in generative phonology.
Rule 6.1.77 is just three words: iko yaṇ aci, "in place of ik [i, u, ṛ, ḷ], yaṇ [y, v, r, l], before ac [any vowel]". That single line is why dadhi "curd" + atra "here" becomes dadhy atra.
Examples of what Pāṇini's machinery does:
- Sandhi. Sanskrit is famous for assimilating sounds across word boundaries (tat + ca → tac ca, tat + na → tan na). Pāṇini covers it with a compact set of rules, many placed in the tripādī, the grammar's final three sections. Rule 8.2.1 declares every rule there "not yet in effect" (asiddha) for the rules before it, so they apply strictly one after another, as in classical generative phonology. Kiparsky shows that this one device handles what phonologists now call opaque rule interactions.
- Verbal morphology. A single Sanskrit verb root yields hundreds of forms: ten sets of tenses and moods, each with three persons, three numbers and up to two voices, before you count participles and derived verbs. Pāṇini generates them from a list of about two thousand roots (the Dhātupāṭha) and affix rules arranged from general to specific, where a more specific rule automatically overrides a general one wherever both could apply. Kiparsky brought a narrower version of this principle into generative grammar in the early 1970s as the Elsewhere Condition.
- Kāraka theory. Pāṇini analyses verbs not in terms of "subject" and "object" but in terms of kārakas — semantic roles like agent (kartṛ), patient (karman), instrument (karaṇa), recipient (sampradāna), source (apādāna), and locus (adhikaraṇa). Though more than two millennia older, these closely parallel the semantic roles of thematic role theory and Charles Fillmore's "case grammar" (1968); Nicholas Ostler's 1979 dissertation drew the connection explicitly.
Pāṇini's influence can be traced directly in later scholarship. Leonard Bloomfield (1887–1949), one of the founders of American structural linguistics, studied Pāṇini closely (his 1927 paper "On Some Rules of Pāṇini" is one result), and his grammar of Menomini, an Algonquian language, is built on Pāṇini's model, with layers of rules that apply in sequence. The Dutch Indologist Frits Staal argued in "Euclid and Pāṇini" (1965) that Pāṇini's grammar is a formal system of the same order as Euclid's geometry; two years later the computer scientist Peter Zilahy Ingerman, in a letter to Communications of the ACM, proposed renaming Backus normal form the "Pāṇini-Backus form" in Pāṇini's honour. In 1985 Rick Briggs, of the Research Institute for Advanced Computer Science at NASA Ames, argued in AI Magazine that the way later Sanskrit grammarians analysed sentence meaning closely parallels the semantic networks used in artificial intelligence. (The popular claim that "NASA declared Sanskrit the best language for computers" is a distortion of this paper.) In the preface to his 1965 Aspects of the Theory of Syntax, Noam Chomsky wrote that "even Pāṇini's grammar can be interpreted as a fragment of such a 'generative grammar,' in essentially the contemporary sense of this term."
"This grammar … is one of the greatest monuments of human intelligence. It describes, with the minutest detail, every inflection, derivation, and composition, and every syntactic usage of its author's speech. No other language, to this day, has been so perfectly described." — Leonard Bloomfield, Language (1933)
Pāṇini was describing a living language: the standard spoken Sanskrit of his time, a stage between Vedic and Classical Sanskrit. (The name itself, saṃskṛta-, means "polished, refined".) Afterwards the relationship reversed. With the commentaries of Kātyāyana and Patañjali, his rules became the yardstick of correct Sanskrit, and, as Bloomfield suggested, this codification may be part of why Sanskrit lived on as the learned language of India long after it stopped being anyone's mother tongue. A grammar written to describe a language ended up keeping it alive.
| No. | Devanagari | Transliteration |
|---|---|---|
| 1 | अ इ उ ण् | a i u ṇ |
| 2 | ऋ ऌ क् | ṛ ḷ k |
| 3 | ए ओ ङ् | e o ṅ |
| 4 | ऐ औ च् | ai au c |
| 5 | ह य व र ट् | ha ya va ra ṭ |
| 6 | ल ण् | la ṇ |
| 7 | ञ म ङ ण न म् | ña ma ṅa ṇa na m |
| 8 | झ भ ञ् | jha bha ñ |
| 9 | घ ढ ध ष् | gha ḍha dha ṣ |
| 10 | ज ब ग ड द श् | ja ba ga ḍa da ś |
| 11 | ख फ छ ठ थ च ट त व् | kha pha cha ṭha tha ca ṭa ta v |
| 12 | क प य् | ka pa y |
| 13 | श ष स र् | śa ṣa sa r |
| 14 | ह ल् | ha l |