code: public String singularize(String noun) {
  		String singular = noun;
  		if (singulars.get(noun) != null) {
  			singular = singulars.get(noun);
  		} else if (noun.matches(".*is$")) {
  			// Singular of *is => *es
  			singular = noun.substring(0, noun.length() - 2) + "es";
  		} else if (noun.matches(".*ies$")) {
  			// Singular of *ies => *y
  			singular = noun.substring(0, noun.length() - 3) + "y";
  		} else if (noun.matches(".*ves$")) {
  			// Singular of *ves => *f
  			singular = noun.substring(0, noun.length() - 3) + "f";
  		} else if (noun.matches(".*es$")) {
  			if (noun.matches(".*les$")) {
  				// Singular of *les =>
  				singular = noun.substring(0, noun.length() - 1);
  			} else {
  				// Singular of *es =>
  				singular = noun.substring(0, noun.length() - 2);
  			}
  		} else if (noun.matches(".*s$")) {
  			// Singular of *s =>
  			singular = noun.substring(0, noun.length() - 1);
  		}
  		return singular;
  	}
docs: Gets the singular of a plural.
  
  @param noun
  Name.
  @return if the name was at singular, it does anything. If the name was a
  plural, returns its singular.