ENCHANT_DICT_QUICK_CHECK(3) 1 ENCHANT_DICT_QUICK_CHECK(3)enchant_dict_quick_check - Check the word is correctly spelled and provide suggestionsSYNOPSIS
bool enchant_dict_quick_check (resource $dict, string $word, [array &$suggestions])
DESCRIPTION
If the word is correctly spelled return TRUE, otherwise return FALSE, if suggestions variable is provided, fill it with spelling alterna-
tives.
PARAMETERS
o $dict
- Dictionary resource
o $word
- The word to check
o $suggestions
- If the word is not correctly spelled, this variable will contain an array of suggestions.
RETURN VALUES
Returns TRUE if the word is correctly spelled or FALSE
EXAMPLES
Example #1
A enchant_dict_quick_check(3) example
<?php
$tag = 'en_US';
$r = enchant_broker_init();
if (enchant_broker_dict_exists($r,$tag)) {
$d = enchant_broker_request_dict($r, $tag);
enchant_dict_quick_check($d, 'soong', $suggs);
print_r($suggs);
}
?>
The above example will output something similar to:
Array
(
[0] => song
[1] => snog
[2] => soon
[3] => Sang
[4] => Sung
[5] => sang
[6] => sung
[7] => sponge
[8] => spongy
[9] => snag
[10] => snug
[11] => sonic
[12] => sing
[13] => songs
[14] => Son
[15] => Sonja
[16] => Synge
[17] => son
[18] => Sejong
[19] => sarong
[20] => sooner
[21] => Sony
[22] => sown
[23] => scone
[24] => song's
)
SEE ALSO enchant_dict_check(3), enchant_dict_suggest(3).
PHP Documentation Group ENCHANT_DICT_QUICK_CHECK(3)
Check Out this Related Man Page
PSPELL_ADD_TO_PERSONAL(3) 1 PSPELL_ADD_TO_PERSONAL(3)pspell_add_to_personal - Add the word to a personal wordlistSYNOPSIS
bool pspell_add_to_personal (int $dictionary_link, string $word)
DESCRIPTION pspell_add_to_personal(3) adds a word to the personal wordlist. If you used pspell_new_config(3) with pspell_config_personal(3) to open the
dictionary, you can save the wordlist later with pspell_save_wordlist(3).
PARAMETERS
o $dictionary_link
-
o $word
- The added word.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
pspell_add_to_personal(3)
<?php
$pspell_config = pspell_config_create("en");
pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws");
$pspell_link = pspell_new_config($pspell_config);
pspell_add_to_personal($pspell_link, "Vlad");
pspell_save_wordlist($pspell_link);
?>
NOTES
Note
This function will not work unless you have pspell .11.2 and aspell .32.5 or later.
PHP Documentation Group PSPELL_ADD_TO_PERSONAL(3)
hello. I'm fairly new to unix and have a few script writing questions for any experienced users. However, my computer is a mac so I need commands that will run in a macosx terminal.
ok:
q1) im writing a script where I want to get the history in the terminal and then write it to a specific text... (9 Replies)
Hi all,
Looking for suggestions on a better way to sum numbers in a key value pair formated file. What I have works but seems really clunky to me. Any suggestions would be greatly appreciated.
cat test.txt | perl -ne 'm/(M=)(\d+\.?\d?\d?)/ && print "$2\n"' | awk '{ sum+=$1} END {printf... (7 Replies)
Hello Experts,
Can you please help me by providing a code which can give me the complete path except last word in a variable, the variable i can use anywhere else for my operation
eg:
if this below one is my path:
... (3 Replies)
Hi all I have 7 words ina file called "lookupfile"
CAD
CD
HT
RA
T1D
T2D
BD
in other file I have data like this in which columns are seaprated by comma but the names among above seven names are in one column menas comma between these seven words doesnt mean that they are separated by... (9 Replies)
Hi all
I have following file which I have to edit for research purpose
file:///tmp/moz-screenshot.png body, div, table, thead, tbody, tfoot, tr, th, td, p { font-family: "Liberation Sans"; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
Hi I have a sequence which looks like this
# PH01000000
PH01000000G0240 P.he_genemodel_v1.0 CDS 120721 121773 . - . ID=PH01000000G0240.CDS;Parent=PH01000000G0240
PH01000001G0190 P.he_genemodel_v1.0 mRA 136867 137309 . - . ID=PH01000001G0190.mRNA;Parent=PH01000001G0190... (7 Replies)
Hi,
I need to edit a shell script which is calling another shell script. At the moment the program returns to the command prompt after executing each called script. I need to change it to make it return to the calling script so that the user is able to make another choice to execute the next... (11 Replies)
Hi,
I would like to read a file line by line and then store the whole line word by word in array so that I can do specific manipulation on each word.
$ cat test.txt
hello how are you
i am good
I would like to have an array created dynamically so that first time , the... (4 Replies)
Hi everyone!
I'm having difficulties setting up a complex script with nested if statements while doing some word extracts, any help is appreciated.
Scenario:
1- Check if the file.txt has the word BINGO
2- If so then get the available number (any number) in the line that contains the word... (8 Replies)
This is my code
cat /path/file |
while read host
do
echo "\nPINGING $host"
ip=`eval "$host | cut -c14-28"`
echo $ip
ping $ip
sleep 2
done
the file contains a list of hostnames and IP addresses in format
HOSTNAMEXXXX,168.192.100.150 (10 Replies)
Hi All,
I'm trying to come up a way to check the output of some data i have. I need to be able to check for the order of the output and if its correct set a variable to false if it isnt.
Currently the data is in the below format, this is the value which should cause the variable be set... (4 Replies)
I am trying to figure out to find word count of each word from my file
sample file
hi how are you
hi are you ok
sample out put
hi 1
how 1
are 1
you 1
hi 1
are 1
you 1
ok 1
wc -l filename is not helping , i think we will have to split the lines and count and then print and also... (4 Replies)
Hello there
so i have a txt file containing word like "one two three four plus four five six".
I want to save every word in the file into a variable, and then use that variable to generate real numbers and apply the arithmetic value on them.
example: the txt files becomes 123 + 456 and... (10 Replies)