langdetect

http://code.google.com/p/language-detection/