minor changes to analysedSentence