Pspell with my own dictionary


Posted on 16th Feb 2014 07:03 pm by admin

Hello!
I've tested two cases using pspell functions.
1)
Code: $dictionary_link = pspell_new_personal ("/.../MyDict","es", "", "", "", PSPELL_FAST);2)
Code: $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);
Code: 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.

No comments posted yet

Your Answer:

Login to answer
348 Like 39 Dislike
Previous forums Next forums
Other forums

matching numbers inside ( )
I know I can match numbers by just [0-9]+, so I thought matching numbers inside ( ) would be somethi

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

PHP Redirecting
Hello everyone. Is there a way to redirect people to pages within a statement in PHP? Since there is

need to apply an if/else statement to Tim Thumb script
Not sure how to work this. I essentially want to call a variety of image sizes based on which style

text box alphanumeric caracters only
hi all!

I have search on google on how to enter in a test box only caracters A-Z,a-z,0-9 usi

Email Script does not reach destination
Hey Guys look at this code snippet :
Code:
//read a line from the file

$myFile = "

I need help on this PHP code
Hi everybody, I made some kind of mistake while editing the code below. As you see, at the 3 row my

Need help: how to catch acess of undefined class properties
Hello. I am learning OO with PHP and have hit a problem.
Some code runs as perfectly valid code,

Unexpected T_Variable ?
Hi all,
I dont really know what I am doing!! I know I'm doing something wrong, and I know its on

help removing unwanted graphic
How do I remove the small elongated rectangular shape between the "Latest post" and "

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash