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.
|
transform
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform
public static final EnglishSingularizer INSTANCE
private static final List<TransformerRule> RULES
protected List<TransformerRule> getRules()
AbstractTextTransformer
return
null
), that result is taken as singular form
and no further rule is invoked.getRules
in class AbstractTextTransformer
Copyright © 2001–2016 mmm-Team. All rights reserved.