Background:
- I would like to automatically detect the language written by the user in a field text.
- Users would write from 10 to 200 characters.
- Most are going to be Spanish and English.
- I’m programming a web with PHP and Code Igniter.
My solution: I’m using libraries. The best I’ve found is Text LanguageDetect 0.3.0. But it failures sometimes (even if I restrict the language set to Spanish and English).
Help/Advice:
Is it because the library is not so good? Do you know anyone better?
Or is it because I asking to much? Detect language with only 20 characters.
Thanks!
You could try to use Google Translate API, but this service non-free
http://code.google.com/apis/language/translate/v2/using_rest.html#detect-language