This came up in a Racket PR review, but the Line Up rules are unclear about what gets excluded.
Rules:
Numbers ending in 1 (except for 11) → "st"
Numbers ending in 2 (except for 12) → "nd"
Numbers ending in 3 (except for 13) → "rd"
All other numbers → "th"
The text in the parentheses can be read as describing the numbers themselves and not the digits. That means 11 is excluded but not 111 so we get 11th but 111st.
The proposed change
Rules:
Numbers ending in 1 (except those ending in 11) → "st"
Numbers ending in 2 (except those ending in 12) → "nd"
Numbers ending in 3 (except those ending in 13) → "rd"