@ComponentSpecification public interface Singularizer extends Transformer<String>
translation
of a term given in plural form to the according
singular form. The implementation will typically work for a specific Locale
(language).Modifier and Type | Method and Description |
---|---|
String |
transform(String plural)
This method gets the singular form of the given term (some word)
pluralForm that is (potentially) in plural
form. |
String transform(String plural)
pluralForm
that is (potentially) in plural
form. Additionally it preserves the case of the term. term |
toSingular(term) |
---|---|
children | child |
classes | class |
interfaces | interface |
countries | country |
women | woman |
WOMEN | WOMAN |
MailMen | MailMan |
SubClasses | SubClass |
transform
in interface Transformer<String>
plural
- is a term (potentially) in plural form.equal
to the given string
plural
if already singular or no singular form is known.Copyright © 2001–2016 mmm-Team. All rights reserved.