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

Business Health Check
Hello

I need to create an online business health check for a client it will be multiple choi

if php cookie set, show code...
Hi all.. I need to figure out this little snippet right quick.. seems like it should be easy enough

Inter Company -- Resources Related Billing (Services Industry)
Hello,

My company has a scenario where:
Company A bills Company C for INTER (cross

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

Restricted access to sub-folder in iis6 doesn't work?
Basically I'm trying to add restriction to sub-folder (which contains pdf) in web.config for iis6 as

BSP Ext - tableView - Sort - NEWBIE
Hi,
I have been trying to get the sort to work. I have defined the column definitions by fillin

Whats wrong with my query?
I am trying to get this query to show the appropriate ticked vehicle roof height, unless no boxs are

Probably a simple error...
I'm getting the error -- Parse error: syntax error, unexpected '{' in /home/content/c/s/t/csteffen24

Problem with coding MySQL query
I'm having heaps of trouble getting one of my PHP/MySQL queries to work for some reason (and the fun

Simple email form - Newbie
Hello all,

First time poster!

I've been asked to create a simple HTML form that submit

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