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

Use APIs for CLI get command for translations #526

Open
2 tasks done
andrewtavis opened this issue Dec 8, 2024 · 4 comments
Open
2 tasks done

Use APIs for CLI get command for translations #526

andrewtavis opened this issue Dec 8, 2024 · 4 comments
Assignees
Labels
feature New feature or request help wanted Extra attention is needed Outreachy Available for Outreachy participants

Comments

@andrewtavis
Copy link
Member

Terms

Description

This issue would add the functionality to get translations for a word from Wikidata using either the MediaWiki API or the Wikidata Query Service. Steps incldue:

  • Adding -dt translations as an option for the CLI for get (g) command if not done already
  • Allow for an API like the MediaWiki API or the Wikidata Query Service to be used
    • We'd need to write a central query for returning translations of a word given that the Wikidata entity has the same label as the one passed passed and that language of the lexeme is also the one passed
    • scribe-data get -lang English --word book or something like this :)

Let's discuss this issue post some other issues being finished 😊

Contribution

@axif0 will be working on this as a part of Outreachy! 📶🚲

@andrewtavis andrewtavis added feature New feature or request help wanted Extra attention is needed Outreachy Available for Outreachy participants labels Dec 8, 2024
@axif0
Copy link
Collaborator

axif0 commented Dec 23, 2024

  • Adding -dt translations as an option for the CLI for get (g) command if not done already

Is translations under -dt? I mean our needs are scribe-data get -t language english -dt nouns.

@andrewtavis
Copy link
Member Author

Weren't we saying:

scribe-data get -l English -dt translations

I don't think we need to split translations up based on the current data types. If you get translations, it should be all of them.

@axif0
Copy link
Collaborator

axif0 commented Dec 23, 2024

Thank you so much for the quick clarification...

@andrewtavis
Copy link
Member Author

Very welcome! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed Outreachy Available for Outreachy participants
Projects
Status: Todo
Development

No branches or pull requests

2 participants