private void usMoneyToWords(String tokenVal){
  int dotIndex=tokenVal.indexOf('.');
  if (matches(illionPattern,(String)tokenItem.findFeature("n.name"))) {
    NumberExpander.expandReal(tokenVal.substring(1),wordRelation);
  }
 else   if (dotIndex == -1) {
    String aaa=tokenVal.substring(1);
    tokenToWords(aaa);
    if (aaa.equals("1")) {
      wordRelation.addWord("dollar");
    }
 else {
      wordRelation.addWord("dollars");
    }
  }
 else   if (dotIndex == (tokenVal.length() - 1) || (tokenVal.length() - dotIndex) > 3) {
    NumberExpander.expandReal(tokenVal.substring(1),wordRelation);
    wordRelation.addWord("dollars");
  }
 else {
    String aaa=tokenVal.substring(1,dotIndex);
    aaa=Utilities.deleteChar(aaa,',');
    String bbb=tokenVal.substring(dotIndex + 1);
    NumberExpander.expandNumber(aaa,wordRelation);
    if (aaa.equals("1")) {
      wordRelation.addWord("dollar");
    }
 else {
      wordRelation.addWord("dollars");
    }
    if (bbb.equals("00")) {
    }
 else {
      NumberExpander.expandNumber(bbb,wordRelation);
      if (bbb.equals("01")) {
        wordRelation.addWord("cent");
      }
 else {
        wordRelation.addWord("cents");
      }
    }
  }
}

private void usMoneyToWords ( String tokenVal ) { int dotIndex = tokenVal . indexOf ( '.' ) ; if ( matches ( illionPattern , ( String ) tokenItem . findFeature ( "n.name" ) ) ) { NumberExpander . expandReal ( tokenVal . substring ( 1 ) , wordRelation ) ; } else if ( dotIndex == - 1 ) { String aaa = tokenVal . substring ( 1 ) ; tokenToWords ( aaa ) ; if ( aaa . equals ( "1" ) ) { wordRelation . addWord ( "dollar" ) ; } else { wordRelation . addWord ( "dollars" ) ; } } else if ( dotIndex == ( tokenVal . length ( ) - 1 ) || ( tokenVal . length ( ) - dotIndex ) > 3 ) { NumberExpander . expandReal ( tokenVal . substring ( 1 ) , wordRelation ) ; wordRelation . addWord ( "dollars" ) ; } else { String aaa = tokenVal . substring ( 1 , dotIndex ) ; aaa = Utilities . deleteChar ( aaa , ',' ) ; String bbb = tokenVal . substring ( dotIndex + 1 ) ; NumberExpander . expandNumber ( aaa , wordRelation ) ; if ( aaa . equals ( "1" ) ) { wordRelation . addWord ( "dollar" ) ; } else { wordRelation . addWord ( "dollars" ) ; } if ( bbb . equals ( "00" ) ) { } else { NumberExpander . expandNumber ( bbb , wordRelation ) ; if ( bbb . equals ( "01" ) ) { wordRelation . addWord ( "cent" ) ; } else { wordRelation . addWord ( "cents" ) ; } } } }
converts us money string into ( word ) items in the wordrelation .
