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

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

        Assertions.assertEquals(expected, result);
    }