Kosha (Sanskrit Lexicon)
Provide vocabulary assistance based on traditional Sanskrit lexicography, especially the Amarakosha.
Workflow
When explaining a word:
1. Basic Entry
Word: सूर्यः
Gender: पुंल्लिङ्ग (masculine)
Meaning: The sun
Category: ज्योतिष/खगोल (Astronomy)
2. Paryaya (Synonyms)
List synonyms from Amarakosha tradition:
सूर्यः = आदित्यः, दिवाकरः, भास्करः, रविः,
भानुः, अर्कः, मार्तण्डः, सविता,
पूषा, मिहिरः, तपनः, प्रभाकरः
3. Nirukta (Etymology)
Explain derivation:
सूर्य = सृ (to move) + क्यप् → "one who moves (across the sky)"
दिवाकर = दिवा + कर → "day-maker"
भास्कर = भास् + कर → "light-maker"
4. Usage Context
Note any special usages, compounds, or literary significance.
Coverage & Online Fallback Policy
The local markdown references are curated and intentionally finite. If a requested word is missing, use this fallback chain:
- Local first (required): check
references/paryaya.md and references/amarakosha.md.
- Normalize before declaring miss: handle common script/transliteration variants (Devanagari/IAST/HK).
- Trusted web lookup (fallback): consult authoritative lexical sources (e.g., Cologne/Monier-Williams, Apte, Ambuda, DSAL-backed dictionaries).
- Return with provenance: each synonym set must include source label + link.
- Confidence note: mark output as:
exact_headword_match
lemma_or_inferred_match
not_found_in_curated_amarakosha
Source Quality Rules
- Prefer primary lexicons/dictionaries first for lexical evidence: Cologne (MW), Apte, DSAL, and Ambuda lexicons.
- Treat secondary portals (e.g., general aggregators, blog-style explainers) as supplementary only.
- Avoid unverified blogs/forum posts as primary evidence.
- If sources disagree, show the overlap first, then source-specific variants.
- If no reliable source is found, say so explicitly instead of guessing.
Quick Lookup Format
For simple queries, provide concise entries:
| Word |
Gender |
Meaning |
Key Synonyms |
| अग्निः |
पुं. |
fire |
वह्निः, पावकः, हुताशनः |
| जलम् |
न. |
water |
वारि, नीरम्, अम्बु, उदकम् |
| वायुः |
पुं. |
wind |
पवनः, मारुतः, अनिलः |
References
Detailed vocabulary by category:
- references/amarakosha.md - Organized by Amarakosha structure
- references/paryaya.md - Comprehensive synonym lists
- references/nirukta.md - Common etymologies
- references/linganushasana.md - Gender rules
Amarakosha Structure
The Amarakosha (अमरकोशः) by Amarasimha has three kandas:
1. स्वर्गादिकाण्ड (Heavenly)
- देवता (Gods), दिक् (Directions), काल (Time)
2. भूम्यादिकाण्ड (Earthly)
- भूमि (Earth), नगर (City), वनस्पति (Plants), मृग (Animals), मनुष्य (Humans)
3. सामान्यादिकाण्ड (General)
- विशेष्य-विशेषण (Noun-Adjective), नानार्थ (Polysemous), अव्यय (Indeclinables)
Gender Quick Rules
Generally Masculine (पुंल्लिङ्ग)
- Mountains, oceans, days of week, trees (as individuals), agent nouns
Generally Feminine (स्त्रीलिङ्ग)
- Rivers, abstract nouns in -ति/-ता, creepers, earth
Generally Neuter (नपुंसकलिङ्ग)
- Fruits, metals, many body parts, abstract concepts (सुखम्, दुःखम्)
Example Entry
Query: Synonyms for "moon"
चन्द्रः (Moon) — पुंल्लिङ्ग
| Sanskrit |
Etymology |
Meaning |
| चन्द्रः |
√चन्द् + रक् |
the shining one |
| इन्दुः |
√उन्द् |
the moist one |
| कुमुदबान्धवः |
कुमुद + बान्धव |
friend of water-lilies |
| विधुः |
√व्यध् |
the piercer (of darkness) |
| सुधांशुः |
सुधा + अंशु |
having nectar-rays |
| निशाकरः |
निशा + कर |
night-maker |
| शशाङ्कः |
शश + अङ्क |
hare-marked |
| मृगाङ्कः |
मृग + अङ्क |
deer-marked |
| सोमः |
√सु |
the Soma |
Scripts
Utilities in shared/scripts/:
cd shared/scripts && uv sync
| Script |
Use |
transliterate.py |
Convert between Devanagari/IAST/HK |
dhatu.py |
Look up verbal roots (for etymology) |
Related Skills
| Need |
Use |
| Grammar analysis |
vyakarana |
| Verse analysis |
sloka |
| Literary context |
sahitya |
1---2name: kosha3description: Sanskrit vocabulary and lexicon skill covering word meanings, synonyms (paryaya), etymology (nirukta), gender, and technical terminology. Based on Amarakosha and traditional lexicography. Use when looking up Sanskrit word meanings, finding synonyms, explaining word derivations, identifying gender of nouns, or exploring vocabulary by category (gods, nature, body parts, etc.).4---56# Kosha (Sanskrit Lexicon)78Provide vocabulary assistance based on traditional Sanskrit lexicography, especially the Amarakosha.910## Workflow1112When explaining a word:1314### 1. Basic Entry15```16Word: सूर्यः17Gender: पुंल्लिङ्ग (masculine)18Meaning: The sun19Category: ज्योतिष/खगोल (Astronomy)20```2122### 2. Paryaya (Synonyms)23List synonyms from Amarakosha tradition:24```25सूर्यः = आदित्यः, दिवाकरः, भास्करः, रविः,26 भानुः, अर्कः, मार्तण्डः, सविता,27 पूषा, मिहिरः, तपनः, प्रभाकरः28```2930### 3. Nirukta (Etymology)31Explain derivation:32```33सूर्य = सृ (to move) + क्यप् → "one who moves (across the sky)"34दिवाकर = दिवा + कर → "day-maker"35भास्कर = भास् + कर → "light-maker"36```3738### 4. Usage Context39Note any special usages, compounds, or literary significance.4041## Coverage & Online Fallback Policy4243The local markdown references are curated and intentionally finite. If a requested word is missing, use this fallback chain:44451. **Local first (required):** check `references/paryaya.md` and `references/amarakosha.md`.462. **Normalize before declaring miss:** handle common script/transliteration variants (Devanagari/IAST/HK).473. **Trusted web lookup (fallback):** consult authoritative lexical sources (e.g., Cologne/Monier-Williams, Apte, Ambuda, DSAL-backed dictionaries).484. **Return with provenance:** each synonym set must include source label + link.495. **Confidence note:** mark output as:50 - `exact_headword_match`51 - `lemma_or_inferred_match`52 - `not_found_in_curated_amarakosha`5354### Source Quality Rules5556- Prefer primary lexicons/dictionaries first for lexical evidence: Cologne (MW), Apte, DSAL, and Ambuda lexicons.57- Treat secondary portals (e.g., general aggregators, blog-style explainers) as supplementary only.58- Avoid unverified blogs/forum posts as primary evidence.59- If sources disagree, show the overlap first, then source-specific variants.60- If no reliable source is found, say so explicitly instead of guessing.6162## Quick Lookup Format6364For simple queries, provide concise entries:6566| Word | Gender | Meaning | Key Synonyms |67|------|--------|---------|--------------|68| अग्निः | पुं. | fire | वह्निः, पावकः, हुताशनः |69| जलम् | न. | water | वारि, नीरम्, अम्बु, उदकम् |70| वायुः | पुं. | wind | पवनः, मारुतः, अनिलः |7172## References7374Detailed vocabulary by category:75- [references/amarakosha.md](references/amarakosha.md) - Organized by Amarakosha structure76- [references/paryaya.md](references/paryaya.md) - Comprehensive synonym lists77- [references/nirukta.md](references/nirukta.md) - Common etymologies78- [references/linganushasana.md](references/linganushasana.md) - Gender rules7980## Amarakosha Structure8182The Amarakosha (अमरकोशः) by Amarasimha has three kandas:8384### 1. स्वर्गादिकाण्ड (Heavenly)85- देवता (Gods), दिक् (Directions), काल (Time)8687### 2. भूम्यादिकाण्ड (Earthly)88- भूमि (Earth), नगर (City), वनस्पति (Plants), मृग (Animals), मनुष्य (Humans)8990### 3. सामान्यादिकाण्ड (General)91- विशेष्य-विशेषण (Noun-Adjective), नानार्थ (Polysemous), अव्यय (Indeclinables)9293## Gender Quick Rules9495### Generally Masculine (पुंल्लिङ्ग)96- Mountains, oceans, days of week, trees (as individuals), agent nouns9798### Generally Feminine (स्त्रीलिङ्ग)99- Rivers, abstract nouns in -ति/-ता, creepers, earth100101### Generally Neuter (नपुंसकलिङ्ग)102- Fruits, metals, many body parts, abstract concepts (सुखम्, दुःखम्)103104## Example Entry105106**Query**: Synonyms for "moon"107108### चन्द्रः (Moon) — पुंल्लिङ्ग109110| Sanskrit | Etymology | Meaning |111|----------|-----------|---------|112| चन्द्रः | √चन्द् + रक् | the shining one |113| इन्दुः | √उन्द् | the moist one |114| कुमुदबान्धवः | कुमुद + बान्धव | friend of water-lilies |115| विधुः | √व्यध् | the piercer (of darkness) |116| सुधांशुः | सुधा + अंशु | having nectar-rays |117| निशाकरः | निशा + कर | night-maker |118| शशाङ्कः | शश + अङ्क | hare-marked |119| मृगाङ्कः | मृग + अङ्क | deer-marked |120| सोमः | √सु | the Soma |121122## Scripts123124Utilities in `shared/scripts/`:125126```bash127cd shared/scripts && uv sync128```129130| Script | Use |131|--------|-----|132| `transliterate.py` | Convert between Devanagari/IAST/HK |133| `dhatu.py` | Look up verbal roots (for etymology) |134135## Related Skills136137| Need | Use |138|------|-----|139| Grammar analysis | **vyakarana** |140| Verse analysis | **sloka** |141| Literary context | **sahitya** |