question: 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" ) ; } } } }
target:  Converts US money string into (word) Items in the WordRelation.