text-analysis: fix difficult word calculation.