public class EnglishSingularizer extends AbstractTextTransformer implements Singularizer
Singularizer interface for English language. It aims for simplicity rather
than linguistic perfection.| Modifier and Type | Field and Description |
|---|---|
static EnglishSingularizer |
INSTANCE
The singleton instance.
|
private static List<TransformerRule> |
RULES |
| Modifier | Constructor and Description |
|---|---|
protected |
EnglishSingularizer()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected List<TransformerRule> |
getRules()
This method gets the list of rules.
|
transformclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformpublic static final EnglishSingularizer INSTANCE
private static final List<TransformerRule> RULES
protected List<TransformerRule> getRules()
AbstractTextTransformerreturn null ), that result is taken as singular form
and no further rule is invoked.getRules in class AbstractTextTransformerCopyright © 2001–2016 mmm-Team. All rights reserved.