I think you should clean room implement it (or reuse some old code of yours if it is safe to do so). From what I have seen of the algorithm - it isn't huge - and it would make sense to have it re-implemented. As an alternative - consider taking a look at the MVEL soundex code and rewriting that - and we will see if we can make it upstream. I would say it is just slightly neglected - its not well known that it lives there. Using the MVEL one was just opportunistic for drools.
The implementation of "soundslilke" is broken in more than one respect. The conversion of a word to a Soundex string is provided by org.mvel2.util.Soundex.
(.) There are words where Soundex.soundex returns null, so that the calling code, in Drools, crashes with a NPE.
(.) The algorithm implemented in Soundex is erroneous. I'm not sure which Soundex algorithm it is supposed to implement, but it just doesn't meet the basic requirements.
I have implemented, correctly, the version for the National Archives and Records Administration (NARA) rule set for the official implementation of Soundex used by the U.S. Government.
Do we wait for MVEL to correct this bug, or do we just replace it with a correct implementation?
Regards
Wolfgang
_______________________________________________
rules-dev mailing list
rules-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev