Italian ordinal numbers are adjectives, so each one has four forms that agree with the noun in gender and number. This tool produces all four — primo, prima, primi, prime — for any integer, applying the irregular first ten and the regular suffix pattern for everything above.
How it works
The first ten ordinals are irregular and stored directly. From eleven upward, the ordinal is built from the cardinal:
cardinal → drop the final vowel → add -esim → add agreement vowel
undici → undic → undicesim → undicesimo / -a / -i / -e
venti → vent → ventesim → ventesimo / -a / -i / -e
ventuno → ventun → ventunesim → ventunesimo
The one exception is cardinals ending in tre or sei: they keep their final
vowel, giving ventitreesimo and ventiseiesimo rather than dropping it.
Example and tips
For the twenty-first century you want the masculine singular: il ventunesimo secolo. For a feminine plural noun such as le posizioni you would use the -e
form. Regnal and papal numbers are always masculine singular, so Pope John XXIII
is Giovanni ventitreesimo. When in doubt, match the form to the noun the
ordinal modifies, not to the number itself.