Added end-of-sentence capitalization detection.