The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
While not exactly what you are looking for, I thought : couln't you get something approaching using the Soundex and other phonetic algorithms ? There seems to be a few different on the CPAN. And then, paf ! Serendipity and CPAN search brings you : Text::Approx Which looks a lot like a solution to your problem. And of course, if you have a function calculating Levensthein distance database side (which is relatively simple to write as stored procedure when it does not already exists), you could write something like: As an exemple, a postgresql PGSQL version can be found there, a MYSQL stored procedure doing that there, and an Oracle PL/SQL there. Please note that I did not check the correctness or efficiency of those implementations. An optimisation wasting space vs CPU would be to precompute the most distances for the most commonly used words and typos (my guess being that the most common typos for the most commonly used words would heavily be dominating the use cases). Thank you again CPAN. In reply to Re: Module to provide suggested terms for search?
by goupilInside
|
|