PHP.nl

pspell_config_mode

pspell_config_mode

Change the mode number of suggestions returned

bool **pspell_config_mode** PSpell\Config $config int $mode
should be used on a config

before calling . This function determines how many suggestions will be returned by . pspell_config_mode``pspell_new_config``pspell_suggest

config``mode The mode parameter is the mode in which spellchecker will work. There are several modes available:

  - - Fast mode (least number of           suggestions)          `PSPELL_FAST`
    • Normal mode (more suggestions) PSPELL_NORMAL
    • Slow mode (a lot of suggestions) PSPELL_BAD_SPELLERS

return.success

Voorbeeld: Example

<?php
$pspell_config = pspell_config_create("en");
pspell_config_mode($pspell_config, PSPELL_FAST);
$pspell = pspell_new_config($pspell_config);
pspell_check($pspell, "thecat");
?>