Split string into sentences

Parsing sentences is far from being a trivial task, even for latin languages like English. A naive approach like the one you outline in your question will fail often enough that it will prove useless in practice. A better approach is to use a BreakIterator configured with the right Locale. BreakIterator iterator = BreakIterator.getSentenceInstance(Locale.US); String … Read more