title: Convert numbers to rank
body: <p>I need to convert a number to its rank.</p>
  
  <p>1 -> "First"</p>
  
  <p>2 -> "Second"</p>
  
  <p>3 -> "Third"</p>
  
  <ul>
  <li>%simplified (this gives 'one', 'two', 'three' etc.)</li>
  <li>%default (this gives 'one', 'two', 'three' etc.)</li>
  <li>%main (this gives 1st, 2nd, 3rd etc.)</li>
  </ul>
  
  <p>The code in first link throws an exception (for rule set <strong>"%simplified-ordinal"</strong>) that it is unknown 'rule-set'</p>
  
  <p>The question is already asked on SO (link below) and tried one of its solution but did not work.</p>
  
  <p>Links I've already referred to are:</p>
  
  <ul>
  <li><p><a href="https://stackoverflow.com/questions/6810336/is-there-a-way-in-java-to-convert-an-integer-to-its-ordinal">Is there a way in Java to convert an integer to its ordinal?</a></p></li>
  <li><p><a href="http://icu-project.org/apiref/icu4j/com/ibm/icu/text/RuleBasedNumberFormat.html" rel="nofollow noreferrer">http://icu-project.org/apiref/icu4j/com/ibm/icu/text/RuleBasedNumberFormat.html</a></p></li>
  <li><p><a href="http://userguide.icu-project.org/formatparse/numbers" rel="nofollow noreferrer">http://userguide.icu-project.org/formatparse/numbers</a></p></li>
  </ul>
  
  <p>I believe there is some 'rule-set' I need to pass to get what I'm looking for, but I'm not able to find it.</p>