1. A method comprising: determining that a user is using an input method editor (IME) to input one or more input candidates into a first user interface of a first computer application; determining a first scenario of the first computer application that the IME is to input the one or more candidates into; determining a query input by the user into a user interface of the IME; determining, based on the first scenario of the first computer application and the query, first scores for different types of input candidates, each first score indicating a likelihood that a respective type of input candidate is associated with a context of the first scenario and the query; determining, based at least in part on the first scores, a desired first type of input candidate from the types of input candidates to be presented at the user interface of the IME; identifying or generating a first set of input candidates at least partly based on a first relevancy of individual input candidates of the first set of input candidates to the first scenario, the query, and the desired first type of input candidate; presenting the first set of input candidates via the user interface of the IME; receiving a first selection of at least one input candidate of the first set of input candidates; inputting the selected at least one input candidate into the first user interface of the first computer application, the first computer application being separate from the IME; determining that the user has entered the query into the user interface of the IME to input one or more second input candidates into a second user interface of a second computer application, the second computer application being separate from the first computer application and the IME; determining a second scenario of the second computer application that the IME is to input the one or more second candidates into; determining, based on the second scenario of the second computer application and the query, second scores for different types of input candidates, each second score indicating a likelihood that a respective type of input candidate is associated with a context of the second scenario and the query; and presenting based at least in part on the second scores, a second set of input candidates via the user interface of the IME, wherein at least one input candidate of the second set of input candidates is not included in the first set of input candidates.