class Integer

def ordinal

-1001.ordinal # => "st"
-11.ordinal # => "th"
1003.ordinal # => "rd"
1002.ordinal # => "nd"
2.ordinal # => "nd"
1.ordinal # => "st"

in an ordered sequence such as 1st, 2nd, 3rd, 4th.
Ordinal returns the suffix used to denote the position
def ordinal
  ActiveSupport::Inflector.ordinal(self)
end