--- Alternative.pm 2002/02/12 12:41:31 1.4 +++ Alternative.pm 2003/11/18 10:30:10 1.8 @@ -179,11 +179,11 @@ =head1 SYNOPSIS - use Lingua::Spelling:Alternative; + use Lingua::Spelling::Alternative; - my $en = new Alternative; - $en->load_affix('/usr/lib/ispell/english.aff') or die $!; - print $en->alternatives("cars"); + my $en = new Lingua::Spelling::Alternative; + $en->load_affix('/usr/lib/ispell/default.aff') or die $!; + print join(" ",$en->alternatives("cars")),"\n"; =head1 DESCRIPTION @@ -202,19 +202,18 @@ =item load_affix -Function load_affix loads ispell's affix file for later usage. +Function load_affix() loads ispell's affix file for later usage. =item load_findaffix This function loads output of findaffix program from ispell package. This is better idea (if you are creating affix file for particular language -yourself) because affix file from ispell (which is created from data returned -by findaffix) is limited to 26 entries (because each entry is denoted by -single character). +yourself or you can get your hands on one) because affix file from ispel +is limited to 26 entries (because each entry is denoted by single character). =item alternatives -Function alternatives return all alternative spellings of particular +Function alternatives return array of all alternative spellings of particular word(s). It will also return spelling which are not correct if there is rule like that in affix file. @@ -224,6 +223,8 @@ a poor man's version of normalize (because we don't know gramatic of particular language, just some spelling rules). +=back + =head1 PRIVATE METHODS Documented as being not documented. @@ -235,11 +236,12 @@ =head1 BUGS -There are no known bugs. +There are no known bugs. If you find any, please report it in CPAN's +request tracker at: http://rt.cpan.org/ =head1 CONTACT AND COPYRIGHT -Copyright 2002 Dobrica Pavlinusic (dpavlin@rot13.org). All +Copyright 2002-2003 Dobrica Pavlinusic (dpavlin@rot13.org). All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.