in reply to Re^4: Getting matched word from String::Approx
in thread Getting matched word from String::Approx

Depends on your definition of "appropriate and -- if you're writing this for a third party, what the third party considers "appropriate."

Matches such as you listed don't give me any heartburn... except, that is, the annoyance which grows out of getting [some|many|mostly} irrelevant responses to straightforward search terms.

And there are obvious approximate matches that may annoy some of your hypothetical users. But stop without reading more if scatological phrases bother you.

Consider: should your user type "fort" would "fart" be an appropriate response? How about close matches for "shut?"

And what if your user-entered word matches something offensive in another language? These are just a few of the issues you need to resolve.

Quis custodiet ipsos custodes. Juvenal, Satires

  • Comment on Re^5: Getting matched word from String::Approx

Replies are listed 'Best First'.
Re^6: Getting matched word from String::Approx
by Anonymous Monk on Jan 01, 2016 at 02:34 UTC

    Thanks for responding, ww.

    I don't really know but I suspect a response that suggests possible words of the mistyped word is more helpful that one than one that says "Your search string does not match any product.", for example. Especially if the user doesn't know the exact spelling of the word?