September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool pspell_add_to_personal(int dictID, string word)
Adds a word to the personal wordlist for a session.
Returns:
TRUE if successful; FALSE otherwise
Description:
After opening a personal wordlist using pspell_new_personal() or pspell_config_personal(), you can add your own words to the list by using pspell_add_to_personal(). dictID is the ID of the dictionary link associated with the wordlist you want to modify; word is the word to be added.
To save your wordlist between sessions, you need to use pspell_save_wordlist() before the script ends.
This function is available only if the Pspell library version is 0.11.2 or later and the Aspell library version is 0.32.5 or later.
Example:
Read now
Unlock full access