Modified LemmaWordResource, made it more generic.