#1897 - Search correction suggestions for misspellings
| Identifier | #1897 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Search correction suggestions for misspellings |
| Status | Completed |
| Handling member | Chris Graham |
| Addon | search |
| Description | Implement a “Did you mean?” when doing a search, that proposes doing a search with all non-words that are not defined as keywords somewhere, automatically spell corrected, using pspell (http://php.net/manual/en/function.pspell-suggest.php).
This does not run immediately like on Google, but it meets the user half way - advising them they *might* have done an error, and giving a one-click remedy for that. |
| Steps to reproduce | |
| Additional information | Server will require pspell. Most good hosts have it. |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
My research shows actually PHP's pspell extension is based on aspell (which replaced pspell), but that actually pspell has not been maintained for a few years and is replaced largely by hunspell.
Therefore I'm going to overhaul all the spellchecking we do to go through a new mini-library and let it use either the pspell PHP extension, or the enchant PHP extension (which supports hunspell and other spell checkers). We will drop support for calling aspell executables directly as this was always horrendous/unreliable and made a mess of our spellchecking code. Plus the code was inherited and heavily modified from a WYSIWYG editor we don't even use now, so was poorly integrated with our overall architecture. Every decent host should have either the PHP pspell or enchant extensions. Arvixe has pspell.