public static List<String> splitPlainTextParagraphs(
        List<String> lines, int maxTokensPerParagraph) {
        return internalSplitTextParagraphs(
            lines,
            maxTokensPerParagraph,
            (text) -> internalSplitLines(
                text, maxTokensPerParagraph, false, s_plaintextSplitOptions));
    }
@Test
    public void canSplitTextParagraphsOnNewlines() {
        List<String> input = Arrays.asList(
            "This is a test of the emergency broadcast system\r\nThis is only a test",
            "We repeat this is only a test\nA unit test",
            "A small note\n"
                + "And another\r\n"
                + "And once again\r"
                + "Seriously this is the end\n"
                + "We're finished\n"
                + "All set\n"
                + "Bye\n",
            "Done");

        List<String> expected = Arrays.asList(
            "This is a test of the emergency broadcast system",
            "This is only a test",
            "We repeat this is only a test\nA unit test",
            "A small note\nAnd another\nAnd once again",
            "Seriously this is the end\nWe're finished\nAll set\nBye Done");

        List<String> result = TextChunker.splitPlainTextParagraphs(input, 15);

        Assertions.assertEquals(expected, result);
    }