Java String Pluralize pluralize(String name)

Here you can find the source of pluralize(String name)

Description

pluralize

License

Apache License

Declaration

private static String pluralize(String name) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static String pluralize(String name) {
        if (name.endsWith("ss")) {
            return name + "es";
        } else if (!name.endsWith("s")) {
            return name + "s";
        }//www  .j  ava 2s . com
        return name;
    }
}

Related

  1. pluralize(String base, int quantity)
  2. pluralize(String input)
  3. pluralize(String name)
  4. pluralize(String name)
  5. pluralize(String name)
  6. pluralize(String s)
  7. pluralize(String singular, long number)
  8. pluralize(String singularNoun)
  9. pluralize(String singularNoun)