pspell_store_replacement
(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_store_replacement — Store a replacement pair for a word
Parameters
dictionary
-
An PSpell\Dictionary instance.
misspelled
-
The misspelled word.
correct
-
The fixed spelling for the misspelled word.
Return Values
Returns true on success or false on failure.
Examples
Example #1 pspell_store_replacement()
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl");
$pspell = pspell_new_config($pspell_config);
pspell_store_replacement($pspell, $misspelled, $correct);
pspell_save_wordlist($pspell);
?>
Notes
Note:
This function will not work unless you have pspell .11.2 and aspell .32.5
or later.