Vyākaraṇa

The science of grammar: how Pāṇini described a whole language in about four thousand rules, how a single word is built from them step by step, and why some Indian thinkers treated grammar as a road to liberation.

Every Sanskrit student meets the word bhavati, “he is, she becomes,” in the first week. Few realise that behind those four syllables stands a machine: a root, three affixes, a handful of markers that vanish once they have done their work, and seven rules applied in order. Vyākaraṇa, literally “taking apart,” is the discipline that built that machine. The tradition called it the “mouth” of the Veda (see Navigating the Śāstras) and the foundation of every other śāstra. This page goes inside it.

Pāṇini and his grammar

Pāṇini lived in the far north-west of the subcontinent; tradition names his home as Śalātura, near the Indus in today’s Pakistan. Historians usually place him around the 4th century BCE, though estimates range a century or two either way. His Aṣṭādhyāyī, “Eight Chapters,” has eight books (adhyāya) of four quarters (pāda) each, about 3,980 sūtras in all — the count differs slightly between recensions. It describes both the spoken Sanskrit of Pāṇini’s day (bhāṣā) and, in special rules, the older language of the Veda (chandas). Tradition Later legend says Pāṇini received the opening sound-list from Śiva’s drum after long austerity; the grammar itself tells no such story.

The sūtras do not work alone. Pāṇini relied on companion lists that every student memorised alongside them:

धातुDhātupāṭhaThe list of roots

About two thousand verbal roots (dhātus), arranged in ten classes according to how they form the present stem. Each entry gives the root with its markers and a short gloss. The very first is bhū sattāyām: “bhū, in the sense of being.”

गणGaṇapāṭhaLists of words

Groups of nouns and other words that share a peculiarity. A rule names only the first word plus ādi, “and the rest,” and the list supplies the members — the way a program calls a table.

अइउण्Māheśvara SūtrasThe sound catalogue

Fourteen lines that list the sounds of Sanskrit in a deliberate order, each line closed by a consonant marker. The first four are quoted on Reading Sanskrit. Their purpose becomes clear below, in the abbreviations called pratyāhāras.

उणादिUṇādi-sūtrasUnusual derivations

Rules for nouns whose formation is irregular. Their authorship is debated: some attribute them to Śākaṭāyana, an earlier grammarian Pāṇini himself cites, others to later hands.

Pāṇini was not the first. He names about ten predecessors, including Āpiśali, Śākaṭāyana and Gārgya, and Yāska’s Nirukta records an old debate on whether all nouns come from verbs. But their grammars are lost, and his eclipsed them.

Six kinds of rule

The commentators sorted sūtras into six types by what they do. Commentarial scheme Tap each for a real example:

How to fit a language into a sūtra

Pāṇini’s goal was brevity, and he achieved it with a handful of devices that modern readers compare to programming.

Root and affix. Every word is analysed into a base — a root or a noun stem — and pratyayas, affixes that always follow it (3.1.2 paraś ca). A finished word, says 1.4.14, is anything ending in a nominal or verbal ending.

Carry-over. Through anuvṛtti, a word stated in one rule continues to apply in the following rules until it is no longer needed. Rule 6.1.77 says “before a vowel” (aci); the next rule, 6.1.78, does not repeat it, yet the student knows it is there. The headings in the marks above are carry-over on a grand scale.

Markers. Many elements carry extra sounds that are not part of the word at all. These it-markers are identified by rule — a nasalised vowel (1.3.2), a final consonant (1.3.3) — and then deleted (1.3.9 tasya lopaḥ). Before they vanish they act as switches: the ś of an affix, for example, puts it into a class that triggers certain changes in the root.

Abbreviations. A pratyāhāra names a whole run of sounds in the Māheśvara Sūtras by its first sound plus the marker that closes the run (1.1.71 ādir antyena sahetā). So ac is every vowel, hal every consonant, ik is i, u, ṛ, ḷ, and yaṇ is y, v, r, l. Now read one of the most famous rules in the grammar — three words, a whole sound law:

इको यणचि ॥ iko yaṇ aci In place of i, u, ṛ or ḷ, there comes y, v, r or l respectively, before a vowel. Pāṇini, Aṣṭādhyāyī 6.1.77

Two further devices keep the machine from jamming. When two rules compete, the later one wins (1.4.2 vipratiṣedhe paraṃ kāryam), and the commentators added many refinements. And from 8.2.1 onwards, the last three quarters of the book are treated as “not yet having happened” from the point of view of everything earlier — an ordering trick that lets Pāṇini state sound changes once and in the right sequence. The grammar ends, aptly, with a two-letter rule: 8.4.68 a a, which restores the short a that had been treated as open throughout.

Build a word: bhavati

Here is the derivation (prakriyā) of bhavati, “becomes, is,” as a traditional student learns it. Tap each step:

The same steps, with different choices at step 4, give bhavataḥ (“the two are”), bhavanti (“they are”) and the rest of the paradigm. That is the point of the system: not a list of forms, but a procedure that produces them. Patañjali tells of the god Bṛhaspati teaching Indra word by word for a thousand divine years and never reaching the end; only general rules can capture an infinite language.

The three sages

Pāṇini’s work was argued over almost at once. Kātyāyana (perhaps 3rd century BCE) wrote vārttikas, critical notes that test the sūtras, point out gaps and propose amendments. Patañjali wrote the Mahābhāṣya, “Great Commentary,” a lively question-and-answer discussion of both. Historians date him to around 150 BCE, partly because he illustrates a grammatical point with “the Greek was besieging Sāketa,” apparently a recent event. Pāṇini, Kātyāyana and Patañjali became the munitraya, “three sages,” and a later rule of interpretation gave the latest of them the greatest weight.

The Mahābhāṣya opens by asking why anyone should study grammar at all, and gives five answers:

रक्षोहागमलघ्वसंदेहाः प्रयोजनम् । rakṣohāgama-laghv-asandehāḥ prayojanam The purposes are: preserving the Veda, adapting its formulas correctly, obeying scripture’s command, economy, and freedom from doubt. Patañjali, Mahābhāṣya, opening section (Paspaśā)

“Economy” is the practical one: grammar is the shortest route to knowing correct speech. Patañjali also distinguished the sound we hear (dhvani) from the word it conveys — a seed for the next great idea.

Bhartṛhari: the word as Brahman

Bhartṛhari (c. 5th century CE) turned grammar into philosophy. His Vākyapadīya, “On Sentence and Word,” in three books, begins by identifying the ultimate reality with the Word (its first verse is on Navigating the Śāstras). Its central idea is the sphoṭa, from sphuṭ, “to burst forth”: the meaning-bearing word or sentence, a single whole that flashes forth in the mind and is revealed by the sequence of sounds without being made of them. You hear ga, au, ḥ one after another, yet you grasp gauḥ, “cow,” all at once. For Bhartṛhari the true unit is the whole sentence, and understanding is a kind of intuitive flash (pratibhā).

He went further: there is no thought without language.

न सोऽस्ति प्रत्ययो लोके यः शब्दानुगमादृते ।
अनुविद्धमिव ज्ञानं सर्वं शब्देन भासते ॥
na so ’sti pratyayo loke yaḥ śabdānugamād ṛte |
anuviddham iva jñānaṃ sarvaṃ śabdena bhāsate ||
There is no cognition in the world that is not accompanied by word. All knowledge shines as if shot through with word. Bhartṛhari, Vākyapadīya, Book 1 (Brahmakāṇḍa)
How other schools read this
  • Mīmāṃsā (Kumārila) and Nyāya: there is no need for a sphoṭa. A word is simply its phonemes: the last sound, together with the memory traces of the earlier ones, conveys the meaning. Mīmāṃsā held the phonemes eternal; Nyāya held them produced and perishing.
  • Advaita was split. Shankara, commenting on Brahmasūtra 1.3.28, followed the older teacher Upavarṣa: “the phonemes alone are the word.” But Maṇḍana Miśra, also an Advaitin, wrote the Sphoṭasiddhi to defend it.
  • Buddhist logicians (Dignāga, Dharmakīrti) explained meaning by exclusion (apoha): “cow” means “not non-cow.” See Buddhist Philosophy.
  • Kashmir Śaivism: Utpaladeva and Abhinavagupta built on Bhartṛhari’s levels of speech, adding a supreme level (parā) above his three. See Kashmir Shaivism.

Grammar as a path to liberation

Grammarians’ view If reality is śabdabrahman, Brahman as Word, then purifying speech purifies the mind, and knowing the Word truly is knowing Brahman. Bhartṛhari says so plainly:

तद्द्वारमपवर्गस्य वाङ्मलानां चिकित्सितम् ।
पवित्रं सर्वविद्यानामधिविद्यं प्रकाशते ॥
tad dvāram apavargasya vāṅ-malānāṃ cikitsitam |
pavitraṃ sarva-vidyānām adhividyaṃ prakāśate ||
It [grammar] is the door to liberation, the cure for the impurities of speech, the purifier of all the sciences; it shines in each of them. Bhartṛhari, Vākyapadīya, Book 1 (Brahmakāṇḍa)

The 18th-century grammarian Nāgeśa Bhaṭṭa of Varanasi wrote in the same spirit, and the idea flows into the Śākta and Tantric theology of sacred sound (see Mantra & Japa). It also met a famous rebuke. Legend Shankara, the story goes, saw an old man in Varanasi memorising grammar and sang:

भज गोविन्दं भज गोविन्दं गोविन्दं भज मूढमते ।
सम्प्राप्ते सन्निहिते काले नहि नहि रक्षति डुकृञ् करणे ॥
bhaja govindaṃ bhaja govindaṃ govindaṃ bhaja mūḍhamate |
samprāpte sannihite kāle nahi nahi rakṣati ḍukṛñ karaṇe ||
Worship Govinda, worship Govinda, worship Govinda, you fool! When the appointed hour arrives, “ḍukṛñ karaṇe” will not save you. Bhaja Govindam (Mohamudgara), refrain; traditionally attributed to Śaṅkara

The joke is technical: ḍukṛñ karaṇe is a Dhātupāṭha entry, the root kṛ, “to do,” wrapped in its it-markers ḍu and ñ. The verse does not reject grammar — Shankara’s own prose is impeccable — but grammar mistaken for the goal.

After Patañjali

Pāṇini’s school (the Pāṇinīya) produced commentaries for two thousand years, while others wrote rival grammars, often for particular communities:

  1. Early centuries CE?KātantraA short, practical grammar attributed to Śarvavarman, popular in Kashmir, Bengal and among Buddhists as far as Central Asia and Tibet. Its date is uncertain.
  2. c. 5th–6th c.Cāndra and JainendraThe Buddhist Candragomin’s grammar dropped Pāṇini’s Vedic rules; the Jain Devanandin (Pūjyapāda) wrote the Jainendra grammar. Both reorganise Pāṇini rather than starting afresh.
  3. 7th c.KāśikāJayāditya and Vāmana’s Kāśikā Vṛtti, the oldest complete running commentary on the sūtras in their own order — still the standard first reference.
  4. 12th c.HemacandraThe Jain polymath of Gujarat composed a grammar of Sanskrit and Prakrit for the Caulukya king Siddharāja.
  5. 13th–16th c.Devotional grammarsBopadeva’s Mugdhabodha spread in Bengal; Jīva Gosvāmin’s Harināmāmṛta replaced technical terms with names of Kṛṣṇa, so that learning grammar became remembering God. In Kerala, Nārāyaṇa Bhaṭṭatiri, poet of the Nārāyaṇīyam, wrote the Prakriyāsarvasva.
  6. 17th c.SiddhāntakaumudīBhaṭṭoji Dīkṣita rearranged Pāṇini’s rules by topic, following derivations rather than sūtra order. Varadarāja’s short Laghusiddhāntakaumudī made it the classroom route.
  7. 18th c.NāgeśaNāgeśa Bhaṭṭa’s works on interpretive rules and the philosophy of meaning, written in the precise idiom of Navya-Nyāya, still define advanced study.

Tamil grammar: Tolkāppiyam and Naṉṉūl

Tamil has its own grammatical tradition, ilakkaṇam, and it is not a copy of Sanskrit’s. The Tolkāppiyam, the oldest surviving Tamil work, has three books: on letters and sounds (Eḻuttatikāram), on words (Collatikāram) and on subject matter (Poruḷatikāram) — the last a full poetics of the inner world of love (akam), the outer world of war and fame (puṟam), and prosody. No Sanskrit grammar includes anything like it. Tamil tradition Tradition makes its author, Tolkāppiyar, a disciple of the sage Agastya in the age of the legendary Caṅkam academies. Historians date its oldest layers somewhere between the last centuries BCE and the early centuries CE, with later additions; the question is still open. Its opening rule counts the letters: thirty, from a to ṉ, plus three that occur only in dependence on others.

In the 13th century the Jain grammarian Pavaṇanti wrote the Naṉṉūl, “the good book,” on letters and words only. Clear and systematic, it became the school grammar of Tamil, and its terms are still taught to Tamil students in India, Sri Lanka and Malaysia. One of its rules has become a proverb, spoken every Bhogi when old things are burned:

பழையன கழிதலும் புதியன புகுதலும்
வழுவல கால வகையி னானே
paḻaiyaṉa kaḻitalum putiyaṉa pukutalum / vaḻuvala kāla vakaiyi ṉāṉē The passing of the old and the coming of the new are no faults; they are the way of time. Pavaṇanti, Naṉṉūl, Collatikāram

A grammarian admitting that language changes: it is one of the gentlest sentences in the śāstras. See Tamil Sacred Literature and Pongal.

Pāṇini and modern linguistics

European scholars met Pāṇini in the early 19th century; Otto Böhtlingk published an edition in 1839–40. Opinions split. The American Sanskritist W. D. Whitney found the system artificial; Leonard Bloomfield, a founder of American linguistics, called it “one of the greatest monuments of human intelligence” (Language, 1933) and modelled his own analysis of the Menomini language on Pāṇinian techniques. Frits Staal compared Pāṇini to Euclid as a model of formal method, and Paul Kiparsky has spent decades showing how carefully the rules are ordered.

Modern reading The comparison everyone makes is with generative grammar: a finite set of ordered rules that derives forms from abstract elements, as Noam Chomsky’s grammars do. Chomsky himself has acknowledged Pāṇini as a precursor of the generative approach; his own theory, however, grew out of a different line of work, and Pāṇini described one language rather than seeking a universal grammar. In 1967 a computer scientist even proposed renaming the notation used to define programming languages “Pāṇini–Backus form.”

A myth to retire

You may have read that NASA declared Sanskrit “the best language for computers.” It did not. A 1985 article by a NASA researcher, Rick Briggs, compared the way śāstric commentators paraphrase sentences with methods of knowledge representation in artificial intelligence. That is interesting; it is not a ruling about programming. What is true is that Pāṇini’s grammar is precise enough to be implemented, and computational Sanskrit is now a real research field. See Dharma & Modern Thought.

Pāṇini still makes news. In 2022 a Cambridge doctoral thesis by Rishi Rajpopat proposed a new reading of the rule for resolving conflicts (1.4.2); traditional grammarians and other scholars have questioned how new or how right it is. The debate is very Pāṇinian.

How it is studied today

In traditional pāṭhaśālās students still learn the sūtras by heart, then the Laghusiddhāntakaumudī, then the Siddhāntakaumudī, and finally the Mahābhāṣya with its commentaries, often over a decade. Sanskrit universities in India grant degrees in vyākaraṇa, and grammarians test one another in public śāstrārtha debates (see Vāda). For most of its history this study was closed to women and to those outside the twice-born castes; that should be said plainly. Today women grammarians teach and publish — Saroja Bhate of Pune is one well-known example — and universities worldwide teach Pāṇini alongside computational tools for analysing Sanskrit.

For the rest of us, a little grammar changes how a mantra sounds. Once you see bhavati as bhū + a + ti, you start seeing roots everywhere: bhava, “becoming,” bhāva, “feeling,” bhūmi, “the earth that is.” This guide’s suggestion Start with Reading Sanskrit, then try deriving one word a week.

Check your knowledge:

Quick check

In Pāṇini’s system, the pratyāhāra ac stands for…

From a in the first Māheśvara Sūtra to the marker c closing the fourth: every vowel.

In deriving bhavati, what does the affix śap contribute to the finished word?

Both consonants are it-markers and vanish; the ś first marks the affix as one that strengthens the root.

The sphoṭa theory is chiefly associated with…

Bhartṛhari’s Vākyapadīya (c. 5th century CE), building on hints in Patañjali.

Which part of the Tolkāppiyam has no counterpart in Sanskrit grammar?

The Poruḷatikāram treats akam, puṟam and prosody inside the grammar itself.

Questions people often ask

Did Pāṇini write his grammar down?

We don’t know. Scholars disagree about whether writing was in use in his region for such work; the grammar was certainly designed to be memorised and transmitted orally, and that is how it was learned for most of its history.

Is Patañjali the grammarian the same as the author of the Yoga Sūtra?

Tradition says yes; most historians think not. See The Sutras.

Does Pāṇini “prescribe” correct Sanskrit or “describe” it?

He described the educated speech of his time, including optional and regional forms. But because Sanskrit later became a learned language with few native speakers, his description became the standard everyone wrote to — which is why classical Sanskrit changed so little.

॥ Pause and reflect

  1. Bhartṛhari says no thought comes without words. Can you think of an experience that seemed to come before language?
  2. The Naṉṉūl calls change “no fault.” Which changes in your own language — Tamil, Malay, English — do you resist, and why?
  3. Shankara’s refrain warns against mistaking the tool for the goal. Where might you be doing that in your own practice?

Your notes are saved privately in this browser.

Key terms on this page

Sources & further reading