Aspell

The Aspell library is used to verify the spelling of a word. It is the result of an open source project run by Kevin Atkinson. The official Web site is <http://metalab.unc.edu/kevina/aspell/>. In order for PHP to use Aspell, the functions must be loaded as an extension. At the time of this writing, no win32 extension existed for Aspell, so its functionality is available to UNIX users only. Mark Musone added Aspell support to PHP.

integer aspell_new(string dictionary, string personal_words)

Use aspell_new to load a dictionary into the system. An identifier is returned that must be used in subsequent calls to Aspell functions. The second argument is optional and specifies a personal dictionary.

 <? //create a test sentence $text = "Thiss ...

Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.