Sanskrit and scripts
Sanskrit grammar basics: sandhi, nouns, verbs and Panini
Sanskrit grammar rests on three ideas: sandhi, the regular sound changes where words and parts of words meet; declension, in which nouns take endings for eight cases and three numbers; and conjugation, in which verbs mark person, number, tense and mood. Panini's Ashtadhyayi, about 4,000 rules from around the 5th or 4th century BCE, describes the whole system.

Talaash Heritage runs a lecture on India's linguistic heritage, including Panini's place in it, and introductory Prakrit and Pali courses for groups, online or in person.
On this page
Panini and the Ashtadhyayi
Pāṇini, traditionally said to come from Shalatura near the Indus in the north-west of the subcontinent, composed the Aṣṭādhyāyī ('eight chapters') around the 5th or 4th century BCE. It contains close to 4,000 sūtras, very short rules, arranged in eight chapters of four sections each. It is preceded by the fourteen Śiva Sūtras, a list of sounds arranged so that Panini could name whole groups of them with short labels, and supported by lists of verb roots (Dhātupāṭha) and word groups (Gaṇapāṭha).
The rules are extremely compressed. Rule 6.1.87, ād guṇaḥ, says in three syllables that a or ā followed by a vowel of the i or u type combines into the 'guṇa' vowel e or o. Later scholars explained and extended the system: Kātyāyana added supplementary notes (vārttikas), and Patañjali's Mahābhāṣya, usually placed in the 2nd century BCE, is a great commentary on both.
Modern linguists still study the Ashtadhyayi as one of the earliest generative grammars: a finite set of rules that produces every correct form of a language. That is why Panini's influence reaches well beyond India, a point the linguistic heritage lecture explores.
What is sandhi in Sanskrit?
Sandhi ('joining') is the set of regular sound changes that happen when sounds meet, either inside a word or between words. Spoken languages do this naturally (English 'don't you' often sounds like 'donchu'), but Sanskrit writes the changes down. That is why a printed line can look like one long word: neighbouring words fuse.
There are three main kinds: vowel sandhi, consonant sandhi and visarga sandhi. Beginners should learn the vowel rules first, because they appear in almost every sentence.
| Meeting sounds | Result | Example |
|---|---|---|
| a or ā + a or ā | ā | na + asti = nāsti (is not) |
| a or ā + i or ī | e | deva + indra = devendra |
| a or ā + u or ū | o | sūrya + udaya = sūryodaya (sunrise) |
| a or ā + e or ai | ai | sadā + eva = sadaiva (always) |
| i + unlike vowel | y + vowel | iti + api = ity api |
| u + unlike vowel | v + vowel | su + āgatam = svāgatam (welcome) |
| aḥ + voiced consonant | o | rāmaḥ + gacchati = rāmo gacchati |
Noun declension: eight cases, three numbers
A Sanskrit noun changes its ending to show its job in the sentence. There are eight cases (vibhakti), three numbers (singular, dual for exactly two, and plural) and three genders. Because the ending carries the meaning, word order is free: rāmaḥ phalaṃ khādati and phalaṃ rāmaḥ khādati both mean 'Rama eats the fruit'.
The table shows deva ('god'), a masculine noun ending in -a, the most common pattern. Other stem types (-ā, -i, -u, consonant stems) follow related but different patterns.
| Case | Role | Singular | Dual | Plural |
|---|---|---|---|---|
| Nominative | subject | devaḥ | devau | devāḥ |
| Accusative | object | devam | devau | devān |
| Instrumental | by, with | devena | devābhyām | devaiḥ |
| Dative | to, for | devāya | devābhyām | devebhyaḥ |
| Ablative | from | devāt | devābhyām | devebhyaḥ |
| Genitive | of | devasya | devayoḥ | devānām |
| Locative | in, on | deve | devayoḥ | deveṣu |
| Vocative | O! | deva | devau | devāḥ |
Verb conjugation: persons, tenses and moods
Sanskrit verbs are built from roots (dhātu), such as bhū 'be, become', gam 'go' and kṛ 'do, make'. Each root belongs to one of ten classes that shape its present stem. Verbs mark three persons and three numbers, and use two sets of endings: parasmaipada (often called active) and ātmanepada (often called middle, originally 'for oneself').
Note that Sanskrit grammar counts persons the other way round from English: the 'first person' (prathama puruṣa) is 'he, she, it, they'. The forms below are the present tense of bhū.
- Tenses and moods include present, imperfect, perfect, aorist, future, imperative and optative.
- Participles and the absolutive (gatvā, 'having gone') do much of the work that clauses do in English.
- Prefixes change meaning: gacchati 'goes', āgacchati 'comes'.
| Person | Singular | Dual | Plural |
|---|---|---|---|
| Third (he, she, they) | bhavati | bhavataḥ | bhavanti |
| Second (you) | bhavasi | bhavathaḥ | bhavatha |
| First (I, we) | bhavāmi | bhavāvaḥ | bhavāmaḥ |
Compounds (samasa)
Sanskrit joins words into compounds very freely, sometimes many words long. Only the last member takes case endings. The main types are tatpuruṣa, where one word qualifies another (rājapuruṣa, 'king's man'), dvandva, a list of equals (rāmalakṣmaṇau, 'Rama and Lakshmana'), bahuvrīhi, which describes something else (mahābāhu, 'one whose arms are great'), and avyayībhāva, adverbial compounds (yathāśakti, 'as far as one is able'). Reading long compounds in inscriptions and court poetry is a skill of its own.
How to study Sanskrit grammar
Most learners do not start with the Ashtadhyayi. They use a modern textbook that teaches the same grammar in a graded order, and return to Panini later. Learn the script first using our Sanskrit alphabet tables, then follow the stages in learn Sanskrit for beginners.
The Prakrits and Pali are simplified, regionally varied relatives of Sanskrit: fewer cases in practice, consonant clusters smoothed out. Studying one of them after some Sanskrit is a quick way to see how the grammar loosened in everyday speech. Talaash Heritage runs short introductory courses in Prakrit and Pali that do exactly this.
How we run this
- Colleges: a lecture on Panini and India's linguistic heritage for language and history departments.
- Adult learners: introductory Prakrit or Pali courses online in small groups.
- Schools: a lecture on how Indian languages and scripts developed.
Everything is arranged on request: dates, length, level and language are agreed with you, and no payment is taken until you approve the plan. Write to us or use the programme finder.