lempinen.neatseeker.stemmer
Class PorterStemmer

java.lang.Object
  |
  +--lempinen.neatseeker.stemmer.PorterStemmer
All Implemented Interfaces:
Stemmer

public class PorterStemmer
extends java.lang.Object
implements Stemmer

Wrapper class for Dr. Martin Porter's stemmer for English.

This class is merely a wrapper that uses the charvec class by Dr. Martin Porter. Thanks to Dr. Porter for his kind permission to include his code in NeatSeeker.

For more information, see

http://www.muscat.com/~martin/stem.html

Version:
$Id: PorterStemmer.java,v 1.3 2000/09/23 12:27:08 lempinen Exp $
Author:
Sami Lempinen

Field Summary
private  charvec c
          Dr.
 
Constructor Summary
PorterStemmer()
          Creates a new PorterStemmer object.
 
Method Summary
static void main(java.lang.String[] args)
          Test program.
 java.lang.String stem(java.lang.String word)
          Returns the stem of word.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

c

private charvec c
Dr. Porter's charvec class.
Constructor Detail

PorterStemmer

public PorterStemmer()
Creates a new PorterStemmer object.
Method Detail

stem

public java.lang.String stem(java.lang.String word)
Returns the stem of word.
Specified by:
stem in interface Stemmer

main

public static void main(java.lang.String[] args)
Test program.