📷 GEMINI MULTIMODAL OCR & PANINIAN GRAMMATICAL ENGINE

Sanskrit Shloka OCR & Grammatical Decoder

Capture textbook photos or paste Sanskrit verses. Automatically decodes Sandhi-Vigraha, Padachheda, Anvaya, and Samhita citations with AIAPGET exam analysis.

✨ High-Yield Classical Presets (1-Click Test):
📸 Click to Take Photo or Browse Supports PNG, JPG, WebP textbook photos
📜 Ashtanga Hridaya • Sutrasthana, Adhyaya 1, Shloka 1 (Mangalacharana)

Grammatical & Morphological Analysis

रागादिरोगान् सततानुषक्तानशेषकायप्रसृतानशेषान्। औत्सुक्यमोहारतिदान् जघान योऽपूर्ववैद्याय नमोऽस्तु तस्मै॥
rāgādirogān satatānuṣaktānaśeṣakāyaprasṛtānaśeṣān | autsukyamohāratidān jaghāna yo'pūrvavaidyāya namo'stu tasmai ||
Context: Acharya Vagbhata's reverential opening benediction (Mangalacharana) to the Supreme Healer (Apurva Vaidya / Lord Dhanvantari / Buddha).

🔍 Sandhi-Vigraha (संधि विच्छेद)

सततानुषक्तानशेषकायप्रसृतानशेषान् → सतत + अनुषक्तान् + अशेष + काय + प्रसृतान् + अशेषान्
Rule: Savarna Deergha Sandhi (अ+अ=आ) across multiple junctions
योऽपूर्ववैद्याय → यः + अपूर्ववैद्याय
Rule: Visarga Sandhi with Avagraha (विसर्गस्य उत्वं & पूर्व shape S/ऽ)
नमोऽस्तु → नमः + अस्तु
Rule: Utva Visarga Sandhi with Avagraha (नमः + अस्तु = नमोऽस्तु)

📜 Anvaya (अन्वय - Prose Order)

यः सततानुषक्तान् अशेषकायप्रसृतान् औत्सुक्यमोहारतिदान् अशेषान् रागादिरोगान् जघान, तस्मै अपूर्ववैद्याय नमः अस्तु।

Vyakarana (Morphology & Syntax):

जघान is from root हन् (to destroy/slay) in लिट् लकार (Unseen Past Perfect), प्रथम पुरुष, एकवचन. नमः governs चतुर्थी विभक्ति; hence तस्मै and अपूर्ववैद्याय are in चतुर्थी एकवचन (उपपदविभक्तेः कारिका बलवती).

🌳 Padachheda (पदच्छेद एवं शब्द रूप)

Sanskrit Word (पदम्) Grammatical Morphology (रूपम्) English Semantic Meaning
रागादिरोगान् Dvitiya Bahuvachana diseases such as attachment, greed, and passion
सतत-अनुषक्तान् Dvitiya Bahuvachana Compound constantly clinging from birth to birth
अशेष-काय-प्रसृतान् Dvitiya Bahuvachana spread throughout the entire body
अशेषान् Dvitiya Bahuvachana without exception / completely
औत्सुक्य-मोह-अरति-दान् Compound Noun giving rise to anxiety, delusion, and restlessness
जघान Lit Lakar (Past Perfect) who destroyed / eradicated
यः Prathama Ekavachana (Yat) who / which supreme healer
अपूर्व-वैद्याय Chaturthi Ekavachana unto the peerless / unprecedented physician
नमः Avyaya (Salutation) salutations / reverence
अस्तु Lot Lakar (Imperative) may there be
तस्मै Chaturthi Ekavachana (Tat) unto Him

🇮🇳 सरल हिंदी भावार्थ

जिन्होंने जीवों के साथ सदा लगे रहने वाले, सम्पूर्ण शरीर में व्याप्त रहने वाले, उत्सुकता (उत्कंठा), मोह और अरति (अशान्ति/बेचैनी) को उत्पन्न करने वाले राग, द्वेष आदि समस्त रोगों को पूर्णतः नष्ट कर दिया, उस अनुपम एवं अद्वितीय वैद्य (भगवान) को सादर नमस्कार हो।

🇬🇧 Scholarly English Translation

Salutations unto that peerless and unprecedented Physician who completely eradicated all physical and psychological afflictions such as desire and attachment—which constantly cling to all living beings, pervade the entire organism, and produce anxiety, delusion, and restlessness.

🎯

AIAPGET & State PSC MO Exam Pearls

Key AIAPGET Question: 'जघान' belongs to which Lakar? (Lit Lakar). Why is 'अपूर्ववैद्याय' in Chaturthi? (Governed by 'नमः' according to Panini rule 'नमःस्वस्तिस्वाहास्वधाऽलंवषड्योगाच्च' 2.3.16). Note: Arunadatta interprets 'Apurva Vaidya' as Lord Dhanvantari or Sugata (Buddha).