public static String quantityplnounWithMarker(int quantity,String noun,char marker){
  final String fullNoun=plnoun(quantity,noun);
  String prefix;
  if (quantity == 1) {
    prefix=a_an(fullNoun);
  }
 else {
    prefix=Integer.toString(quantity) + " ";
  }
  final StringBuilder sb=new StringBuilder(prefix);
  if (fullNoun.indexOf(' ') == -1) {
    sb.append(marker);
    sb.append(fullNoun);
  }
 else {
    sb.append(marker);
    sb.append("'" + fullNoun + "'");
  }
  return sb.toString();
}

public static String quantityplnounWithMarker ( int quantity , String noun , char marker ) { final String fullNoun = plnoun ( quantity , noun ) ; String prefix ; if ( quantity == 1 ) { prefix = a_an ( fullNoun ) ; } else { prefix = Integer . toString ( quantity ) + " " ; } final StringBuilder sb = new StringBuilder ( prefix ) ; if ( fullNoun . indexOf ( ' ' ) == - 1 ) { sb . append ( marker ) ; sb . append ( fullNoun ) ; } else { sb . append ( marker ) ; sb . append ( "'" + fullNoun + "'" ) ; } return sb . toString ( ) ; }
returns either the plural or singular form of the given noun , depending on the quantity ; also prefixes the quantity and prints the noun with a specifier prefix .
