public String ordinalize(final int number) {
        final int remainder = Math.abs(number % 100);
        final String numberStr = Integer.toString(number);
        if (remainder < 10) {
            if (remainder == 1) {
                return numberStr + "st";
            }
            if (remainder == 2) {
                return numberStr + "nd";
            }
            if (remainder == 3) {
                return numberStr + "rd";
            }
        }
        return numberStr + "th";
    }
Returns a textual representation of an ordinal. 1 = 1st, 2 = 2nd, 101
= 101st, 111 = 111th

@param number the ordinal number
@return a textual representation of an ordinal
generator-parent/generator-translator/src/main/java/com/speedment/generator/translator/util/Pluralis.java