added part of speech tagging and metrics
added correct handling of empty texts