added new method for text_analyzer