sanskrit-lexicon / COLOGNE

Development of http://www.sanskrit-lexicon.uni-koeln.de/
18 stars 3 forks source link

API use case for dictionaries #329

Open drdhaval2785 opened 3 years ago

drdhaval2785 commented 3 years ago

https://ashtadhyayi.com/dhatu/01.0001 Click on भवन्ति This would open a pop up giving step by step derivation for the word भवन्ति. This data of derivation comes from https://api.sanskritworld.in/ .

Can we prepare some APIs which would be able to provide the same for displaying Cologne dictionary data to similar pages? Let us say some website has 'rAmAya' on the site. When I click on 'rAmAya', I should get data about 'rAma' on all dictionaries.

It would be a three step process I guess.

  1. Parse Sandhi
  2. Remove the case endings
  3. Search the headword in dictionaries.
gasyoun commented 3 years ago

For now even an API that can return the meaning of bhū for bhū would be great. Let bhū for भवन्ति @funderburkjim come as the next step.

drdhaval2785 commented 3 years ago

For now even an API that can return the meaning of bhū for bhū would be great.

I completely agree. After closing servepdf API, this is the API I would request Jim to handle. getword.php is a close candidate for this purpose.