The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ROADS::Porter - A class to perform stemming using the Porter algorithm.

SYNOPSIS

  use ROADS::Porter;
  print join(" ", stem("wubbleyou")),  "\n";

DESCRIPTION

This class defines an implementation of the Porter stemming algorithm.

METHODS

@stemmed_terms = stem( term );

The stem method operates on a single term term at a time, and so must be wrappered by any code which is aiming to stem multiple search terms. It returns a scalar array of terms found through the stemming algorithm, including itself.

BUGS

It's not clear that the Porter algorithm is a very useful for this sort of thing! Some of the results look very silly.

SEE ALSO

"wppd.pl" in bin, ROADS::Index

COPYRIGHT

Copyright (c) 1988, Martin Hamilton <martinh@gnu.org> and Jon Knight <jon@net.lut.ac.uk>. All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

It was developed by the Department of Computer Studies at Loughborough University of Technology, as part of the ROADS project. ROADS is funded under the UK Electronic Libraries Programme (eLib), the European Commission Telematics for Research Programme, and the TERENA development programme.

AUTHOR

Jon Knight <jon@net.lut.ac.uk>