use Lspell;
my $spell = new Lspell langCZ, '/home/user/cz.spl';
if ($spell->match('Krtek')) { ... }
my @similar = $spell->similar_words('Krtek');
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:
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?)
IGN_ALL_CAPS IGN_MIX_DIGI UDR_DISK UDR_MEMO
perl(1).