Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-45

Soundex does not have the "difference" Algorithm

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.3
    • None
    • Operating System: All
      Platform: All

    • 25243

    Description

      The "Difference" algorithm which computes the difference factor between two
      soundex strings is not in the Soundex and RefinedSoundex classes. The
      difference algorithm takes two soundex encoded strings, and for every character
      in the encoded strings that matches, the difference factor increases by 1.

      So 0 is the worst, which indicates that there is no match
      4 is the best (for normal soundex).

      For the refined soundex, it should compare as many characters are as present
      in the shorter of the two strings, and use the same algorithm as above (though
      the max is no longer capped at 4)

      Attachments

        Activity

          People

            Unassigned Unassigned
            mattinger@yahoo.com Matthew Inger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: