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

Missing time variants of verbs #26

Closed
NetramSamoht opened this issue Sep 2, 2022 · 4 comments
Closed

Missing time variants of verbs #26

NetramSamoht opened this issue Sep 2, 2022 · 4 comments

Comments

@NetramSamoht
Copy link

NetramSamoht commented Sep 2, 2022

A very good API :)
The only missing feature are the additional information about the tense.
I have unfortunately no Python experience to implement this...

Is there a good reason why you can't grab this data?
If not, you may eventually have time and want to implement it.

Thanks for your work ;)

@imankulov
Copy link
Owner

Hey @novaCTM. Sorry, I missed your question.

If it's still relevant, can you please provide an example of what you mean by "time form"? Is it something that's available in English?

Screenshot 2022-10-09 at 22 40 10

@NetramSamoht
Copy link
Author

YES, that's exactly what I meant.
Sorry for unclear discription.
I am working on a vocabulary trainer where the avilability of the tense would be a nice feature!

imankulov added a commit that referenced this issue Nov 19, 2022
Add a "forms" attribute to each lemma. The attribute returns a list of strings,
if different forms are available.

E.g., it returns ["obrigada f sl", "obrigados m pl", "obrigadas f pl"] for
Portuguese "obrigado", or ["shrank or shrunk", "shrunk"] for English "shrink."

Ref #26
@imankulov
Copy link
Owner

Hey @NetramSamoht! I finally implemented the change you asked for and updated the sample installation at https://linguee-api.fly.dev.

If it's still relevant, you can test it at https://linguee-api.fly.dev/api/v2/translations?query=shrink&src=en&dst=pt&guess_direction=false&follow_corrections=always.

The API returns an array of forms for each lemma if it finds them on the page.

Example

@NetramSamoht
Copy link
Author

Thank you so much!!! I'm very happy now 👍

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

No branches or pull requests

2 participants