Cardinality, Ordinality aided ~ Austin

From: Austin

Date: 2012-01-28 07:47 PM


For the benefit of people needing adjectives in their descriptions I have entered a pair of lists which may be used, I believe, from anywhere on the muck. They give the cardinal and ordinal adjectives for whole numbers from 1 up to 32. Call them, in a description or MPI:

{select:your-number-here,adjectives/cardinal}

so that, for example, if your-number-here is '4' you get back 'four', or

{select:your-number-here,adjectives/ordinal}

so that, for example, if your-number-here is '4' you get back 'fourth'.

your-number-here may be literally a number, or may be an MPI property, or even the result of any sort of script. For example, you could have a property named 'snowfall/depth', storing a whole number, and call {select:{prop:snowfall/depth},adjective/cardinal} to get the matching word.

The numbers only go up to 32 because please don't ask for more.

Please let me know if more tools like this would be useful.

Austin Dern

« Prev: 75. New public MUF: AltSafety Next: 77. A better way to shuffle a list »