pluralize static method

String pluralize(
  1. String s,
  2. int length
)

Implementation

static String pluralize(String s, int length) {
  if (length == 1) return s;
  return s + "s";
}