Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pspell_config_mode(3) [php 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)

Check Out this Related Man Page

PSPELL_NEW_CONFIG(3)							 1						      PSPELL_NEW_CONFIG(3)

pspell_new_config - Load a new dictionary with settings based on a given config

SYNOPSIS
int pspell_new_config (int $config) DESCRIPTION
pspell_new_config(3) opens up a new dictionary with settings specified in a config, created with pspell_config_create(3) and modified with pspell_config_*(3) functions. This method provides you with the most flexibility and has all the functionality provided by pspell_new(3) and pspell_new_personal(3). PARAMETERS
o $config - The $config parameter is the one returned by pspell_config_create(3) when the config was created. RETURN VALUES
Returns a dictionary link identifier on success. EXAMPLES
Example #1 pspell_new_config(3) <?php $pspell_config = pspell_config_create("en"); pspell_config_personal($pspell_config, "/var/dictionaries/custom.pws"); pspell_config_repl($pspell_config, "/var/dictionaries/custom.repl"); $pspell_link = pspell_new_config($pspell_config); ?> PHP Documentation Group PSPELL_NEW_CONFIG(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. UNIX for Advanced & Expert Users

Problem booting unix

Hello, We had a system shutdown last night and now the server won't boot because of volume is seriously damaged (this affects all volumes). Any suggestions on how to repair. Any suggestions welcome Thanks (1 Reply)
Discussion started by: bobman
1 Replies

3. Programming

Add IpAddress Through Programatically

Hi all, Can u give me some suggestions how to add Ip Address through Programmatically , Actually I done it in Windows But now I want same thing in Unix................................ Can Any body Help to me....... (6 Replies)
Discussion started by: ykmraju
6 Replies

4. Windows & DOS: Issues & Discussions

Im new at this and need help with my laptop

Ok, I recently purchased a lapto and the harddrive crashed. I bought a new one and now half of the functions on it wont work. I cant watch DVD's and non eof my Fn keys work. Any suggestions? Also wanting to learn how to program, anybody know a good way to go about it/learn computer languages? (2 Replies)
Discussion started by: beachbummer88
2 Replies

5. Windows & DOS: Issues & Discussions

Windows Scripting

I have been involved with shell programming now for the last 5 or 6 years. I am directing my career towards IT Security and need to broaden my experience. I would like suggestions for a good programming language for Windows. Is there a Windows scripting language that is considered secure ? Has... (3 Replies)
Discussion started by: sunsysadm2003
3 Replies

6. Programming

mutlithreading question

i'm planning to write a simple application that utilizes multithreading. any suggestions on what application i can use? thanks. (5 Replies)
Discussion started by: kelogs1347
5 Replies

7. Shell Programming and Scripting

Better way to do this?

Hi Experts, After the great suggestions I received yesterday, i'm back again, asking for more :D. I have close to 8-10 lines of code performing an operation, id like to know, if there is a more compact way to do this. # Removes the first line which is a message awk 'match($0,"The following... (2 Replies)
Discussion started by: hj007
2 Replies

8. 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

9. 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

10. 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

11. Programming

Cash Register Change Program

I just need some suggestions on how to start this program I wanted to work on for practice. I want to make a cash register program that gives change and only works with $1's, $5's, $10's, and $20's (I might add cents in later for more practice). Change should always be made with the largest... (9 Replies)
Discussion started by: totoro125
9 Replies

12. Shell Programming and Scripting

Remove last 2 portions of a string

I need to remove that last two parts of a string separated by an underscore for example: hello_g0f0_b6f5 Result should be hello hello_come_here_g0f0_ffg0 Result should be hello_come_here Hello_h_be_an_f_g1f1_ffe0 Result should be Hello_h_be_an_f Ideal is we need to "cut" the last two parts... (7 Replies)
Discussion started by: razor1979
7 Replies

13. Shell Programming and Scripting

Read from last point

Hi again, first thanks for all your suggestions. This forum it is very useful. I have a question. Is it possible to read from the last line a file was closed. For example, imagine that i've got a file with a LOT of timestamps : 1467387616.868717770 1467387616.874189609... (4 Replies)
Discussion started by: Board27
4 Replies

14. HP-UX

From a C++ application how to find if a hpux host is in standard mode or trusted mode

is there a way for my C++ application to find out which mode the hpux OS is running in? standard mode or trusted mode. (3 Replies)
Discussion started by: einsteinBrain
3 Replies