Home >Backend Development >PHP Tutorial >Overview of the PHP Spell Checker Library_PHP Tutorial
As everyone knows,
aspell_new
loads a new dictionary.
Syntax: int aspell_new(string master, string personal);
Return value: Integer
Function type: Data processing
Content description
This function loads a new dictionary and assigns a new identity value (integer) for use in the program.
Usage example $aspell_link=aspell_new("english");
aspell_check
Check a word.
Syntax: boolean aspell_check(int dictionary_link, string word);
Return value: Boolean value
Function type: Data processing
Content description
This function checks the spelling of a word. Returns true if the spelling is correct, false if incorrect.
aspell_check-raw
Checks a single word without changing or correcting it even if it is misspelled.
Syntax: boolean aspell_check_raw(int dictionary_link, string word);
Return value: Boolean value
Function type: Data processing
Content description
This function checks the spelling of a word. Returns true if the spelling is correct, false if incorrect. This function does not change or correct the user's spelling.