Here is the C# source with the improved Soundex and DoubleMetaphone algorithms. There are two versions of DM, the original returning a string and a numeric version that returns an integer calculated from the string. The idea of this was to make long series of comparisons faster as numeric comparisons are faster than string comparisons. However this is not necessarily true for B4ppc as it holds integers as strings anyway and converts them for comparisons so there will be little, if any, speed benefit.
EDIT:- Obsolete source code removed from this post. The latest version is with the library in the first post of this thread.
Last edited by agraham : 09-18-2008 at 08:41 AM.
|