net.sf.mmm.util.text
Class EnglishSingularizer
java.lang.Object
net.sf.mmm.util.text.AbstractTextTransformer
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final EnglishSingularizer INSTANCE
- The singleton instance.
EnglishSingularizer
protected EnglishSingularizer()
- The constructor.
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.