Sanskrit grammar is a machine, and the Aṣṭādhyāyī is its engine. Pāṇini's grammar — composed around the fourth century BCE — reduced the entire language to a system of about four thousand rules, and this manuscript from the Rajasthan Oriental Research Institute preserves the machine in working order.
The engine's first turn
The manuscript opens with homage to Pāṇini, then immediately starts the grammar with its most elegant device: the pratyāhāra-sūtras, a compressed table of the sounds of Sanskrit from which every rule can draw its alphabet.
By whom the entire grammar was taught, having received the science of letters from the great lord — salutations to that Pāṇini. By whom men's words were purified by the pure waters of speech, and by whom the darkness born of ignorance was dispelled — salutations to that Pāṇini. Now the instruction of words: a i u ṇ. ṛ ḷ k. e o ṅ. ai au c. ha ya va ra ṭ. Vṛddhi is ā, ai, au. Guṇa is a, e, o.
In a few lines, the whole phonological alphabet is established — the sounds, the classes, and the two great vowel-strengthening operations, guṇa and vṛddhi.
Rules that generate words
From there the grammar proceeds by rule after rule — which roots take which suffixes, when the augment is elided, which preverbs govern which verbs.
From the remainder, in the agent, parasmaipada. From anu and para, with kṛ. From abhi, prati, and ati, with kṣip. From pra, with vah. From para, with mṛṣ. From vi and āṅ, and from pari, with ram. In case of conflict, the later operation wins.
That last principle — in case of conflict, the later rule applies — is the kind of meta-rule that makes the grammar computable. It is a system that resolves its own ambiguities.
A language generated, not memorized
What made Pāṇini revolutionary was the claim that a finite set of rules could generate an infinite language — every correct Sanskrit word, and only correct ones. This manuscript is a working copy of that claim, copied and studied for centuries, the machine kept oiled by the scholars who depended on it.
śnā from kry-ādi roots; śnuḥ and śnaḥ from stambhu, stumbhu, skambhu, skumbhu, skuñbh; śānaj and śau for hal roots; śāyaj also in Vedic; vyatyayo bahulam karmavat; iṅ for liṅ and āśiṣ; karmavat karmaṇā tulyakriyaḥ; tapas-tāpaḥ only for karmaka; not yak and ciṇ for duh, snu, and mā; śyan and parasmaipada for kuṣi and raju in eastern usage; from the root; there the upapada is in seventh case; kṛd atiṅ; vāsarūpa except in feminine; kṛtyāḥ; tavya, tavya, anīya, ar; yat from ac; from por and adupadhāt; and śaki and saha; gada, mada, cara, yama, and ca without upasarga; 5
In the sense of the agent, after the verbs meaning 'to be wealthy,' 'to be fortunate,' 'to be stout,' 'to be grey-haired,' 'to be naked,' 'to be blind,' and 'to be dear,' when the root takes the augment 'iṭ,' and in the sense of the instrument, the affix 'khyun' is added to the root 'kṛ.' In the sense of the agent, the affixes 'ṣṇuc' and 'khuñ' are added after the root 'bhū.' The affix 'kvin' is added after the root 'spṛś' when the word 'nud' is in composition
It lists numerous suffixes including raka, phya, phak, a, ya, i, a, luk, pha, a, ut, ina, airak, dha, kha, and a, applied to various stems such as bahu, gokaksha, nada, harit, sharadvac, shunaka, darbha, bhrigu, vatsa, agrayana, drona, parvata, jivanta, bida, garga, madhu, babhru, kapibodha, vatanda, ashva, bharga, shiva, rishya, andhaka, vrishni, kuru, kanya, vikarna, shunga, chagala, bharadvaja, pila, manduka, shubhra, kushitaka, bhrau, kalyani, kulata, chataka, godha, pitrishvasri, matrishvasri, grishti, rajan, shvasura, kshatra, kula, mahakula, and duskula
The rules specify their application after specific roots like gup, tiji, kṛd, mān, badh, dān, śān, bhṛśa, lohita, romantha, tapas, bāṣpa, oṣman, śabda, vaira, kalaha, abhra, kaṇva, megha, sukha, namas, varivas, citraṅas, puccha, bhāṇḍa, cīvara, muṇḍa, miśra, ślakṣṇa, lavaṇa, vrata, vastra, hala, kala, kṛta, tūs, lup, sad, car, jap, ja, bha, dah, daś, gṛ, satya, āpa, pāśa, rūpa, vīṇā, tūla, śloka, senā, loman, tvac, varman, varṇa, cūrṇa, cur, kaṇḍvādi, dhūp, vic, chip, paṇi, pani, ṛ, and kam
After the root 'kṛ' in 'sukarman,' 'pāpamantra,' and 'puṇya.' In 'soma,' after 'suñ.' In 'agni,' after 'ci.' In the sense of the object, in the designation of 'agni.' In the sense of the object, the affix 'nivi' is added after the root 'kṛ.' The affix 'kvanip' is added after 'dṛś.' In 'rājan,' after 'yudh' and 'kṛ.' And after 'sah.' In the locative, after 'jan,' the affix 'ḍa' is added

