ordinal-ap-style ( n -- str )


Vocabulary
math.text.english

Inputs
nan object


Outputs
stran object


Definition


: ordinal-ap-style ( n -- str )
dup {
f
"first"
"second"
"third"
"fourth"
"fifth"
"sixth"
"seventh"
"eighth"
"ninth"
} ?nth
[ nip ] [ [ number>string ] [ ordinal-suffix ] bi append ]
if* ;