fixed divide by zero error in simple-text-analysis