Dict::FSA - FSA wrapper
Version 0.1.1
This module is a perl wrapper around fsa, a set of tools based on finite state automata (http://www.eti.pg.gda.pl/~jandac/fsa.html).
use Dict::FSA; Dict::FSA->create_dict($wordlist, $file); my $dict = Dict::FSA->new(); $dict->check('foo'); $dict->suggest('foo');
Creates a dictionnary from $wordlist suitable for use with fsa, and save it in file $file.
Creates and returns a new Dict::FSA object.
Dict::FSA
Optional parameters:
maximum distance for approximated matches
an hashref of word file to use
Check the dictionnary for exact match of word $word. Returns a true value if word is present in the dictionnary, false otherwise.
Check the dictionnary for approximate match of word $word. Returns a list of approximated words from the dictionnary, according to parameters passed when creating the object.
Query the dictionnary for word $word. Returns the raw result of the query, as a list of words.
To install Dict::FSA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dict::FSA
CPAN shell
perl -MCPAN -e shell install Dict::FSA
For more information on module installation, please visit the detailed CPAN module installation guide.