Open andrewtavis opened 2 weeks ago
Thank you for detail explanation. 😄
Very welcome! 🥳🥳
One thing to note here, we should likely allow the user to pass either noun
or nouns
, etc. Just so it's easier :) Adding this to the issue 😊
One thing to note here, we should likely allow the user to pass either noun or nouns, etc. Just so it's easier :) Adding this to the issue 😊
We can use the following for this, @mhmohona: https://github.com/scribe-org/Scribe-Data/blob/11f4f94d28efa167a3ce61fa6229d597e800a833/src/scribe_data/cli/cli_utils.py#L46
I think that working on this one would be a great next step, @mhmohona! This would give you a bit of Wikidata experience as well :) I'll add in the files and the section for the CLI now!
3736222 adds in the basics for this, @mhmohona :) The work for this command can be in cli/total.py
, and the command structure has already been added into cli/main.py
. I think we should be able to work with the Python code in the issue text and SPARQLWrapper to make this work. Happy to discuss further!
Terms
Description
This issue would implement the
--total
(-t
) functionality of the Scribe-Data CLI. This functionality would check Wikidata for the total of certain groupings of languages and word types. Usage of this would be:nouns
ornoun
, etc, in order to avoid unneeded errors :)The following Python code could be edited for most of the functionality that we need for this, whereby we could also add some changes such that the
word_type
argument would also function :) From there the result of this function is returned to the user with a message including the given language and/or word types.languages
andword_types
:)Contribution
@mhmohona will be working on this as a part of GSoC 2024! ☀️ Please write in here so I can assign, and let us know if there's anything we can do to support!