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)
Did you know?Explore Trending and Topic pages for more stories like this.
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

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

Consuming third party Payment Gateway API from Procedure.
Hi All,

First of all i would like to thank all the people of the oracle forum for providi

Checkbox info wont include in Mailto
Hey, im new to php.
Basically I have made a form to request which type of job(s) are needed, whic

checkbox update
I am having a brain fart right now and i cant remember how to do this. if anyone could help that wou

At max how many columns is advisable to create in a table/view
Hi All,
I have two transaction table from which i want to create a simple view or material

mysq_num_rows
Hi,

I want to use:

Code: if(mysql_num_rows($ergebnis2)==2)
how can the value 2, be

background color imagefill
Hello

I would like to ask you why I see this square in red color just in my local xampp insta

Php Mysql Page Loading Notice
Hi all,

I was wondering if there is a way (Sure there is) of showing a message or an image wh

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

close site for maintenance
i get a tutorial, saying the following code can put our site offline, and only the developer can vie

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