(final String noun)
| 133 | } |
| 134 | |
| 135 | public static String getPlural(final String noun) { |
| 136 | return noun + (noun.endsWith("s") && !noun.endsWith("ds") || noun.endsWith("x") || noun.endsWith("ch") ? "es" |
| 137 | : noun.endsWith("ds") ? "" : "s"); |
| 138 | } |
| 139 | |
| 140 | public static String nounWithAmount(final int cnt, final String noun) { |
| 141 | final String countedForm = cnt == 1 ? noun : getPlural(noun); |
no outgoing calls
no test coverage detected