code: public static Number parseNumber(final String text) throws ParseException
      {
          return context.get().getRuleBasedNumberFormat(RuleBasedNumberFormat.SPELLOUT).parse(text);
      }
docs: <p>
  Converts the given text to number.
  </p>
  
  @param text
  String containing a spelled out number.
  @return Text converted to Number
  @throws ParseException