private void dashToWords(WordRelation wordRelation,Item tokenItem,String tokenVal){
  int index=tokenVal.indexOf('-');
  String aaa=tokenVal.substring(0,index);
  String bbb=tokenVal.substring(index + 1,tokenVal.length());
  if (matches(digitsPattern,aaa) && matches(digitsPattern,bbb)) {
    FeatureSet featureSet=tokenItem.getFeatures();
    featureSet.setString("name",aaa);
    tokenToWords(wordRelation,tokenItem,aaa);
    wordRelation.addWord(tokenItem,"to");
    featureSet.setString("name",bbb);
    tokenToWords(wordRelation,tokenItem,bbb);
    featureSet.setString("name","");
  }
 else {
    tokenToWords(wordRelation,tokenItem,aaa);
    tokenToWords(wordRelation,tokenItem,bbb);
  }
}

private void dashToWords ( WordRelation wordRelation , Item tokenItem , String tokenVal ) { int index = tokenVal . indexOf ( '-' ) ; String aaa = tokenVal . substring ( 0 , index ) ; String bbb = tokenVal . substring ( index + 1 , tokenVal . length ( ) ) ; if ( matches ( digitsPattern , aaa ) && matches ( digitsPattern , bbb ) ) { FeatureSet featureSet = tokenItem . getFeatures ( ) ; featureSet . setString ( "name" , aaa ) ; tokenToWords ( wordRelation , tokenItem , aaa ) ; wordRelation . addWord ( tokenItem , "to" ) ; featureSet . setString ( "name" , bbb ) ; tokenToWords ( wordRelation , tokenItem , bbb ) ; featureSet . setString ( "name" , "" ) ; } else { tokenToWords ( wordRelation , tokenItem , aaa ) ; tokenToWords ( wordRelation , tokenItem , bbb ) ; } }
convert the given dashed string ( e . g . " aaa - bbb " ) into ( word ) items in the wordrelation .
