2. A method as recited in claim 1 , wherein generating the first set of input candidates further comprises ranking two or more input candidates of the first set of input candidates at least partly based on the relevancy of the two or more input candidates to the first scenario.
1. A method comprising: determining that a query has been entered into a first user interface of a first computer application, the query comprising one or more input candidates; determining a first scenario of the first computer application; determining, based at least partly on the query and the first scenario of the first computer application, first scores for different types of input candidates; determining, based at least in part on the first scores, a desired first type of input candidate from the different types of input candidates to be presented by an input method editor (IME); 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 IME; determining that the query has been entered 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; determining, based on the second scenario of the second computer application and the query, second scores for different types of input candidates; and presenting based at least in part on the second scores, a second set of input candidates via 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.