Patent ID: 8606561

Claim:
A method for composing a reply to a text message received in a messaging application in a system including an input method editor, wherein the input method editor has an independent input language setting for each individual one of a plurality of applications including the messaging application, the method comprising: identifying the language of a received text message by comparing text contents of the received text message to at least one dictionary to find matches between sets of characters in the text contents of the received text message and corresponding individual entries in the dictionary, and wherein the identifying of the language of the received text message is responsive to a total number of matches found; comparing the identified language to a current input language setting associated with the messaging application in the input method editor; leaving the input language setting associated with the messaging application in the input method editor as a default language for the system responsive to the user deleting the received message; automatically changing the input language setting associated with the messaging application in the input method editor to the identified language responsive to a user of the messaging application indicating an intention to reply to the received text message by opening a reply window for input of a reply to the received message; detecting that the user of the messaging application has exited the messaging application and begun interacting with another application program; and in response to detecting that the user of the messaging application has exited the message application and begun interacting with the other application program, automatically changing the input language of the input method editor to an input language associated with the other application program in the input method editor.