Patent ID: 7657423

Claim:
A method performed by one or more server or client devices, comprising: obtaining, using a processor associated with the one or more server or client devices, a text fragment; performing, using a processor associated with the one or more server or client devices, a search, based, at least in part, on the text fragment, to identify one or more documents; identifying, using a processor associated with the one or more server or client devices, sentences within the one or more documents that include the text fragment; determining, using a processor associated with the one or more server or client devices, sentence endings as text that is located within the identified sentences between the text fragment and an end of the identified sentences; assigning, using a processor associated with the one or more server or client devices, scores to the sentence endings based, at least in part, on a location within the identified sentences at which the text fragment occurs; and outputting, using a processor associated with the one or more server or client devices, the sentence endings as potential completions for the text fragment based, at least in part, on the scores.