A computer-implemented method and system for correcting text input from a
stochastic input source is provided. After a text component such as a
word or phrase is identified as erroneous where, for example, the
stochastic input source translated the input incorrectly, a list of
alternatives to the erroneous text component is provided to the user via
a user interface that pops up directly into the document being prepared.
The user begins editing the erroneous text component by typing directly
into the document or by spelling aloud, in the case of a speech
recognition device. As the user begins editing, the list of alternatives
is filtered to provide only alternatives that may match the user's
editing. With each additional character or letter entered by the user
during editing, the list is further filtered. A suggested completion for
the user's editing may be provided to the user by displaying the
suggestion directly in the document.