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

Wish: Add hook for the situation when an incorrect word is detected #10

Open
GregorZattler opened this issue Feb 14, 2017 · 1 comment

Comments

@GregorZattler
Copy link

The package guess-language guesses the language (using heuristics of trigrams) of the current paragraph (which provides for using different languages within one buffer). It could automatically change wchecks language configuration iff there was a hook in wcheck for the situation when an incorrect word is detected. This would be nice even if current buffers text is all in one language, because one wouldn't have to switch languages when e.g. writing several emails in different languages.

I therefore wish for such a hook (see it's issue #8 where this is discussed).

@tmalsburg
Copy link

To add some context: Currently guess-language works with Flyspell but I added some infrastructure to make it eventually possible to use other spell-checkers. The way guess-language interacts with the spell-checker is the following: When Flyspell detects an incorrect word, it notifies guess-language (via flyspell-incorrect-hook). Guess-language then checks the language and when it is different than the current language used in the spell-checker, it switches Flyspell's dictionary (ispell-change-dictionary) and rechecks the current paragraph. The goal is to replicate this protocol with wcheck but having had a look at wcheck's code, I don't see how that would be possible. Suggestions welcome.

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

No branches or pull requests

2 participants