private NLGElement UnwrapWordElement(
simplenlg.xmlrealiser.wrapper.XmlWordElement wordElement) {
if (wordElement == null) {
return null;
}
LexicalCategory lexCat = LexicalCategory.ANY;
ElementCategory cat = UnwrapCategory(wordElement.getCat());
if (cat != null && cat instanceof LexicalCategory) {
lexCat = (LexicalCategory) cat;
}