net.sf.mmm.util.text
Class EnglishSingularizer

java.lang.Object
  extended by net.sf.mmm.util.text.AbstractTextTransformer
      extended by net.sf.mmm.util.text.EnglishSingularizer
All Implemented Interfaces:
Singularizer, Transformer<String>

public class EnglishSingularizer
extends AbstractTextTransformer
implements Singularizer

This is the singularizer for English language.

Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Field Summary
static EnglishSingularizer INSTANCE
          The singleton instance.
 
Constructor Summary
protected EnglishSingularizer()
          The constructor.
 
Method Summary
protected  List<TransformerRule> getRules()
          This method gets the list of rules.
 
Methods inherited from class net.sf.mmm.util.text.AbstractTextTransformer
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.mmm.util.text.Singularizer
transform
 

Field Detail

INSTANCE

public static final EnglishSingularizer INSTANCE
The singleton instance.

Constructor Detail

EnglishSingularizer

protected EnglishSingularizer()
The constructor.

Method Detail

getRules

protected List<TransformerRule> getRules()
This method gets the list of rules. These rules are processed in the order of occurrence. If a rule matches (does NOT return null), that result is taken as singular form and no further rule is invoked.

Specified by:
getRules in class AbstractTextTransformer
Returns:
the rules.


Copyright © 2001-2008 mmm-Team. All Rights Reserved.