Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to other lakAras #37

Open
gasyoun opened this issue Jan 8, 2018 · 15 comments
Open

Link to other lakAras #37

gasyoun opened this issue Jan 8, 2018 · 15 comments

Comments

@gasyoun
Copy link

gasyoun commented Jan 8, 2018

Prakriyaa
Found 1 prakriyas
Please click on a prakriya below to expand/collapse

brūñ vyaktāyāṃ vāci (adādi ) - laṅ prathama. eka.

laṅ prathama. eka. is not very user friendly.

What if I press on laṅ and have a choise to see the same dhatu in:

laṭ, liṭ, luṭ, lṛṭ, leṭ, loṭ, laṅ, luṅ, lṛṅ

If in brūñ the ñ is an abbreviation, than why not capitalised?

Why is there a space in (adādi )?

Also I would want to know if it's a regular verb form or an exclusion.

@avinashvarna
Copy link
Contributor

avinashvarna commented Jan 8, 2018

Why is there a space in (adādi )?

I will remove the space. This was caused because there was no it_status result for the particular form.

As to the other request, I think what you are asking for is a way to get all the forms for a given dhAtu+lakAra. As far as I understand, the API does not expose that information currently, but I will let @drdhaval2785 comment.

@drdhaval2785
Copy link
Owner

drdhaval2785 commented Jan 9, 2018 via email

@avinashvarna
Copy link
Contributor

Why is there a space in (adādi )?

Space removed in 02188e9

@gasyoun
Copy link
Author

gasyoun commented Jan 9, 2018

This was caused because there was no it_status result for the particular form.

Because Panini does not state it or why?

@drdhaval2785
Copy link
Owner

no it_status

Because the form you entered did not have an iDAgama. Whether the iDAgama will happen or not depends on the root and the suffix. When both conditions are satisfied, then only the iDAgama will happen.
Therefore, for non -iDAgama forms, the item will remain blank.

@drdhaval2785
Copy link
Owner

Now the UI has a facility to pass parameters too.
So it should be possible to give the links to other forms on the page in Adidtional information.

@drdhaval2785 drdhaval2785 changed the title brūñ vyaktāyāṃ vāci (adādi ) - laṅ prathama. eka Link to other lakAras Jan 13, 2018
@drdhaval2785
Copy link
Owner

@avinashvarna Now we can get the details of verb forms for given verb, lakAra, purusha and vachana via API at https://api.sanskritworld.in/#!/default/get_gen_data.
So the possible way to implement this feature is

  1. Get the all 10 * 3 * 3 = 90 combinations of lakara * purusha * vachana for given verb.
    e.g. https://api.sanskritworld.in/v0.0.2/generate/slp1/eDa~/low/praTama/bahu?output_transliteration=devanagari will give us ["एधन्ताम्"]. Similarly rest 89 combinations can be generated.

  2. Link those forms like एधन्ताम्.

@avinashvarna
Copy link
Contributor

I think issuing 90 HTTP requests to retrieve 1 form at a time can be quite slow and involves a lot of overhead. Can the API do:

  • Given just dhAtu (i.e. if lakAra, puruSha, vachana is not specified), return all ~90 forms.
  • Given just dhAtu, lakAra, return the ~9 forms for that lakAra
    etc.
    The UI can be much more efficient in its requests then.

@drdhaval2785
Copy link
Owner

drdhaval2785 commented Jan 18, 2018 via email

@drdhaval2785
Copy link
Owner

drdhaval2785 commented Jan 21, 2018

@avinashvarna Would the following format of data be OK for you?
I know your preference about method than getitem. But currently I am concerned about output.
If it is OK for you, I will work on input method development.

>>> g['BU', 'law']
{u'10.0277': {u'mas': [u'BAvayAmaH'], u'sip': [u'BAvayasi'], u'Dvam': [u'BAvayaDve'], u'AtAm': [u'BAvayete'], u'ATAm': [u'BAvayeTe'], u'Tas': [u'BAvayaTaH'], u'tas': [u'BAvayataH'], u'tip': [u'BAvayati'], u'vahi': [u'BAvayAvahe'], u'Ji': [u'BAvayanti'], u'iw': [u'BAvaye'], u'vas': [u'BAvayAvaH'], u'TAs': [u'BAvayase'], u'mip': [u'BAvayAmi'], u'ta': [u'BAvayate'], u'Ja': [u'BAvayante'], u'mahiN': [u'BAvayAmahe'], u'Ta': [u'BAvayaTa']}, u'10.0382': {u'mas': [u'BAvayAmaH'], u'sip': [u'BAvayasi'], u'Dvam': [u'BAvayaDve'], u'AtAm': [u'BAvayete'], u'ATAm': [u'BAvayeTe'], u'Tas': [u'BAvayaTaH'], u'tas': [u'BAvayataH'], u'tip': [u'BAvayati'], u'vahi': [u'BAvayAvahe'], u'Ji': [u'BAvayanti'], u'iw': [u'BAvaye'], u'vas': [u'BAvayAvaH'], u'TAs': [u'BAvayase'], u'mip': [u'BAvayAmi'], u'ta': [u'BAvayate'], u'Ja': [u'BAvayante'], u'mahiN': [u'BAvayAmahe'], u'Ta': [u'BAvayaTa']}, u'01.0001': {u'mas': [u'BavAmaH'], u'sip': [u'Bavasi'], u'Tas': [u'BavaTaH'], u'tas': [u'BavataH'], u'tip': [u'Bavati'], u'Ji': [u'Bavanti'], u'vas': [u'BavAvaH'], u'mip': [u'BavAmi'], u'Ta': [u'BavaTa']}}

@vvasuki
Copy link
Collaborator

vvasuki commented Jan 21, 2018

आदौ ममास्त्यत्र सम्भ्रमः! णिजन्तरूपाण्यपि दृश्यन्त इति।

अस्तु - तथापि प्रष्टव्यम् - '10.0277' इति किम्? अस्पष्टम्। णिजन्तञ्चेत् "भू", "णिच्" इति स्वीकुर्यात्।

@drdhaval2785
Copy link
Owner

drdhaval2785 commented Jan 21, 2018

अधुना णिजन्तरूपाणि न प्रदर्श्यन्ते । तथा कर्तुं शक्यते किञ्चित्कालानन्तरम्‌ । १०.०२७७ इति तु धातुक्रमाङ्कः धातुपाठे ।

भू॑ - अवकल्कने मिश्रीकरण इत्येके चिन्तन इत्यन्ये, चुरादि 10.0382
भू॑ - प्राप्तौ, चुरादि 10.0277
भू॑ - सत्तायाम्, भ्वादि 01.0001

धातुधात्वर्थगणाश्च दर्शनीयाः इति भाति ।
तेन कस्य धातोः रूपाणीति स्पष्टीभविष्यति ।

@vvasuki
Copy link
Collaborator

vvasuki commented Jan 21, 2018

आह् - अवैम्यधुना - "भावयामि रघुरामम्"! साधु बोधितोऽस्मि।

@avinashvarna
Copy link
Contributor

युज्यते । एवं च प्रार्थये -

  • प्रक्रियायां यथा धातुक्रमाङ्कः दर्श्यते, तथैव अत्रापि भवेत् (तन्नाम् प्रक्रियायां देवनागर्यादिषु दर्श्यते चेत् अत्रापि तथैव स्यात्) । नो चेत् UI मध्ये transliteration करणीयं भवेत् ।
  • पुनश्च यदि तिबादयः प्रत्यया अपि न परिवर्त्यन्ते तर्हि सौकर्यं स्यात् । तन्नामि रूपाणि देवनागर्यादिषु प्रदर्श्यन्ते चेदपि {'tip':[भावयति], 'tas':[भावयतः], ...} इत्येव भवेत् । (json schema इत्यस्य परिवर्तनं न भवेत् इति )

@gasyoun
Copy link
Author

gasyoun commented Jan 22, 2018

But currently I am concerned about output.

Exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants