Jump to content

Pspell with my own dictionary


marciano

Recommended Posts

Hello!

I've tested two cases using pspell functions.

1)

$dictionary_link = pspell_new_personal ("/.../MyDict","es", "", "", "", PSPELL_FAST);

2)

$pspell_config = pspell_config_create("es");
pspell_config_ignore($pspell_config, 4); 
pspell_config_personal($pspell_config, "/.../MyDict");
$dictionary_link = pspell_new_config($pspell_config);

 

if (!pspell_check($dictionary_link, $words)) {
    $suggestions = pspell_suggest($dictionary_link, $words);
    foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion<br />";
}
    }

 

All suggestions are displayed in both cases with 'es' dictionary words increased with MyDict.

My question is about pspell ONLY uses words contained in MY dictionary MyDict.

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/177449-pspell-with-my-own-dictionary/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.