Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Module to provide suggested terms for search?

by punch_card_don (Curate)
on Jun 27, 2008 at 19:02 UTC ( [id://694431]=note: print w/replies, xml ) Need Help??


in reply to Re: Module to provide suggested terms for search?
in thread Module to provide suggested terms for search?

Well, that's the thing. I think users are getting used to seeing Google's "Did you mean...?" and imagine it's a trivial piece of technology to ask for.
  • Comment on Re^2: Module to provide suggested terms for search?

Replies are listed 'Best First'.
Re^3: Module to provide suggested terms for search?
by samtregar (Abbot) on Jun 27, 2008 at 20:36 UTC
    And it's your job to disabuse them of that notion. Start with a thought experiment - "How much do you think Google paid to develop that feature?" Most people realize that Google has more money than God, so that might get them thinking...

    -sam

      Nah. You were right before. It's not quite trivial but it's not that hard either. You have two fronts to attack it. Double metaphone, like you said before, and just load up a mirror of your DB index with metaphone versions. IMDb, for example, does this with actor names. And the other is just to run the search through aspell or ispell. If something is spelled wrong and is not found in the DB index, suggest correctly spelled terms that are known to be in the index.

      update: hadn't read ahead when I wrote this to see that creamygoodness also suggested Aspell already. Wasn't trying to steal any ideas. :)

        Sounds good. If you have the time, why not make it into a CPAN module? Could be a fun plugin for CGI::Application::Search.

        -sam

Re^3: Module to provide suggested terms for search?
by fernandes (Monk) on Jun 30, 2008 at 21:27 UTC
    I work with this kind of chalenge on my PhD thesis. But, considering this is not a complete perl related subject, I will not post about here now. If you or other wanna talk again, send private message.
    On the semantic aproach, it can be done, and is not so difficult. There are some Perl modules to help too.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://694431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 19:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found