word = lex.getWord(base, LexicalCategory.NOUN); // Kilgarriff;s interjections are mostly nouns in the lexicon
if (word == null)
System.out.println("Missing " + base + ":" + cat);
else
xmlFile.write(word.toXML());
line = wordListFile.readLine();;
}
xmlFile.write(String.format("</lexicon>%n"));
wordListFile.close();
xmlFile.close();