-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Implement spellchecking all translations in a particular language #977
Comments
To illustrate, what I'm looking for is the Weblate equivalent of |
Temporary workaround: an |
Indeed spell checking is currently not there. I was hoping to have it with #443, but I'd still not sure about pulling Java into the chain just for this... |
Why pull anything in? Just use whatever is installed on the server: LanguageTool, aspell, or other; and warn the server admin if there isn't any of that, and also if the spellchecker only has a few language packs installed. |
Yes that would be perfect, it just needs to be implemented ;-). |
I'm afraid I currently don't have the time to implement it myself. |
Probably easiest approach would be to use pyenchant and it's SpellChecker. It has simpl API and uses whatever backend is available on a system. |
Pyenchant sounds good, but they are currently searching for a new maintainer. Are there any alternatives or should we help to maintain it? |
I don't recommend using pyenchant since it adds a dependency to the enchant C library, which is nothing more than a thin wrapper around various spellcheckers. That abstraction layer would be easier to maintain and distribute if written in pure Python. In another project I ended up using https://pypi.org/project/hunspell/ instead of pyenchant, but Weblate needs a library that provides tokenizers (functions that split a text into words), whereas this hunspell module only provides functions that analyze a single word. pyenchant only includes an English tokenizer. |
We could use polyglot that provides tokenization for 165 languages. Hunspell looks great, but I don't know which languages and dictionaries are maintained. |
In case we ever decide to go this way, I think integrating with something like LanguageTool is the way to go. |
Duplicate of #443 |
I don't see a way to do that in the UI, and the only issue I could find that mentions "spell" is #443, but it's about a particular tool that does more than a simple spellcheck.
The text was updated successfully, but these errors were encountered: