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 wiktionary API for words validation #71

Open
queleok opened this issue Nov 17, 2023 · 1 comment
Open

Use wiktionary API for words validation #71

queleok opened this issue Nov 17, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request feature

Comments

@queleok
Copy link
Owner

queleok commented Nov 17, 2023

Reasoning
The API that is currently in use abandoned support for languages other than English at some point. I would like to support Swedish as well, hence it would make sense to consider alternatives. Wiktionary looks like a reasonable alternative, it could also be used to extend the support for other languages

Solution
Requests of the following form seem to provide the required output:
https://sv.wiktionary.org/w/api.php?action=query&titles=gjordudle&format=json&formatversion=2 (failure)
https://sv.wiktionary.org/w/api.php?action=query&titles=gjorde&format=json&formatversion=2 (success)

API usage etiquette should be kept in mind.

@queleok queleok self-assigned this Nov 17, 2023
@queleok queleok added enhancement New feature or request feature labels Nov 17, 2023
@queleok
Copy link
Owner Author

queleok commented Nov 19, 2023

It could actually be useful to enable optional configuration of the target validation source by the end-user with the config stored in the local storage of the agent

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

No branches or pull requests

1 participant