node.js inflectional subanta morphology analyzer for Sanskrit
subanta analyser gets array of wordforms and return array of queries for (in my case) CouchDB.
subanta analyser beforehand creates a file ./lib/sup_cache.txt' for all endings of any wordform, and then works with this file.
node run.js ज्योतिषोः -[master]subanta parse: jyotizoH ज्योतिषोः[{ pada: 'ज्योतिस्', slp: 'jyotis', name: true, stem: 'ज्योत', gend: 'neut', dict: 'िस्', var: 'is', sups: [ '6.2', '7.2' ], term: 'िषोः', size: 4 }, . . .
Installation
With node.js:
$ npm install subanta
API
var subanta = ;
subanta;
console
run.js is for convenient purpuses only and takes only one wordform as input:
it takes slp1, (slp1 goes only in console):
node run.js jyotirByaH
or devanagari as well:
node run.js ज्योतिर्भ्यः
Running node tests
$ make test-> 1717 passing
License
GNU GPL