Re: [rules-users] Anybody using Drools 4.0 with approximate string matching?

2007-09-03 Thread Michael Neale
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

Re: [rules-users] Anybody using Drools 4.0 with approximate string matching?

2007-09-03 Thread Michael Neale
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

[rules-users] Anybody using Drools 4.0 with approximate string matching?

2007-09-03 Thread Irving Reid
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