code: protected static String toSingular(String word) {
  		if (word.endsWith("ies")) { //$NON-NLS-1$
  			return word.substring(0, word.length() - 3) + "y"; //$NON-NLS-1$
  		}
  		if (word.endsWith("s")) { //$NON-NLS-1$
  			return word.substring(0, word.length() - 1);
  		}
  		return word;
  	}
docs: Replies the singular version of the word.
  
  <p>This function does not follow the real English grammatical rule, but it is
  an acceptable approximation.
  
  @param word the word.
  @return the singular word.