/[Lingua-Spelling-Alternative]/Alternative.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /Alternative.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by dpavlin, Fri Oct 3 15:35:59 2003 UTC revision 1.8 by dpavlin, Tue Nov 18 10:30:10 2003 UTC
# Line 181  Alternative.pm - alternative spelling of Line 181  Alternative.pm - alternative spelling of
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    
# Line 213  is limited to 26 entries (because each e Line 213  is limited to 26 entries (because each e
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    
# Line 236  aspects of Alternative.pm. Line 236  aspects of Alternative.pm.
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    

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.26