pspell_suggest

(csak PHP4 CVS)

pspell_suggest -- Suggest spellings of a word

Description

array pspell_suggest (int dictionary_link, string word)

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

Példa 1. Pspell_suggest()

  1 
  2 $pspell_link = pspell_new ("en");
  3 
  4 if (!pspell_check ($pspell_link, "testt")){
  5     $suggestions = pspell_suggest ($pspell_link, "testt");
  6 
  7     for ($i=0; $i < count ($suggestions); $i++) {
  8         echo "Possible spelling: " . $suggestions[$i] . "<br>"; 
  9     }
 10 }
 11