unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: auto-select lang with flyspell
Date: Fri, 13 Jan 2006 16:53:20 -0500	[thread overview]
Message-ID: <873bjrg5ns.fsf-monnier+gnu.emacs.help@gnu.org> (raw)


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	other threads:[~2006-01-13 21:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=873bjrg5ns.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).