1. A method comprising: determining that a user is using an input method editor (IME) to input one or more input candidates into a user interface of a computer application; determining a scenario of an input of the user; determining one or more queries input by the user into a user interface of the IME; determining a desired type of input candidate to be presented at the user interface of the IME at least partly based on the scenario; and identifying or generating the one or more input candidates at least partly based on their relevancies to the scenario, the queries, and the desired type of input candidates.