private static void expandLargeNumber(String numberString,String order,int numberZeroes,WordRelation wordRelation){
  int numberDigits=numberString.length();
  int i=numberDigits - numberZeroes;
  String part=numberString.substring(0,i);
  Item oldTail=wordRelation.getTail();
  expandNumber(part,wordRelation);
  if (wordRelation.getTail() == oldTail) {
    expandNumberAt(numberString,i,wordRelation);
  }
 else {
    wordRelation.addWord(order);
    expandNumberAt(numberString,i,wordRelation);
  }
}

private static void expandLargeNumber ( String numberString , String order , int numberZeroes , WordRelation wordRelation ) { int numberDigits = numberString . length ( ) ; int i = numberDigits - numberZeroes ; String part = numberString . substring ( 0 , i ) ; Item oldTail = wordRelation . getTail ( ) ; expandNumber ( part , wordRelation ) ; if ( wordRelation . getTail ( ) == oldTail ) { expandNumberAt ( numberString , i , wordRelation ) ; } else { wordRelation . addWord ( order ) ; expandNumberAt ( numberString , i , wordRelation ) ; } }
expands a string that is a number longer than 3 digits into a list of english words . for example , " 1000 " into one thousand .
