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

Bug in HW rule in Soundex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10
    • 1.11
    • None

    Description

      The Soundex algorithm says that if two characters that map to the same code are separated by H or W, the second one is not encoded.
      However, in the implementation (in Soundex.getMappingCode() line 191), a character that is preceded by two characters that are either H or W, is not encoded, regardless of what the last consonant was.
      Source: http://en.wikipedia.org/wiki/Soundex#American_Soundex

      Attachments

        1. soundex.patch
          2 kB
          Yossi Tamari
        2. better.patch
          3 kB
          Yossi Tamari

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yossi Yossi Tamari
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: