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

deal with french version of wikipedia #92

Closed
wants to merge 1 commit into from
Closed

deal with french version of wikipedia #92

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Feb 8, 2022

This PR solves (hopefully) many of the already issues and requests regarding the possibility to adapt the fantastic code by @suyash458 to other language.

The strategy I adopted is close to what @rroessler1 proposed in issue #55[https://github.com//issues/55], that is, a dictionary separated by language and having all the keywords in the previously separated PRONUNCIATIONS, PART_OF_SPEECH, ETYMOLOGY and RELATIONS. All these fields are constructed in the sub-module languages in the wikitionaryparser folder.
Note that previously pronunciations and etymology keywords were combined together.

If one wants to adapt to a new language, one just has to add a new key in the wikitionaryparser.langugages.LANGUAGES dictionary. I add a french example inspired by @lashoun in the issue #56 and PR (56)[https://github.com//pull/56], under the key français. I also add some tests for the french dictionary. There I may have done BS since I'm not well familiar with the mock and parameterized packages.

Unfortunately, I developed all that without worrying much about my commits, so commits are few are perhaps too much entangle. I'll do my best in the future to make better job :-)

I hope this PR helps people who wants to work in other languages, and may serve as a basis for future developments.

Feel free to contact me via any other channel for simpler communications (I hate GitHub !),
please follow http://fraschelle.free.fr/ website.

@ghost ghost mentioned this pull request Feb 8, 2022
Repository owner closed this by deleting the head repository Oct 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants