Rewrite splitSentences from regular expressions to BreakIterator. Add splitWords method.