Also, there is strsim: http://mvel.codehaus.org/String+Similarity+Check
so you can do
Something( eval( (field strsim "blah") > 0.9 ) )
(or something like that anyway - to look for similarity rating). But I think
soundex is what you really want.
On 9/4/07, Michael Neale <[EMAIL PROTECTED]> wrote
Hi Irving. That is a very interesting and kind of cool problem.
Happily, Mike Brock who built MVEL, which is part of drools, embeded soundex
into it.
So you can do (and I just tried this):
rule "Hello World"
when
c : Cheese( eval(type soundslike "foobar") )
then
c.setPrice
I have a use case where we'd like to match free text strings, with words
sometimes spelled incorrectly. Has anyone tried Drools with an approximate
string matcher (http://en.wikipedia.org/wiki/Approximate_string_matching)?
I know that I can use regular expressions to match some common spelling e