Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

enchant_dict_quick_check(3) [php man page]

ENCHANT_DICT_QUICK_CHECK(3)						 1					       ENCHANT_DICT_QUICK_CHECK(3)

enchant_dict_quick_check - Check the word is correctly spelled and provide suggestions

SYNOPSIS
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_CONFIG_MODE(3)							 1						     PSPELL_CONFIG_MODE(3)

pspell_config_mode - Change the mode number of suggestions returned

SYNOPSIS
bool pspell_config_mode (int $dictionary_link, int $mode) DESCRIPTION
pspell_config_mode(3) should be used on a config before calling pspell_new_config(3). This function determines how many suggestions will be returned by pspell_suggest(3). PARAMETERS
o $dictionary_link - o $mode - The mode parameter is the mode in which spellchecker will work. There are several modes available: o PSPELL_FAST - Fast mode (least number of suggestions) o PSPELL_NORMAL - Normal mode (more suggestions) o PSPELL_BAD_SPELLERS - Slow mode (a lot of suggestions) RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 pspell_config_mode(3) Example <?php $pspell_config = pspell_config_create("en"); pspell_config_mode($pspell_config, PSPELL_FAST); $pspell_link = pspell_new_config($pspell_config); pspell_check($pspell_link, "thecat"); ?> PHP Documentation Group PSPELL_CONFIG_MODE(3)
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

some questions...

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)
Discussion started by: Blip
9 Replies

2. Shell Programming and Scripting

Summing numbers after specific word

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)
Discussion started by: cgol
7 Replies

3. UNIX for Dummies Questions & Answers

How to get complete path in variable excluding last word?

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)
Discussion started by: aks_1902
3 Replies

4. Shell Programming and Scripting

Match word and put data before it

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)
Discussion started by: manigrover
9 Replies

5. Shell Programming and Scripting

Fetch entries in front of specific word till next word

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: &quot;Liberation Sans&quot;; font-size: x-small; } Drug: KRP-104 QD Drug: Placebo Drug: Metformin|Drug:... (15 Replies)
Discussion started by: Priyanka Chopra
15 Replies

6. UNIX for Dummies Questions & Answers

Split command

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)
Discussion started by: siya@
7 Replies

7. Shell Programming and Scripting

How to return programming to calling shell script?

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)
Discussion started by: PTL
11 Replies

8. Shell Programming and Scripting

Read line by line and store a word in array

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)
Discussion started by: ashwin3086
4 Replies

9. Shell Programming and Scripting

Nested if statements with word/number extracts

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)
Discussion started by: demmel
8 Replies

10. War Stories

Unex

Has anyone worked on unix projects where they see unix mis-spelled as unex or unyx in the workplace? (6 Replies)
Discussion started by: Neo
6 Replies

11. Shell Programming and Scripting

How to do I manipulate a variable in a do loop?

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)
Discussion started by: ditnl555v
10 Replies

12. UNIX for Dummies Questions & Answers

Output checker setting variable to TRUE or FALSE

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)
Discussion started by: mutley2202
4 Replies

13. UNIX for Beginners Questions & Answers

UNIX script to check word count of each word in file

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)
Discussion started by: mirwasim
4 Replies

14. Shell Programming and Scripting

Read a file and save every word in a variable to use

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)
Discussion started by: azaiiez
10 Replies