Welcome to Sanskrit Grammar’s documentation!
Sanskrit Grammar is a Python library for processing and analyzing Sanskrit text. It provides tools for sandhi operations, morphological analysis, and compound word generation.
Features
Sandhi (संधि) - Rules for combining characters and words
Morphological Analysis - Analyzing word structure and components
Compound Word Generation - Creating and analyzing Sanskrit compounds
Stem Generation - Generating various word forms
Installation
You can install the package using pip:
pip install sanskrit-grammar
Quick Examples
from sanskrit_grammar.sandhi import sandhi_handler
from sanskrit_grammar.upasarga_pratyaya import add_pratyaya
# Combine two words using sandhi rules
result = sandhi_handler('राम', 'इति')
print(result) # Output: रामेति
# Add a pratyaya to a root word
modified_word = add_pratyaya('गम्', 'अ')
print(modified_word) # Output: गमा