×

Two step method for correcting spelling of a word or phrase in a document

  • US 6,616,704 B1
  • Filed: 09/20/2000
  • Issued: 09/09/2003
  • Est. Priority Date: 09/20/2000
  • Status: Active Grant
First Claim
Patent Images

1. A method for correcting the spelling of a word or phrase in a document comprising the steps of:

  • applying an approximate method for eliminating some candidate words from consideration, without computing an exact edit distance between a given word whose spelling is to be corrected and any candidate word;

    followed by applying an exact method which computes an exact edit distance between the word whose spelling is to be corrected and each of the remaining candidate words, wherein G is a given word whose spelling is to be corrected and the approximate method comprises the steps of;

    pre-computing a vector Gpoll whose length is the number of letters in the alphabet from which G is constructed, the value of each component of Gpoll being a number of times a letter corresponding to that component appears in G;

    iterating on the letters in the candidate word or phrase C to be processed by defining two integers Cval which counts a number of letters already considered in C which do not appear in G, and Gval which counts a number of letters in G which do not appear among the characters already considered in C;

    processing a next letter l in C by checking a count in a corresponding entry of Gpoll, and if that entry is positive, decrementing both Gval and the value of the lth component of Gpoll by one, but if that entry is zero, incrementing Cval by one;

    determining if Cval is larger than a maximal edit distance Δ

    , rejecting C from consideration; and

    continuing letter by letter until either C has been rejected or all its letters have been processed, and in the latter case, if Gval is larger than Δ

    , then rejecting C from consideration, but otherwise, accepting C, provided its actual distance from G is not more than Δ

    .

View all claims
  • 3 Assignments
Timeline View
Assignment View
    ×
    ×