Hi!

it generally makes no sense to search fuzzy for short tokens because changing 
even only a single character of course already results in a high edit 
distance. So it actually only makes sense in this case:

           if( token.length() > 1f / (1f - minSimilarity) )

E.g. changing one character in a 3-letter token (foo) results in an edit 
distance of 0.6. And if minSimilarity (which is by default: 0.5 :-) is higher 
we can save all the expensive rewrite() logic.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to