ambuda-org / vidyut

Infrastructure for Sanskrit software. For Python bindings, see `vidyut-py`.
48 stars 21 forks source link

Noun declension for कथा • (kathā) stem, femine - Incorrect paradigm ? Or am I missing something #112

Closed mediabuff closed 4 months ago

mediabuff commented 4 months ago

Sources verified against: http://sanskrit.segal.net.br/en/decl?n=kath%C4%81&tr=iast&gen=f https://en.wiktionary.org/wiki/%E0%A4%95%E0%A4%A5%E0%A4%BE#Noun_4

Even Nominative Singular is incorrect

Vidyut image

akprasad commented 4 months ago

vidyut-prakriya is a precise Paninian engine and its inputs need to be expressed in Paninian terms.

कथा is a ङ्याबन्त-आकारान्त-प्रातिपदिक (nominal stem ending in आ and created with the suffixes ङी or आप्) and should be constructed with Pratipadika::nyap. If you do so, you should see the correct behavior.

For an example of a non-ङ्याबन्त-आकारान्त-प्रातिपदिक, see e.g. the feminine of गोपा.

akprasad commented 4 months ago

(For examples of vidyut-prakriya generating ङ्याबन्त-आकारान्त forms correctly, see the tests in kaumudi_9.rs.

mediabuff commented 4 months ago

Thanks for your prompt response. Let me check it out. Then is the demo code in https://ambuda-org.github.io/vidyullekha/ is incorrect ? I just added कथा to the list of hard-coded list in ambuda-org.github.io/static /vidyut-prakriya.js

{ text: "kaTA", linga: Linga.Stri },

Btw, what is difference between vidyut-prakriya.js and vidyut-prakriya.-app.js - lot of duplicate code

akprasad commented 4 months ago

Then is the demo code [...] incorrect?

No, its Wasm API is just limited compared to the much richer Rust API underneath. It needs to be expanded so that callers can specify that the stem is ङ्याबन्त, but there's only so much I can do alone, sadly.

Btw, what is difference

One is used and one isn't :) ambuda-org.github.io is a sloppy repo that I use to deploy some quick demos. More production-ready code will eventually move to ambuda.org.

mediabuff commented 4 months ago

Understood. I will join in due course to help.