Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pspell_add_to_personal(3) [php man page]

PSPELL_ADD_TO_PERSONAL(3)						 1						 PSPELL_ADD_TO_PERSONAL(3)

pspell_add_to_personal - Add the word to a personal wordlist

SYNOPSIS
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)

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

15 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to replace one word across too many files at once

I'm trying to replace the word "core3" with the word "core2" across too many scripts which they all contain that word "core3" (Shell & XML scripts) all at once. Is there easy way with "sed" to do it? Thanks Folks. (2 Replies)
Discussion started by: moe2266
2 Replies

2. UNIX for Advanced & Expert Users

List all file which have specified word

How can I know which file have my specified word ? Thank you (4 Replies)
Discussion started by: aungomarin
4 Replies

3. Shell Programming and Scripting

replace word in a file

there are 300 files in a directory , some of these files has a word "error" , I word to change this word to "message" , can advise what can i do ? thx. (5 Replies)
Discussion started by: ust
5 Replies

4. Shell Programming and Scripting

Add a word at the end of each line in a file

Hi I want to read a flat file and add a word/value at the end of each line in the file and store the output in a temporary file. How can i do this? Plz help me with this. Regards, Saurabh (6 Replies)
Discussion started by: bhalotias
6 Replies

5. Shell Programming and Scripting

Remove a non-specific word froma file

Hi All, I am encountering a problem while removing a string from a file. Actually, i have done this thing before using sed to replace the word but this time word is not specfic. its value is changing with each file. e.g. %HD% Serial Number list per DN required. +3... (2 Replies)
Discussion started by: apjneeraj
2 Replies

6. UNIX for Dummies Questions & Answers

help with hangman

i want to create the known game hangman wordlist=./hangmanword //hangman word is my text file which include words i use this code to generate a random number corresponding to a word in our file and works fine calculate and generate a right number wordline=$( wc -l ${wordlist} | awk '{print... (9 Replies)
Discussion started by: sainis
9 Replies

7. Shell Programming and Scripting

Replace a word after a particular word in a file

Hi, I want to replace a word in a file which occurs after a particular word. For example : $cat file.txt CASE WHEN AND c1 = 'I' AND c2= '2' THEN 1 WHEN AND c1= 'I' AND c2= '0' THEN 2 So in this example i want to replace... (4 Replies)
Discussion started by: ashwin3086
4 Replies

8. Shell Programming and Scripting

Substituting a word by different word in variable

Hello Exprets, I have a requirement where i have to subtitue a word with another word. $eachline| sed 's/*$//' a) $eachline will hold a value a path for example user/oracle/Test_admin/myfolder/bakup/part_bkptemp_part_bkp_repeated/list.txt b) $eachline| sed 's/*$//' will give me the... (3 Replies)
Discussion started by: aks_1902
3 Replies

9. Shell Programming and Scripting

How ti Grep for a word and print the next word

Hi can we grep for a word and print the next word of the greped word? ex:- create or replace function function_name create function function_name we should search for word "function" and output next word "function_name" from both lines. (3 Replies)
Discussion started by: manasa_vs
3 Replies

10. UNIX for Advanced & Expert Users

How to go to a line having a particular word?

Hi all, When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the gvim file(*.SUM*) Presently iam using the following command in my .gvimrc, but the cursor is going to... (2 Replies)
Discussion started by: twistedpair
2 Replies

11. UNIX for Dummies Questions & Answers

How to go to a line having a particular word?

Hi, When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the gvim file(*.SUM*) Presently iam using the following command in my .gvimrc, but the cursor is going to the... (4 Replies)
Discussion started by: twistedpair
4 Replies

12. UNIX for Dummies Questions & Answers

Adding word in blank space

Hi, var=QSB SBD SDN SGJ SJP SKB SKD SLP SML SNB SRE SRG STP TAJ UMP UNO VKS VND VNS WAH ZRR I have to put *.sql after every word What I did echo $var>/root/file1.sql sed -i 's/ /*.sql /g' file1.sql cat file1.sql Output QSB*.sql SBD*.sql SDN*.sql SGJ*.sql SJP*.sql SKB*.sql... (9 Replies)
Discussion started by: kaushik02018
9 Replies

13. UNIX for Beginners Questions & Answers

Remove Special Characters and Numbers From a Wordlist

I sux at this type of stuff. I have a huge wordlist. I want to get rid of everything in each word except the letters. I want to remove numbers and all special characters. And since this list was created using cewl I some how picked up something like so Latin characters and would like to remove them... (6 Replies)
Discussion started by: sub terra
6 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

15. UNIX for Beginners Questions & Answers

Grep expression

im trying to find the best way to match an expression using grep. input file is <html>word word word word.</a> <html>word word word word word word .</a> <html>word word word word word word word word .</a> <html>word word word word word word word word word word word word word word word word... (4 Replies)
Discussion started by: ahfze
4 Replies