help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

auto-select lang with flyspell


From: Stefan Monnier
Subject: auto-select lang with flyspell
Date: Fri, 13 Jan 2006 16:53:20 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Does anyone have code to try and auto-select the proper dictionary to use
with flyspell?

I'm thinking of something that works as follows:

If the current word is misspelled and more than X% of the words around are
misspelled as well and the current dictionary has not yet been set
explicitly, try and guess which dictionary to use and switch to that.
The guess could be based simply and trying to spell-check the surrounding
text and selecting the dict that results in fewer misspellings.

of course, if it works differently, it doesn't mean I'm not interested.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]