private static Set<String> getMaleNames() { if (MALE_NAMES == null) { InputStream in = Utils.getMaleNames(); try { MALE_NAMES = Utils.readStringsSet(in); } catch (Exception e) { throw new RuntimeException(e); } } return MALE_NAMES; }
private static Set<String> getStopwords() { if (STOPWORDS == null) { InputStream in = Utils.getStopwords(); try { // System.out.println("Reading in stopwords"); STOPWORDS = Utils.readStringsSet(in); } catch (Exception e) { throw new RuntimeException(e); } } return STOPWORDS; }