Update WritingStyleAnalyzer.java

Correct code mistakes