tiNanta
v0.4.0
Published
sanskrit tiNanta analyser - forms queries for Morpheus v.0.4.0
Maintainers
Readme
node.js Sanskrit tiNanta analyser
tiNanta analyser gets array of wordforms and return array of queries for (in my case) CouchDB.
tiNanta analyser is based on results of a remarkable program 'SanskritVerb' developed by Dr. Dhaval Patel & Dr. Sivakumari Katuri. But tiNanta.js solves the inverse problem - it restores a dhatu for any final wordform.
look: http://sanskritworld.in/sanskrittool/SanskritVerb/tiGanta.html
tiNanta analyser creates beforehand the database 'sa-tins' for all endings of any wordform and for all angas for any dhatu, and then works with this db.
$ node run.js आकिष्टाम् (git)-[devel]
parsing: AkizwAm आकिष्टाम्
[ { verb: true,
tips: [ 'तस्' ],
tin: 'िष्टाम्',
size: 7,
gana: '01',
la: 'लुङ्',
pada: 'प',
stem: 'आक',
dhatu: 'अक्',
flake: 'आकिष्टाम्' } ]
qs size: 1
queryTime: 57.654msInstallation
With node.js:
$ npm install tiNantaalso you should clone CouchDB named sa-tins:
http://diglossa.org:5984/_utils/index.html
API
var tiNanta = require('tiNanta');tiNanta.query(stems, function(err, queries) {
console.log(err, queries);
}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 karotior devanagari as well:
node run.js करोतिRunning node tests
tiNanta.js has 245 056 tests. So it takes some time to run ok.
$ make testLicense
GNU GPL
