Fix han+kvip and vocative mat/hat#225
Conversation
…dings
Add `nyap` field to `PratipadikaArgs` struct to support feminine stems
with nyāp pratyayas (ṭāp, ṅīp, etc.) in the WebAssembly API.
Add `deriveTaddhitantas` method to support taddhita derivation, allowing
proper derivation of stems like damana + matup → damanavat.
Example usage:
```javascript
// Feminine stems with nyap
vidyut.deriveSubantas({
pratipadika: { nyap: 'nadI' },
linga: 'Stri',
vibhakti: 'Prathama',
vacana: 'Eka',
})
// Returns: ['nadI']
// Taddhita derivation
vidyut.deriveTaddhitantas({
pratipadika: { basic: 'damana' },
taddhita: 'matup',
})
// Returns: ['damanavat']
```
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Extends the PratipadikaArgs struct to support taddhitanta type, allowing proper declension of taddhita-derived stems (like -vat/-mat stems from matup). This enables stems like "amavat" (from ama + matup) to decline correctly to "amavAn" for Nom.M.S, following proper Sanskrit grammar rules. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
thanks for the PR, will take a look this weekend |
|
@yajnadevam : Are you able to run |
Yes. I am able to run the test. Updated the PR. Kept the han exception in the 6.4.15 block. |
|
The test case uses |
I essentially followed Ashtadhyayi.com: Im not certain of the nuances of 7.1.78. ashtadhyayi.com seems to prohibit नुम् for reduplicated main stems but not intensives. see √हु. It is possibly because the आतिदेशिकधातुः = जोहूय is no longer just a reduplicated stem. It is a different root already: 3.1.32 सनाद्यन्ता धातवः 1.1.62 प्रत्ययलोपे प्रत्ययलक्षणम् (“even when an affix is elided, operations conditioned by it still take effect”). |
Good observation. IMO the primary effect is Reference: See 14th pdf page (page with number 12) example from this PDF from 1929. It declines
@neeleshb : Please help clarify the above. |
|
नाभ्यस्ताच्छतुः is indeed applicable and बोभुवत् is the correct प्रथमा-एकवचनम्, the forms would be like ददत्. I will fix the website soon. |
|
Thanks for the clarification @neeleshb and thanks for catching this @tbdasap I have updated the code to incorporate 7.1.78 num blocking for reduplicated stems for sarvanāmasthāna. @tbdasap here is pointing to the vocative, which should still be num agama Can you clarify if vocative also should be blocked even though its not sarvanāmasthāna ? You have it for Voc. dadat https://ashtadhyayi.com/dhatu/03.0010?tab=krut&scroll=dhatuform-1030010-krut-शतृ&scrollcolor=cyan&scrolloffset=400
|
|
Updated here #226 Now, both nom and voc check for yaN or yaNluk and block num-agama |
Summary
han.-mat -> -man(e.g., mAmat -> mAman).-hat -> -han(e.g., mAmahat -> mAmahan).Tests
cargo test -p vidyut-prakriya kvip_han_stemcargo test -p vidyut-prakriya satf_yanluk_mat_voccargo test -p vidyut-prakriya satf_yanluk_hat_vocFixes #224