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

Number Format
Hi All,

I have number '000000000050085' I want to format it to 500.85 Can any one give me

Email with Attachments in PHP
Hi Friends

How to send email in PHP with attachment.
I know simple mail can be sent with

Sending an SMS Message with ASP.NET
Often times it may be a requirement for your web application to send an SMS message. Such examples w

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

Unable to customise toolbar in FCK
Displaying values from a SQL count...
Hi,
Easy enough question i just forget the exact method ..
I have ...

Code: //count win

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

"From field" in PHP email form
I used a wizard to create a PHP email form. I was able to customize it with the exception of the Fr

a function to check directory depth
I'm working on a php script to upload files in to a set directory.
the user can select to upload

Something Non-Traditional. Can we solve?
I have an idea for an application here. It's mostly flash, but it couldn't work without a somewhat n

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