@Override protected String postProcess(String trimmedWord, String pluralizedWord) { if (trimmedWord.matches("^I$")) { return pluralizedWord; } return super.postProcess(trimmedWord, pluralizedWord); }
@Override protected String postProcess(String trimmedWord, String pluralizedWord) { if (trimmedWord.matches("^I$")) { return pluralizedWord; } return super.postProcess(trimmedWord, pluralizedWord); }
return fallbackPluralizer.pluralize(word, number); return pre + postProcess(trimmedWord, plural) + post;
return fallbackPluralizer.pluralize(word, number); return pre + postProcess(trimmedWord, plural) + post;