aspell_suggest

(PHP3 >= 3.0.7, PHP4 )

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.

Példa 1. Aspell_suggest()

  1 
  2 $aspell_link=aspell_new ("english");
  3 
  4 if (!aspell_check ($aspell_link, "test")) {
  5     $suggestions=aspell_suggest ($aspell_link, "test");
  6 
  7     for ($i=0; $i < count ($suggestions); $i++) {
  8         echo "Possible spelling: " . $suggestions[$i] . "<br>"; 
  9     }
 10 }
 11