Clair::ALE

Stemmer


SummaryIncluded librariesPackage variablesSynopsisGeneral documentationMethods

SummaryTop
Clair::ALE::Stemmer - Internal stemmer used by ALE.

Package variablesTop
No package variables defined.

Included modulesTop
Clair::Utils::ALE qw ( %ALE_ENV )
Exporter

InheritTop
Exporter

SynopsisTop
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.

DescriptionTop
No description!
MethodsTop
importNo descriptionCode

Methods description


None available.

Methods code


importdescriptionprevnextTop
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,@_);
}

General documentation


No general documentation available.