1. A method comprising: identifying, by one or more processors, sentences, within one or more documents, the sentences including text included in a query; determining, by one or more processors and from the identified sentences, completions for the query, the determining including merging similar completions into a single completion; assigning, by the one or more processors, scores to the completions based on locations within the identified sentences at which the text occurs; and selecting, by one or more processors, a set of completions, of the determined completions, as potential completions for the query based on the scores.