Here you can find the source of pluralize(String name)
private static String pluralize(String name)
//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; } }