public static String ordered(final int n){
switch (n) {
case 1:
    return "first";
case 2:
  return "second";
case 3:
return "third";
case 4:
return "fourth";
case 5:
return "fifth";
case 6:
return "sixth";
case 7:
return "seventh";
case 8:
return "eighth";
case 9:
return "ninth";
case 10:
return "tenth";
default :
if (n > 0) {
return n + ordinalSuffix(n);
}
logger.error("Grammar.ordered not implemented for: " + n);
return Integer.toString(n);
}
}

public static String ordered ( final int n ) { switch ( n ) { case 1 : return "first" ; case 2 : return "second" ; case 3 : return "third" ; case 4 : return "fourth" ; case 5 : return "fifth" ; case 6 : return "sixth" ; case 7 : return "seventh" ; case 8 : return "eighth" ; case 9 : return "ninth" ; case 10 : return "tenth" ; default : if ( n > 0 ) { return n + ordinalSuffix ( n ) ; } logger . error ( "Grammar.ordered not implemented for: " + n ) ; return Integer . toString ( n ) ; } }
first , second , third , . . .
