NAME

Lspell - Access to Sevecek's spell library


SYNOPSIS

        use Lspell;
        my $spell = new Lspell langCZ, '/home/user/cz.spl';
        if ($spell->match('Krtek')) { ... }
        my @similar = $spell->similar_words('Krtek');


DESCRIPTION

This module provides access to spellchecking library by Pavel Sevecek. To use the library, you have to create an object using the new call. The first parameter must be the language specification, currently one of

        langCZ langGR langSK langUK langUS

The second parameter is a name of the master dictionary. If there is no directory in the path, that from the default location will be used, so it's possible to do

        my $spell = new Lspell langCZ, 'cz.spl';

The optional third parameter specifies the user dictionary, this has to be the complete path.

After you've created the object, the following methods are available:

match
Takes one argument, the word to match, returns true or undef.

similar_words
Takes a word as an argument, returns list of similar words.

user_dictionary
Specifies the user dictionary even after new. You can also call this without a paramater, then it will close previously used user dictionary.

Note, that you cannot change the master dictionary for the object. For that you need to create a new object even if it's a spell object for the same language (Pary, is this correct?)


Exported constants

(Note: currently unused):

  IGN_ALL_CAPS
  IGN_MIX_DIGI
  UDR_DISK
  UDR_MEMO


VERSION

0.30


SEE ALSO

perl(1).


AUTHOR

(c) 1998 Jan Pazdziora , http://www.fi.muni.cz/~adelton/ at Faculty of Informatics, Masaryk University, Brno, Czech Republic