/[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.8 by dpavlin, Tue Nov 18 10:30:10 2003 UTC revision 1.9 by dpavlin, Tue Nov 18 13:54:14 2003 UTC
# Line 7  use strict; Line 7  use strict;
7  use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);  use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
8    
9  use Exporter;  use Exporter;
10  $VERSION = '0.01';  $VERSION = '0.02';
11  @ISA = ('Exporter');  @ISA = ('Exporter');
12    
13  #@EXPORT = qw();  #@EXPORT = qw();
# Line 187  Alternative.pm - alternative spelling of Line 187  Alternative.pm - alternative spelling of
187    
188  =head1 DESCRIPTION  =head1 DESCRIPTION
189    
190  This module is designed to return all valid forms of a given word  This module is designed to return all forms of a given word
191  (for example when you want to see all possible forms of some word  (for example when you want to see all possible forms of some word
192  entered in search engine)  entered in search engine) which can be generated using affix file (from
193    ispell) or using findaffix output file (also part of ispell package)
194    
195  =head1 PUBLIC METHODS  =head1 PUBLIC METHODS
196    
# Line 198  entered in search engine) Line 199  entered in search engine)
199  =item new  =item new
200    
201  The new() constructor (without parameters) create container for new language.  The new() constructor (without parameters) create container for new language.
202  Only parametar it supports is DEBUG which turns on (some) debugging output.  Only parameter it supports is DEBUG which turns on (some) debugging output.
203    
204  =item load_affix  =item load_affix
205    
# Line 208  Function load_affix() loads ispell's aff Line 209  Function load_affix() loads ispell's aff
209    
210  This function loads output of findaffix program from ispell package.  This function loads output of findaffix program from ispell package.
211  This is better idea (if you are creating affix file for particular language  This is better idea (if you are creating affix file for particular language
212  yourself or you can get your hands on one) because affix file from ispel  yourself or you can get your hands on one) because affix file from ispell
213  is limited to 26 entries (because each entry is denoted by single character).  is limited to 26 entries (because each entry is denoted by single character).
214    
215  =item alternatives  =item alternatives
# Line 220  rule like that in affix file. Line 221  rule like that in affix file.
221  =item minimal  =item minimal
222    
223  This function returns minimal of all alternatives of a given word(s). It's  This function returns minimal of all alternatives of a given word(s). It's
224  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 grammatic of
225  particular language, just some spelling rules).  particular language, just some spelling rules).
226    
227  =back  =back

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

  ViewVC Help
Powered by ViewVC 1.1.26