NAME
Lingua::Jspell - Perl interface to the Jspell morphological analyser.
SYNOPSIS
use Lingua::Jspell;
my $dic = Lingua::Jspell->new( "dict_name");
my $dic = Lingua::Jspell->new( "dict_name" , "personal_dict_name");
$dict->rad("gatinho"); # list of radicals (gato)
$dict->fea("gatinho"); # list of possible analysis
$dict->der("gato"); # list of derivated words
$dict->flags("gato"); # list of roots and flags
FUNCTIONS
new
Use to open a dictionary. Pass it the dictionary name and optionally a personal dictionary name. A new jspell dictionary object will be returned.
setmode
fea
Returns a list of analisys of a word. Each analisys is a list of attribute value pairs. Attributes available: CAT, T, G, N, P, ....
@l = $dic->fea($word)
flags
rad
Returns the list of all possible radicals/lemmas for the supplied word.
@l = $dic->rad($word)
der
Returns the list of all possible words using the word as radical.
@l = $dic->der($word);
onethat
Returns the first Feature Structure from the supplied list that verifies the Feature Structure Pattern used.
$analysis = onethat( { CAT=>'adj' }, @features);
verif
Retuurns a true value if the second Feature Structure verifies the first Feature Structure Pattern.
if (verif( $pattern, $feature) ) { ... }
nlgrep
setstopwords
cat2small
Note: This function is specific for the Portuguese jspell dictionary
featags
ok
# ok: cond:fs x ele:fs-set -> bool
# exist x in ele : verif(cond , x)
mkradtxt
any2str
hash2str
AUTHOR
Jose Joao Almeida, <jj@di.uminho.pt>
Alberto Simões, <ambs@di.uminho.pt>
BUGS
Please report any bugs or feature requests to bug-lingua-jspell@rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Lingua-Jspell. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
COPYRIGHT & LICENSE
Copyright 2007-2008 Projecto Natura
This program is free software; licensed undef GPL.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 663:
Non-ASCII character seen before =encoding in 'Simões,'. Assuming CP1252