(PHP 4 >= 4.0.2, PHP 5, PHP 7)
Suggest spellings of a word
array pspell_suggest ( int $dictionary_link, string $word )
pspell_suggest() returns an array of possible spellings for the given word.
Parameters:
dictionary_link
pspell_suggest() returns an array of possible spellings for the given word.
word
The tested word.
Returns:
Returns an array of possible spellings.
Examples:
pspell_suggest() example
1 2 3 4 5 6 7 8 9 10 11 | <?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 />" ; } } ?> |
Please login to continue.