/[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.5 by dpavlin, Tue Feb 12 14:31:15 2002 UTC revision 1.8 by dpavlin, Tue Nov 18 10:30:10 2003 UTC
# Line 179  Alternative.pm - alternative spelling of Line 179  Alternative.pm - alternative spelling of
179    
180  =head1 SYNOPSIS  =head1 SYNOPSIS
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 223  This function returns minimal of all alt Line 223  This function returns minimal of all alt
223  a poor man's version of normalize (because we don't know gramatic of  a poor man's version of normalize (because we don't know gramatic of
224  particular language, just some spelling rules).  particular language, just some spelling rules).
225    
226    =back
227    
228  =head1 PRIVATE METHODS  =head1 PRIVATE METHODS
229    
230  Documented as being not documented.  Documented as being not documented.
# Line 234  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.5  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.26