You are here: Home // Aspell functions
aspell_suggest
(PHP3 >= 3.0.7, PHP4 )
aspell_suggest – Suggest spellings of a word
Description
array aspell_suggest (int dictionary_link, string word)
Aspell_suggest() returns an array of possible spellings for the given word.
Example 1. Aspell_suggest()
$aspell_link=aspell_new ("english");
if (!aspell_check ($aspell_link, "test")) {
$suggestions=aspell_suggest ($aspell_link, "test");
aspell_check-raw
(PHP3 >= 3.0.7, PHP4 )
aspell_check-raw – Check a word without changing its case or trying to trim it
Description
boolean aspell_check_raw (int dictionary_link, string word)
Aspell_check_raw() checks the spelling of a word, without changing its case or trying to trim it in any way and returns true if the spelling is correct, false if not.
Example 1. Aspell_check_raw()
$aspell_link=aspell_new
aspell_check
(PHP3 >= 3.0.7, PHP4 )
aspell_check – Check a word
Description
boolean aspell_check (int dictionary_link, string word)
Aspell_check() checks the spelling of a word and returns true if the spelling is correct, false if not.
Example 1. Aspell_check()
$aspell_link=aspell_new ("english");
if (aspell_check ($aspell_link,"testt")) {
echo "This is a valid spelling";
} else {
echo
aspell_new
(PHP3 >= 3.0.7, PHP4 )
aspell_new – Load a new dictionary
Description
int aspell_new (string master, string personal)
Aspell_new() opens up a new dictionary and returns the dictionary link identifier for use in other aspell functions.
Example 1. Aspell_new()
$aspell_link=aspell_new ("english");















































