public static String vocabString(){
  StringWriter sw=new StringWriter(Vocabulary.systemSize() * 10);
  try {
    systemIndex.saveToWriter(sw);
    return sw.toString();
  }
 catch (  IOException e) {
    logger.error("Unable to write system vocabulary.");
  }
  return "";
}

public static String vocabString ( ) { StringWriter sw = new StringWriter ( Vocabulary . systemSize ( ) * 10 ) ; try { systemIndex . saveToWriter ( sw ) ; return sw . toString ( ) ; } catch ( IOException e ) { logger . error ( "Unable to write system vocabulary." ) ; } return "" ; }
write the vocabulary to a string .
