September 2001
Intermediate to advanced
768 pages
32h 45m
English
array pspell_suggest(int dictID, string word)
| dictID | Dictionary link ID |
| word | Word upon which to base suggestions |
Suggests alternate spelling(s) for a misspelled word.
Returns:
Array of suggested spellings; FALSE if an error occurs
Description:
This function accepts a (presumably misspelled) word and returns a list of suggested correct spellings. The list is taken from the default list in the dictionary being used, any additional replacement pairs provided via pspell_store_replacement(), and any personal replacement wordlists contained in personal wordlists if such are being used.
Example:
#!/usr/local/bin/php -q <?php error_reporting(E_ALL); if ($argc != 2) ... |
Read now
Unlock full access