From Servage Wiki
Jump to: navigation, search

Aspell is a spell checker designed to eventually replace Ispell. Its main feature is that it does a superior job of suggesting possible replacements for a misspelled word than just about any other spell checker out there for the English language. Aspell can also easily check documents in UTF-8 without having to use a special dictionary. Aspell will also do its best to respect the current locale setting. Aspell also includes support for using multiple dictionaries at once and intelligently handling personal dictionaries when more than one Aspell process is open at once.

How do I use Aspell in PHP?

Pspell will help you using Aspell in PHP. An example using Pspell to check a word:

$pspell_link = pspell_new("en");

if (pspell_check($pspell_link, "testt")) {
    echo "This is a valid spelling";
} else {
    echo "Sorry, wrong spelling";

This will show "Sorry, wrong spelling" on screen.

Personal tools