View Issue Details

IDProjectCategoryView StatusLast Update
1897Composrsearchpublic2015-05-08 18:38
ReporterChris Graham Assigned ToChris Graham  
PrioritynormalSeverityfeature 
Status resolvedResolutionfixed 
Summary1897: Search correction suggestions for misspellings
DescriptionImplement 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.
Additional InformationServer will require pspell. Most good hosts have it.
TagsNo tags attached.
Attach Tags
Time estimation (hours)3
Sponsorship open

Sponsor

Date Added Member Amount Sponsored

Activities

Chris Graham

2015-05-08 14:06

administrator   ~2763

I am working on this now.

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.

Issue History

Date Modified Username Field Change