To add a feature like Google's Did You Mean in your PHP application a reasonable solution is to use PHP's pspell library.
This comes bundled with PHP (http://php.net/pspell). Compile PHP with the '--with-pspell' option but before this ensure that you have aspell (version 0.6 or above) already installed.
Custom dictionary can also be created for aspell but this will require the aspell-lang package. You can download the same from here.
Details on how to create your custom dictionary are available here under the 'Creating a Custom Language Dictionary' section.
1 comment:
Your blog keeps getting better and better! Your older articles are not as good as newer ones you have a lot more creativity and originality now keep it up!
Post a Comment