Patent attributes
Methods, systems, and computer programs are presented for estimating the language used in a user communication. One method includes an operation for utilizing counters to track use of languages by a user of an online service, the counters being updated based on interactions of the user in the online service. Further, the method includes operations for detecting a text entered by the user and obtaining, by a language classifier, an initial prediction having probabilities for the languages that the text is in the language. A language distribution prediction is calculated based on the initial prediction and the user counters, where the language distribution prediction comprises a probability, for each language, that the text is in the language. Further, the method includes operations for selecting a language used in the text based on the language distribution prediction and causing presentation on a display of a message in the selected language.