| Summary | Included libraries | Package variables | Synopsis | General documentation | Methods |
| Summary | Top |
| Clair::ALE::Stemmer - Internal stemmer used by ALE. |
| Package variables | Top |
| No package variables defined. |
| Included modules | Top |
| Clair::Utils::ALE qw ( %ALE_ENV ) |
| Exporter |
| Inherit | Top |
| Exporter |
| Synopsis | Top |
| This module is used internally by the other ALE modules to stem words. It looks in the ALE_STEMMER environment variable to decide which stemming module to load; by default it loads Clair::ALE::Default::Stemmer. |
| Description | Top |
| Methods | Top |
| import | No description | Code |
| import | description | prev | next | Top |
sub import
{
if (!$ALE_ENV{ALE_STEMMER})
{
$ALE_ENV{ALE_STEMMER}='Clair::ALE::Default::Stemmer';
}
if ($ALE_ENV{ALE_STEMMER} =~ /^(Clair::ALE::[\w:]+)$/)
{
eval "require $1";
}
else
{
die "Invalid class name for ALE_STEMMER\n";
}
die $@ if $@;
$ALE_ENV{ALE_STEMMER}->export_to_level(1,@_);} |