PSPELL_SUGGEST(3) 1 PSPELL_SUGGEST(3)
pspell_suggest - Suggest spellings of a word
SYNOPSIS
array pspell_suggest (int $dictionary_link, string $word)
DESCRIPTION
pspell_suggest(3) returns an array of possible spellings for the given word.
PARAMETERS
o $dictionary_link
-
o $word
- The tested word.
RETURN VALUES
Returns an array of possible spellings.
EXAMPLES
Example #1
pspell_suggest(3) example
<?php
$pspell_link = pspell_new("en");
if (!pspell_check($pspell_link, "testt")) {
$suggestions = pspell_suggest($pspell_link, "testt");
foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion<br />";
}
}
?>
PHP Documentation Group PSPELL_SUGGEST(3)