Implementation of TextAnalyzer.java and AutomaticPsychiatrist.java