org.basex.util
Class Stemming

java.lang.Object
  extended by org.basex.util.Stemming

public final class Stemming
extends java.lang.Object

Simple stemming algorithm, derived from Porter [1980], An algorithm for suffix stripping.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Constructor Summary
Stemming()
           
 
Method Summary
 void word()
          Stems the current word.
 byte[] word(byte[] str)
          Stems the specified word.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stemming

public Stemming()
Method Detail

word

public byte[] word(byte[] str)
Stems the specified word.

Parameters:
str - word to be stemmed
Returns:
result

word

public void word()
Stems the current word.