I am looking for a solution that is somewhat related to Is there an easy way to create ordinals in C#? , but the inverse.
I would like to automate the following conversions:
First --> 1st
Second --> 2nd
Third --> 3rd
Ninety ninth --> 99th and so on.