-
-
22 Aug 2006 13:14:53 UTC
- Distribution: Dict-FSA
- Module version: 0.1.2
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (458 / 0 / 0)
- Kwalitee
Bus factor: 1- 29.17% Coverage
- License: unknown
- Activity
24 month- Tools
- Download (3.04KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- IO::Handle
- IPC::Open2
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Dict::FSA - FSA wrapper
VERSION
Version 0.1.2
DESCRIPTION
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).
SYNOPSIS
use Dict::FSA; Dict::FSA->create_dict($wordlist, $file); my $dict = Dict::FSA->new(); $dict->check('foo'); $dict->suggest('foo');
Class methods
Dict::FSA->create_dict($wordlist, $file)
Creates a dictionnary from $wordlist suitable for use with fsa, and save it in file $file.
Constructor
Dict::FSALexed->new($distance, $wordfiles)
Creates and returns a new
Dict::FSA
object.Optional parameters:
Methods
$dict->check($word)
Check the dictionnary for exact match of word $word. Returns a true value if word is present in the dictionnary, false otherwise.
$dict->suggest($word)
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.
$dict->query($word)
Query the dictionnary for word $word. Returns the raw result of the query, as a list of words.
Module Install Instructions
To install Dict::FSA, copy and paste the appropriate command in to your terminal.
cpanm Dict::FSA
perl -MCPAN -e shell install Dict::FSA
For more information on module installation, please visit the detailed CPAN module installation guide.