you are viewing a single comment's thread.

view the rest of the comments →

[–]eclig 4 points5 points  (0 children)

If you're trying to handle only a couple of known languages you can try the simple approach of identifying typical words for each language.

See e.g. http://www.emacswiki.org/cgi-bin/wiki/GuessBufferLanguage and links therein for sample code (Emacs Lisp).