aspell_suggest

(PHP 3>= 3.0.7, PHP 4 )

aspell_suggest -- Suggest spellings of a word

Description

array aspell_suggest (int dictionary_link, string word)

Aspell_suggest() returns an array of possible spellings for the given word.

Example 1. Aspell_suggest()


$aspell_link=aspell_new ("english");

if (!aspell_check ($aspell_link, "test")) {
    $suggestions=aspell_suggest ($aspell_link, "test");

    for ($i=0; $i < count ($suggestions); $i++) {
        echo "Possible spelling: " . $suggestions[$i] . "<br>"; 
    }
}