Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

deal with french version of wikipedia #92

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gozat
Copy link

@gozat gozat 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.

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

Successfully merging this pull request may close these issues.

None yet

2 participants