|
Alternative.pm - alternative spelling of a given word in a given language |
Alternative.pm - alternative spelling of a given word in a given language
use Lingua::Spelling::Alternative;
my $en = new Lingua::Spelling::Alternative;
$en->load_affix('/usr/lib/ispell/default.aff') or die $!;
print join(" ",$en->alternatives("cars")),"\n";
This module is designed to return all forms of a given word (for example when you want to see all possible forms of some word entered in search engine) which can be generated using affix file (from ispell) or using findaffix output file (also part of ispell package)
new() constructor (without parameters) create container for new language.
Only parameter it supports is DEBUG which turns on (some) debugging output.
load_affix() loads ispell's affix file for later usage.
Documented as being not documented.
Please see the test.pl program in distribution which exercises some aspects of Alternative.pm.
There are no known bugs. If you find any, please report it in CPAN's request tracker at: http://rt.cpan.org/
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.
|
Alternative.pm - alternative spelling of a given word in a given language |