181 |
|
|
182 |
use Lingua::Spelling::Alternative; |
use Lingua::Spelling::Alternative; |
183 |
|
|
184 |
my $en = new Alternative; |
my $en = new Lingua::Spelling::Alternative; |
185 |
$en->load_affix('/usr/lib/ispell/english.aff') or die $!; |
$en->load_affix('/usr/lib/ispell/default.aff') or die $!; |
186 |
print $en->alternatives("cars"); |
print join(" ",$en->alternatives("cars")),"\n"; |
187 |
|
|
188 |
=head1 DESCRIPTION |
=head1 DESCRIPTION |
189 |
|
|
213 |
|
|
214 |
=item alternatives |
=item alternatives |
215 |
|
|
216 |
Function alternatives return all alternative spellings of particular |
Function alternatives return array of all alternative spellings of particular |
217 |
word(s). It will also return spelling which are not correct if there is |
word(s). It will also return spelling which are not correct if there is |
218 |
rule like that in affix file. |
rule like that in affix file. |
219 |
|
|
236 |
|
|
237 |
=head1 BUGS |
=head1 BUGS |
238 |
|
|
239 |
There are no known bugs. |
There are no known bugs. If you find any, please report it in CPAN's |
240 |
|
request tracker at: http://rt.cpan.org/ |
241 |
|
|
242 |
=head1 CONTACT AND COPYRIGHT |
=head1 CONTACT AND COPYRIGHT |
243 |
|
|
244 |
Copyright 2002 Dobrica Pavlinusic (dpavlin@rot13.org). All |
Copyright 2002-2003 Dobrica Pavlinusic (dpavlin@rot13.org). All |
245 |
rights reserved. This program is free software; you can redistribute |
rights reserved. This program is free software; you can redistribute |
246 |
it and/or modify it under the same terms as Perl itself. |
it and/or modify it under the same terms as Perl itself. |
247 |
|
|