1

I am looking to possibly add in some sort of spellchecking/correction in PHP, is there anything that is recommended?

Is this a slow process? It would be for user submitted blog posts and forum post, possibly even just be used in an admin area if performance is not good.

asked Aug 19, 2009 at 23:40

2 Answers 2

4

There's the Pspell libraries in PHP, but also don't forget that most modern browsers these days come with a built-in spell checker which would be:

  1. A lot more intuitive to the user (works just like Word and every other desktop app)
  2. Able to be extended with the user adding words to their own dictionaries
  3. A heck of a lot less work for you.

The performance I don't think would be an issue, it's just that you'd have to make your own interface for getting the user to select the correct spelling for every misspelt word, etc.

answered Aug 19, 2009 at 23:42
Sign up to request clarification or add additional context in comments.

1 Comment

good points, I almost just wanna do it for fun, not production
1

tinyMCE has a spellchecker plugin that works with Google's free spellchecking service. Fairly easy to setup and doesn't have any server-side dependencies other than the openssl extension for PHP and possibly curl. I prefer this because it doesn't involving installing any other server-side libraries like Pspell.

Check out the plugin in action on the examples and tinyMCE download page for a copy of the spellchecker plugin. (I'm not sure if the spellcheck on the example page is using Google or a server-side library like pspell, but the behavior is identical).

answered Aug 20, 2009 at 1:07

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.