guile aspell is a spellcheck module for Guile. GNU Guile is an implementation of Scheme, a Lisp-like computer language, and this spellcheck library provides facilites to check strings against a dictionary and to suggest alternate words. It uses functionality provided by the GNU Aspell spellcheck library.

Usage

Here is an example of using guile aspell in an interactive Guile session.

scheme@(guile-user)> (use-modules (aspell))
scheme@(guile-user)> (aspell-set-lang "en_US")
$1 = #t
scheme@(guile-user)> (aspell-word "tommorow")
$2 = ("tomorrow" "tomorrows" "Tommie" "Morrow" "Timor"
"morrow" "tomorrow's" "timorous" "Moro" "Romero" "Tommie's" "Tommy" "tumor"
"tumorous" "Moore" "tremor" "Murrow" "marrow" "tomboy" "tumors" "Tamara"
"Tamera" "tome" "trimmer" "tumor's" "Tom" "tom" "tomb" "tearoom")
scheme@(guile-user)> (aspell-correct? "tomorrow")
$3 = #t

The full documentation is available:

Installation

guile-aspell is freely available for download. It is licensed using the terms in the GNU General Public License version 3 (GPLv3).

To install from source code, download the latest compressed file archive and unpack it.

Then run this slightly unusual configure sequence.

$ ./configure --with-guilesitedir=<sitedir>
$ make
$ sudo make install
	  

important<sitedir> is where the guile module is supposed to be installed. The locations of these directories -- and the method used to determine those locations -- change with each version of Guile. To locate the appropriate directory for your installation, try the following commands.

For Guile 2.0's site dir try

$ pkg-config guile-2.0 --variable=sitedir
	  

Development

The git repository for this project is at github.com/spk121/guile-aspell