|Think about Loose Coupling|
Module to provide suggested terms for search?by punch_card_don (Curate)
|on Jun 27, 2008 at 18:07 UTC||Need Help??|
punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
Working on a simple SQL db search using the DBI. Client wants the system to provide "suggestions" of "similar" or "related" words for user to try if zero results for the input search term.
What the client thinks is a little side-request looks to me like a major word-clustering project in itself if I roll my own. I'll need code to take every word in the db and go through a dictionary of similar (ex: input="car", did you mean "care? or scar? or cart?.....) or related (vehicle, automobile...) words, compile all that into a nother table for recall.......
Or is there something out there already that has figured all this out?
Forget that fear of gravity,
Get a little savagery in your life.