Home >Backend Development >PHP Tutorial >Overview of the PHP Spell Checker Library_PHP Tutorial

Overview of the PHP Spell Checker Library_PHP Tutorial

WBOY
WBOYOriginal
2016-07-15 13:34:01959browse

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.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446016.htmlTechArticleAs we all know, 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 contains...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn