API for step by step derivation of verb forms

21 views
Skip to first unread message

Dhaval Patel

unread,
Dec 15, 2017, 2:34:06 PM12/15/17
to indo...@list.indology.info, bvpar...@googlegroups.com, samskrita, sanskrit-p...@googlegroups.com
Respected scholars,
Apologies for cross posting.

A step by step derivation process of verb forms is now made available at the following API.
http://api.sanskritworld.in/v0.0.1/jagAma/prakriya

The generic call is
http://api.sanskritworld.in/v0.0.1/<verbform>/prakriya

I would be highly obliged if the scholars can check the API and give their remarks.

Data source:

Currently available URIs are:
  "uris": {
    "JNU_link": "api.sanskritworld.in/v0.0.1/<verbform>/jnu",
    "UoHyd_link": "api.sanskritworld.in/v0.0.1/<verbform>/uohyd",
    "all_details": "api.sanskritworld.in/v0.0.1/<verbform>",
    "dhatupradipa_link": "api.sanskritworld.in/v0.0.1/<verbform>/dhatupradipa",
    "it_id": "api.sanskritworld.in/v0.0.1/<verbform>/it_id",
    "it_status": "api.sanskritworld.in/v0.0.1/<verbform>/it_status",
    "it_sutra": "api.sanskritworld.in/v0.0.1/<verbform>/it_sutra",
    "kshiratarangini_link": "api.sanskritworld.in/v0.0.1/<verbform>/kshiratarangini",
    "lakAra_or_tense": "api.sanskritworld.in/v0.0.1/<verbform>/lakara",
    "madhaviyadhatuvritti_link": "api.sanskritworld.in/v0.0.1/<verbform>/madhaviya",
    "padadecider_id": "api.sanskritworld.in/v0.0.1/<verbform>/padadecider_id",
    "padadecider_sutra": "api.sanskritworld.in/v0.0.1/<verbform>/padadecider_sutra",
    "prakriya_human_readable": "api.sanskritworld.in/v0.0.1/<verbform>/prakriya",
    "prakriya_machine_readable": "api.sanskritworld.in/v0.0.1/<verbform>/prakriya/machine",
    "upasarga": "api.sanskritworld.in/v0.0.1/<verbform>/upasarga",
    "verb_devanagari": "api.sanskritworld.in/v0.0.1/<verbform>/verb",
    "verb_gana": "api.sanskritworld.in/v0.0.1/<verbform>/gana",
    "verb_meaning": "api.sanskritworld.in/v0.0.1/<verbform>/meaning",
    "verb_number": "api.sanskritworld.in/v0.0.1/<verbform>/number",
    "verb_slp": "api.sanskritworld.in/v0.0.1/<verbform>/verbslp"
  }
--
Dr. Dhaval Patel, I.A.S
Collector and District Magistrate, Anand

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

unread,
Dec 15, 2017, 7:19:15 PM12/15/17
to sanskrit-programmers
- other lists

Nice!

You'd be following REST API conventions (google it) better and it would be clearer if the URI were http://api.sanskritworld.in/v0.0.1/tinantas/slp1/jagAma/prakriya


--
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.



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

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

unread,
Dec 15, 2017, 7:23:03 PM12/15/17
to sanskrit-programmers
And you might have the API automatically produce the output in a desired encoding with query parameters of the type:
http://api.sanskritworld.in/v0.0.1/tinantas/slp1/jagAma/prakriya?encoding=devanaagarii

Further, you might want to publish the swagger API documentation (Example https://api.vedavaapi.org/scala/swagger/index.html#/grammarv1analyser/Analyse1 or https://api.vedavaapi.org/py/ullekhanam/docs#!/default/get_book_list ) for your API - just use flask-restplus library.

To unsubscribe from this group and stop receiving emails from it, send an email to sanskrit-programmers+unsubscrib...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--
--
Vishvas /विश्वासः

Dhaval Patel

unread,
Dec 16, 2017, 8:32:49 AM12/16/17
to indo...@list.indology.info, bvpar...@googlegroups.com, sanskrit-p...@googlegroups.com
For all friends who find the API business too technical, there is now a more user friendly way to use the work.

1. Open http://api.sanskritworld.in/#!/default/get_get_prakriya
2. Enter verbform in SLP1 e.g. Serate / Bavati etc.
3. Click on Try it Out!
4. See the Response Body for step by step derivation.

If you are not familiar or comfortable with SLP1, you can transliterate back and forth from your favourite transliteration scheme in http://www.learnsanskrit.org/tools/sanscript.

P.S. - I personally extend my thanks to Mr. Vishvas Vasuki for drawing my attention and interest in flask-restplus and swagger documentation.

Avinash L Varna

unread,
Dec 16, 2017, 9:47:49 PM12/16/17
to sanskrit-programmers
(- groups I am not a member of)

If you prefer an even simpler interface, one is now available at https://avinashvarna.github.io/prakriya/ It is WIP, so any feedback is appreciated (https://github.com/drdhaval2785/prakriya/issues).

Thanks
Avinash

--
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.
Reply all
Reply to author
Forward
0 new messages