Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.2
-
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)