?
Solved

Need to implement spell checker for the search tool on my website

Posted on 2008-06-10
3
Medium Priority
?
261 Views
Last Modified: 2013-11-19
The environment is PHP.

I need to implement a spell checker for the queries that users put in the search tool on my website. The website is a glossary. So, just like Google does it, if somebody types in a search query that might be misspelled, we say did you mean '[correct spelling]. I have looked at a number of ways to do this but I haven't found the perfect solution, so I was hoping somebody could tell me where can i get the best possible code to do this. Some things that I have looked at are:

http://lucene.apache.org/java/docs/index.html
http://innerblogger.com/code/2007/how-to-get-a-php-spell-checker-for-your-website/
http://www.1001line.net/spell-check/
http://google-tips-n-tricks.blogspot.com/2007/12/google-spellchecker.html
0
Comment
Question by:Igiwwa
3 Comments
 
LVL 6

Expert Comment

by:JapyDooge
ID: 21751171
If you want to write one yourself, have a look at the mysql-function LIKE
0
 

Author Comment

by:Igiwwa
ID: 21751187
no i don't want to do that, plus LIKE has limitations, the search query has to be a part of a word
0
 
LVL 10

Accepted Solution

by:
bluefezteam earned 1500 total points
ID: 21751252
http://sourceforge.net/projects/sphpell/

A FREE PHP spell checker that takes the text in a text field via javascript and spell checks it in its own window. The user can perform the usual spell checking operations (ignore, ignore all, change, change all, etc). Simple to include in any PHP page.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
The viewer will learn how to count occurrences of each item in an array.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
Suggested Courses
Course of the Month14 days, 13 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question