refactor wordDef parser