Is there a way to detect the language of the data being entered via the input field?
The PHP Text_LanguageDetect library is able to detect 52 languages. It's unit-tested and installable via composer and PEAR.