A computer-implemented method for determining whether a target text-string
is correctly spelled is provided. The target text-string is compared to a
corpus to determine a set of contexts which each include an occurrence of
the target text-string. Using heuristics, each context of the set is
characterized based on occurrences in the corpus of the target
text-string and a reference text-string. Contexts are characterized as
including a correct spelling of the target text-string, an incorrect
spelling of the reference text-string, or including an indeterminate
usage of the target text-string. A likelihood that the target text-string
is a misspelling of the reference text-string is computed as a function
of the quantity of contexts including a correct spelling of the target
text-string and the quantity of contexts including an incorrect spelling
of a reference text-string. In one application, the target text-string is
received in a search query, the search executed following a spell-check.