It appears you have not yet registered with our community. To register please click here...


The "Did you mean" feature

This is a discussion on The "Did you mean" feature within the PHP & MySQL forums. Topic: Hello, I want to add the 'did you mean' feature (like on Google) on my shareware site, where a lot ...


Reply
 
Postbit Seperator LinkBack Thread Tools Postbit Seperator Display Modes
Old 03-20-2008, 09:37 AM   #1 (permalink)
 
Status: Junior Member
Join Date: Mar 2008
Posts: 1
Trader Rating: (0)
lucym is on a distinguished road
TD$: 20.00
Donate
Default The "Did you mean" feature
Hello, I want to add the 'did you mean' feature (like on Google) on my shareware site, where a lot of users have mistypes, and they get 0 results... so they exit the site very fast. Do you have any idea how I could implement such a thing? Does it require a dictionary or something? I found some scripts, but none of them gave relevant results... just stupid, irrelevant suggestions. Any help would be appreciated... some sample code would be awesome
Thanks, Lucy
lucym is offline   Reply With Quote
Old 01-02-2009, 07:00 PM   #2 (permalink)
 
Status: Administrator
Join Date: Jul 2008
Location: Pittsburgh
Posts: 6
Trader Rating: (0)
Chris is on a distinguished road
TD$: 45.00
Donate
Default Re: The "Did you mean" feature
Sample code is a long shot. This kind of programming can be quite advanced, and unfortunately will almost certainly require custom work.

The only type that is all that common, or one-size-fits-all, is the auto-complete type that uses AJAX to check for matches based on what the user has typed so far. But picking up on misspellings and such can be a lot trickier.

I wrote something not unlike this awhile back that allowed me to manually enter common misspellings and look for those, but that's about as good as it's going to get without getting into a lot of work. Also wrote a function which automatically flips every two characters to check for transposition errors, as well, but still, that's a lot simpler than what you're looking for.
Chris is offline   Reply With Quote
Table Bottom LeftTable BottomTable Bottom Right
Reply


Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a camera available with a digital backdrop feature, such as one that you wou christorre Graphics Discussion 0 09-12-2007 08:46 AM


Home | Site Map | Contact | Archive | Top

 

Copyright © 2007 - 2010 iTalkWebs Network

Search Engine Optimization by vBSEO 3.1.0