Clair::ALE::Default

Stemmer


SummaryIncluded librariesPackage variablesSynopsisGeneral documentationMethods

SummaryTop
Clair::ALE::Default::Stemmer - ALE's default stemmer.

Package variablesTop
No package variables defined.

Included modulesTop
Clair::Utils::porter

InheritTop
Exporter

SynopsisTop
This module is used internally by the other ALE modules to stem words.
Other modules (particularly Clair::ALE::Search) will use this
automatically, so you shouldn't have to use it yourself unless you're
writing an ALE module.
It is a thin frontend for a standard Porter stemmer. It's main purpose
is to make it easy to change stemmers without having to change any
other code.

DescriptionTop
No description!
MethodsTop
_ale_stemNo descriptionCode
ale_stemNo descriptionCode
ale_stemsomeNo descriptionCode
newNo descriptionCode
stemNo descriptionCode
stemsomeNo descriptionCode

Methods description


None available.

Methods code


_ale_stemdescriptionprevnextTop
sub _ale_stem {
  shift if (ref $_[0]);
  Clair::Utils::porter::porter($_[0]);
}

ale_stemdescriptionprevnextTop
sub ale_stem {
  shift if (ref $_[0]);
  Clair::Utils::porter::porter($_[0]);
}

ale_stemsomedescriptionprevnextTop
sub ale_stemsome {
  return map { ale_stem($_) } @_;
}

newdescriptionprevnextTop
sub new {
  my $class = shift;
  my $self = {};
  bless $self,$class;
}

stemdescriptionprevnextTop
sub stem {
  my $self = shift;
  goto &ale_stem;
}

stemsomedescriptionprevnextTop
sub stemsome {
  my $self = shift;
  goto &ale_stemsome;
}

General documentation


No general documentation available.