Good day! I am writing an application and I need to determine either the language already in the entered text (ru | en) or somehow define the keyboard language with which the user enters the text into the line. Does anyone know how this is done?
- In android, you can determine the locale, on it to make a conclusion about the language
- A more reliable way is to take the entered text and, for example, to check the first letter of a word with a dictionary, if it is in Russian, it means Russian, if in English ...
- Maybe as it is possible to load Google for autodetection of words of the language)
There is a special offer for this.
There is an alternative
In fact, it is quite difficult to find which
charset 's text belongs by the entered text. Google leads to several sources / ways