SanskritVerb - A verb form generator

467 views
Skip to first unread message

dhaval patel

unread,
Oct 17, 2015, 1:30:11 PM10/17/15
to bvpar...@googlegroups.com, indo...@list.indology.info, samskrita, sanskrit-p...@googlegroups.com
Dear scholars,

We are happy to present before you our project SanskritVerb - a computational simulation of step by step Sanskrit verb form generation (तिङन्तप्रक्रिया).

Expected outcome -
1. The code gives step by step derivation of all forms of a given verb in given tense.
2. The code gives a derived table at the end.

Source code - https://github.com/drdhaval2785/SanskritVerb
Online testing - http://www.sanskritworld.in/sanskrittool/SanskritVerb/tiGanta.html

N.B. -
1. Currently the machine doesn't create sanAdi verb forms. It will be included in later versions.
2. Bug reports are welcome at https://github.com/drdhaval2785/SanskritVerb/issues
3. We have relied upon the following books - (1) Ashtadhyayi sahajabodha by Dr. Pushpa Dikshit, (2) Siddhantakaumudi with Balamanorama commentary and (3) Kashikavritti.
4. Current version is version 1.1.0 (https://github.com/drdhaval2785/SanskritVerb/releases/tag/v1.1.0)

Thanking you,

Dr. Dhaval Patel, I.A.S and Dr. Shivakumari Katuri

Mārcis Gasūns

unread,
Oct 19, 2015, 12:50:15 PM10/19/15
to भारतीयविद्वत्परिषत्, indo...@list.indology.info, sams...@googlegroups.com, sanskrit-p...@googlegroups.com
We are happy to see the results, words hardly describe my thankfulness.
Not only good, but open code. Documentation will follow, I'm sure.
If "कर्तृवाच्य Mandatory field. Wait for ajax to load." is mandatory, why do I have to click on it? Can you make it checked already? 
If I enter kalpate, do I use it correctly?
kalp.PNG

Pradyumna Achar

unread,
Apr 6, 2016, 2:51:25 AM4/6/16
to sanskrit-programmers, bvpar...@googlegroups.com, indo...@list.indology.info, sams...@googlegroups.com
Dear Dr. Patel,

The tool is very useful and informative. Thank you.

Is there a facility for the reverse query, i.e., given a form like "आसम्" is there a facility to tell what are all the possible ways by which it can be arrived at?
I think that would be useful while reading an existing text and trying to understand the meaning. (Eg: I came across a word recently -- तेनैवासमितीरयन् -- तेन+एव+आसाम्+इति+ईरयन् ).

Regards,
Pradyumna

dhaval patel

unread,
Apr 6, 2016, 11:43:22 AM4/6/16
to sanskrit-p...@googlegroups.com, bvpar...@googlegroups.com, indo...@list.indology.info, samskrita
Not right now.
Once I am sure about the output of the code, I plan to store the output in XML file or some kind of database and then the reverse query can be easily handled. That would take at least take 6 months looking at the bugs we deal right now. But definitely on the radar.

--
You received this message because you are subscribed to the Google Groups "sanskrit-programmers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sanskrit-program...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Dr. Dhaval Patel, I.A.S
Collector and District Magistrate, Anand

Amba Kulkarni

unread,
Apr 6, 2016, 12:56:15 PM4/6/16
to bvparishat
Dear Pradyumna,

You may use the शब्द-विश्लेषक available at http://sanskrit.uohyd.ac.in -> Tools -> Morphological Analyser
to get the analysis.

-- Amba Kulkarni


--
You received this message because you are subscribed to the Google Groups "samskrita" group.
To unsubscribe from this group and stop receiving emails from it, send an email to samskrita+...@googlegroups.com.
To post to this group, send email to sams...@googlegroups.com.
Visit this group at https://groups.google.com/group/samskrita.

Satish Kumar Dogra

unread,
Apr 7, 2016, 2:06:36 AM4/7/16
to bvpar...@googlegroups.com
http://sanskrit.uohyd.ac.in इति जालपुटे Tools इति सम्पर्कः (link) न लभ्यते।

Dogra




============================================
Read my websites:
Sanskrit: dograindia.org
English: satishkumardogra.com
Tamil: dogratamil.com

My contact number:
+91 98400 93148

--
You received this message because you are subscribed to the Google Groups "भारतीयविद्वत्परिषत्" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bvparishat+...@googlegroups.com.
To post to this group, send email to bvpar...@googlegroups.com.

Amba Kulkarni

unread,
Apr 7, 2016, 2:08:09 AM4/7/16
to bvparishat
I am extremely sorry.

The correct URL is: http://sanskrit.uohyd.ac.in/scl -> Tools -> Morphological Analyser

With regards,
Amba Kulkarni




Fellow,
Indian Institute of Advanced Study,
Shimla

आ नो भद्रा: क्रतवो यन्तु विश्वत: ll
Let noble thoughts come to us from every side.
- Rig Veda, I-89-i.
Prof. (On leave)
Department of Sanskrit Studies
University of Hyderabad
Prof. C.R. Rao Road 
Hyderabad-500 046

(91) 040 23133802(off)

http://sanskrit.uohyd.ac.in/scl
http://sanskrit.uohyd.ac.in/faculty/amba

Hnbhat B.R.

unread,
Apr 7, 2016, 2:28:37 AM4/7/16
to bvpar...@googlegroups.com

The link does not work in my Android system im Chrome browser properly. I tried many times without any result.

Amba Kulkarni

unread,
Apr 7, 2016, 2:46:35 AM4/7/16
to bvparishat
Namaskar Sir.

Just now I tested it on my mobile which has android in it, and through chrome I could access the website. I could get the morphological analysis. Though I should admit it was a bit slow.

Will you please tell me the device you are using?

With regards,
Amba Kulkarni



Fellow,
Indian Institute of Advanced Study,
Shimla

आ नो भद्रा: क्रतवो यन्तु विश्वत: ll
Let noble thoughts come to us from every side.
- Rig Veda, I-89-i.
Prof. (On leave)
Department of Sanskrit Studies
University of Hyderabad
Prof. C.R. Rao Road 
Hyderabad-500 046

(91) 040 23133802(off)

http://sanskrit.uohyd.ac.in/scl
http://sanskrit.uohyd.ac.in/faculty/amba


On 7 April 2016 at 11:58, Hnbhat B.R. <hnbh...@gmail.com> wrote:

The link does not work in my Android system im Chrome browser properly. I tried many times without any result.

--

Satish Kumar Dogra

unread,
Apr 7, 2016, 2:48:43 AM4/7/16
to bvpar...@googlegroups.com
धन्यवादः कुलकर्णी महोदय । महल्लाभो भवति।

Dogra, Chennai.
 

============================================
Read my websites:
Sanskrit: dograindia.org
English: satishkumardogra.com
Tamil: dogratamil.com

My contact number:
+91 98400 93148

Hnbhat B.R.

unread,
Apr 7, 2016, 2:57:43 AM4/7/16
to bvpar...@googlegroups.com


On 07-Apr-2016 12:16 pm, "Amba Kulkarni" <ambap...@gmail.com> wrote:
>
> Namaskar Sir.
>
> Just now I tested it on my mobile which has android in it, and through chrome I could access the website. I could get the morphological analysis. Though I should admit it was a bit slow.
>
> Will you please tell me the device you are using?
>

I am using Dell Tab version 7 and my chrome doesn't show the devanagari. Instead some junk characters are shown. Analyzer and other tools do not work at all.

Amba Kulkarni

unread,
Apr 7, 2016, 3:20:13 AM4/7/16
to bvparishat, Anil Gupta, Arjuna S.R, karunakar medamoni
Thank you Sir for the information.

Regarding the Devanagari display: Is it with only this website, or in general Devanagari is not displayed properly?
If it is only with this website, do you see the the Devanagari in the menu (साधनानि, कोशाः, प्रकाशनानि, etc.) or not?

Regarding analyser and other tools: Pl check whether you have set 'all sites to run javascript' option, under
edit -> preferences -> settings -> privacy settings -> content settings.

With regards,
Amba Kulkarni
 

kancuka tattva

unread,
Jun 28, 2016, 7:33:58 PM6/28/16
to sanskrit-programmers, bvpar...@googlegroups.com, indo...@list.indology.info, sams...@googlegroups.com
Thanks you for this valuable DB.
Is there a DB (even partial) of Sanskrit verb forms that are actually occurring in Vedic and Epic Sanskrit?

विश्वासो वासुकिजः (Vishvas Vasuki)

unread,
Jun 23, 2017, 11:34:07 AM6/23/17
to sanskrit-programmers, bhAratIya-vidvat-pariShad भारतीय-विद्वत्परिषद्, संस्कृतसन्देशश्रेणिः samskrta-yUthaH
​-indology​ where I'm not member.


2017-06-22 23:29 GMT-07:00 Pankajashree R <pankaj...@gmail.com>:
Are these programs and databases open source? 
​Yes~ dhaval will say more.​

 

If not, are there any APIs which give JSON outputs for the verb forms and meanings? 

Not fully JSON (lakAra-s will be html wrapped in json), but you'll be able to lookup in this database: dict_entries / http://vedavaapi.org:5984/dict_entries . You're free to replicate it or use it remotely - details in https://github.com/sanskrit-coders/dict-api.



--
--
Vishvas /विश्वासः

Pankajashree R

unread,
Jun 23, 2017, 11:34:45 AM6/23/17
to sanskrit-programmers, bvpar...@googlegroups.com, indo...@list.indology.info, sams...@googlegroups.com

Are these programs and databases open source? 

If not, are there any APIs which give JSON outputs for the verb forms and meanings? 

Mārcis Gasūns

unread,
Jun 24, 2017, 4:07:20 AM6/24/17
to भारतीयविद्वत्परिषत्, sanskrit-p...@googlegroups.com, indo...@list.indology.info, sams...@googlegroups.com
It's a closed system. If you want open - 

The corresponding database of XML Sanskrit morphology is now distributed as the Gitlab repository https://gitlab.inria.fr/huet/Heritage_Resources.
That's nothing more than a dictionary. http://www.sanskrit-lexicon.uni-koeln.de/scans/awork/apidev/sample/list-0.2.html is far more advanced.
 

Are these programs and databases open source? 
No, only Gerard and Cologne are open.
 

If not, are there any APIs which give JSON outputs for the verb forms and meanings? 
No, there is no API. If you are ready to code it, it can be added to Cologne.

Mārcis Gasūns

unread,
Jun 24, 2017, 4:10:29 AM6/24/17
to sanskrit-programmers, bvpar...@googlegroups.com, indo...@list.indology.info, sams...@googlegroups.com


On Wednesday, 29 June 2016 02:33:56 UTC+3, kancuka tattva wrote:
Thanks you for this valuable DB.
Is there a DB (even partial) of Sanskrit verb forms that are actually occurring in Vedic and Epic Sanskrit?


G S S Murthy

unread,
Jun 24, 2017, 8:04:02 AM6/24/17
to bvpar...@googlegroups.com
I went to the indicated website of Whitney routes. There I found this example:

Tasyāḥ paraḥ ruroda. (14)

‘We wept before her [eyes].’

There seems to be some error here.

Regards,

Murthy


--
You received this message because you are subscribed to the Google Groups "भारतीयविद्वत्परिषत्" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bvparishat+unsubscribe@googlegroups.com.

To post to this group, send email to bvpar...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

K S Kannan

unread,
Jun 24, 2017, 10:46:15 AM6/24/17
to bvparishat
puraḥ
not paraḥ

G S S Murthy

unread,
Jun 24, 2017, 11:24:12 AM6/24/17
to bvpar...@googlegroups.com
ruroda->we wept?
Regards,
Murthy

K S Kannan

unread,
Jun 24, 2017, 12:23:54 PM6/24/17
to bvparishat
You are right. 
It has to be
"He/She/It/I wept"

Pankajashree R

unread,
Jul 9, 2017, 7:39:55 AM7/9/17
to sanskrit-programmers, bvpar...@googlegroups.com, sams...@googlegroups.com
Thank you. I will try to use this and build a small app :) 

Regarding the WebAPI - 

Why am I not getting the characters properly for the entries on Chrome (Version 58.54.3029.81)

If I use Firefox, I get it properly. 

Shreevatsa R

unread,
Jul 9, 2017, 10:26:12 AM7/9/17
to sanskrit-programmers, bvpar...@googlegroups.com, संस्कृतसन्देशश्रेणिः samskrta-yUthaH
On Sun, Jul 9, 2017 at 3:00 AM, Pankajashree R <pankaj...@gmail.com> wrote:
Thank you. I will try to use this and build a small app :) 

Regarding the WebAPI - 

Why am I not getting the characters properly for the entries on Chrome (Version 58.54.3029.81)

If I use Firefox, I get it properly. 


It's just a character encoding issue; the bytes are there and will be usable when you parse the json.

The server sends its response as Content-Type:application/json to your browser (and indeed the response is valid JSON and intended to be consumed by programs, not read in your browser), then your browser has the task of interpreting those bytes and displaying them in the DOM. When it does that it tries to guess the character encoding, and in this case the server has returned UTF-8 but your browser has guessed ISO-8859-15. If you're writing a program you can specify the encoding and everything will be decoded into the proper Unicode characters. 

Actually JSON strings are required to be Unicode, but the browser in this case isn't smart enough to realize that what it's seeing is JSON and factor that into its encoding-guessing. (For what it's worth, I get correct output in Chrome and similar to yours in Firefox.) I guess in this case if the server returns Content-type: application/json; charset=utf-8 then there's a greater chance of the browser guessing correctly. It should be a non-issue as the server responses aren't designed to be viewed in the browser. Or maybe the server could do that too, return either html or json depending on the request's "accept" headers.

विश्वासो वासुकिजः (Vishvas Vasuki)

unread,
Jul 9, 2017, 10:31:42 AM7/9/17
to sanskrit-programmers, bhAratIya-vidvat-pariShad भारतीय-विद्वत्परिषद्, संस्कृतसन्देशश्रेणिः samskrta-yUthaH
2017-07-09 3:00 GMT-07:00 Pankajashree R <pankaj...@gmail.com>:
Thank you. I will try to use this and build a small app :) 

Regarding the WebAPI - 

 

Why am I not getting the characters properly for the entries on Chrome (Version 58.54.3029.81)

​​That's odd - I am able to see it fine on Version 60.0.3112.32 (Official Build) beta (64-bit) on ubuntu.
​Are you able to correctly read other devanAgarI pages fine? How about the devanAgarI in https://raw.githubusercontent.com/sanskrit-coders/dict-api/master/README.md ?

There's an outdated post on a similar issue at stack exchange - https://stackoverflow.com/questions/16658463/utf-8-characters-not-displaying-in-chrome . Please post your question there so that someone might help. (And copy the link here so that we might follow along.)


If I use Firefox, I get it properly. 



On Friday, 23 June 2017 20:45:43 UTC+5:30, विश्वासो वासुकिजः wrote:
Not fully JSON (lakAra-s will be html wrapped in json), but you'll be able to lookup in this database: dict_entries / http://vedavaapi.org:5984/dict_entries . You're free to replicate it or use it remotely - details in https://github.com/sanskrit-coders/dict-api.



--
--
Vishvas /विश्वासः

--
You received this message because you are subscribed to the Google Groups "sanskrit-programmers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sanskrit-programmers+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Pankajashree R

unread,
Jul 9, 2017, 10:31:42 AM7/9/17
to sanskrit-programmers, bvpar...@googlegroups.com, indo...@list.indology.info, sams...@googlegroups.com
On Saturday, 24 June 2017 13:37:21 UTC+5:30, Mārcis Gasūns wrote:

It's a closed system. If you want open - 

The corresponding database of XML Sanskrit morphology is now distributed as the Gitlab repository https://gitlab.inria.fr/huet/Heritage_Resources.


Thank you. 
I'm curious to know, does Dr. Amba Kulkarni's program use a similar way to generate the forms of the verbs? Or is there a way for dynamic generation of verb forms, instead of keying in all forms..
 
 

That's nothing more than a dictionary. http://www.sanskrit-lexicon.uni-koeln.de/scans/awork/apidev/sample/list-0.2.html is far more advanced.
 

Are these programs and databases open source? 
No, only Gerard and Cologne are open.
 

If not, are there any APIs which give JSON outputs for the verb forms and meanings? 
No, there is no API. If you are ready to code it, it can be added to Cologne.

I am interested in looking into Cologne ..

विश्वासो वासुकिजः (Vishvas Vasuki)

unread,
Jul 9, 2017, 10:31:42 AM7/9/17
to sanskrit-programmers, bhAratIya-vidvat-pariShad भारतीय-विद्वत्परिषद्, संस्कृतसन्देशश्रेणिः samskrta-yUthaH
(readding bvp and samskrita since it was cross posted)

2017-07-09 5:12 GMT-07:00 dhaval patel <drdhav...@gmail.com>:


Thank you. 
I'm curious to know, does Dr. Amba Kulkarni's program use a similar way to generate the forms of the verbs? Or is there a way for dynamic generation of verb forms, instead of keying in all forms..

Last time I checked, it is manually entered. It is verb form lookup method, and not verb form generator method.

​I believe it ​uses a Finite State Transducer, built and specified using http://wiki.apertium.org/wiki/Lttoolbox technology (a dix file is written and compiled to a bin file). This approach can potentially have wider uses in sanskrit. smt ambA, who might be watching this thread may have more details.

विश्वासो वासुकिजः (Vishvas Vasuki)

unread,
Jul 9, 2017, 9:09:00 PM7/9/17
to sanskrit-programmers, bhAratIya-vidvat-pariShad भारतीय-विद्वत्परिषद्, संस्कृतसन्देशश्रेणिः samskrta-yUthaH
2017-07-09 3:00 GMT-07:00 Pankajashree R <pankaj...@gmail.com>:
Thank you. I will try to use this and build a small app :) 

​Also, please host your work-in-progress on github, so that we may observe and possibly offer suggestions as you proceed.​

Amba Kulkarni

unread,
Jul 10, 2017, 8:43:43 AM7/10/17
to samskrita, sanskrit-programmers, bhAratIya-vidvat-pariShad भारतीय-विद्वत्परिषद्
On 9 July 2017 at 18:59, विश्वासो वासुकिजः (Vishvas Vasuki) <vishvas...@gmail.com> wrote:
(readding bvp and samskrita since it was cross posted)

2017-07-09 5:12 GMT-07:00 dhaval patel <drdhav...@gmail.com>:


Thank you. 
I'm curious to know, does Dr. Amba Kulkarni's program use a similar way to generate the forms of the verbs? Or is there a way for dynamic generation of verb forms, instead of keying in all forms..

Last time I checked, it is manually entered. It is verb form lookup method, and not verb form generator method.


Yes, Dr. Dhaval Patel is right. I do not have any verb generator.
 
​I believe it ​uses a Finite State Transducer, built and specified using http://wiki.apertium.org/wiki/Lttoolbox technology (a dix file is written and compiled to a bin file). This approach can potentially have wider uses in sanskrit. smt ambA, who might be watching this thread may have more details.


And yes, Vishvas is also right in that I'm using Lttoolbox for generating the Finite State Transducer for my Sanskrit morphology.

-- Amba

--
You received this message because you are subscribed to the Google Groups "samskrita" group.
To unsubscribe from this group and stop receiving emails from it, send an email to samskrita+unsubscribe@googlegroups.com.

To post to this group, send email to sams...@googlegroups.com.
Visit this group at https://groups.google.com/group/samskrita.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages