public static void expandDigits(String numberString,WordRelation wordRelation){
  int numberDigits=numberString.length();
  for (int i=0; i < numberDigits; i++) {
    char digit=numberString.charAt(i);
    if (isDigit(digit)) {
      wordRelation.addWord(digit2num[numberString.charAt(i) - '0']);
    }
 else {
      wordRelation.addWord("umpty");
    }
  }
}

public static void expandDigits ( String numberString , WordRelation wordRelation ) { int numberDigits = numberString . length ( ) ; for ( int i = 0 ; i < numberDigits ; i ++ ) { char digit = numberString . charAt ( i ) ; if ( isDigit ( digit ) ) { wordRelation . addWord ( digit2num [ numberString . charAt ( i ) - '0' ] ) ; } else { wordRelation . addWord ( "umpty" ) ; } } }
expands given token to list of words pronouncing it as digits
