recursive static method
Chunk text using standard recursive character splitter.
Splits by paragraphs, then sentences, then words to fit within maxChars.
text - The text to split.
maxChars - Maximum characters per chunk (default: 500).
overlapChars - Overlap between chunks for context continuity (default: 50).
Implementation
static Future<List<chunker.SemanticChunk>> recursive(
String text, {
int maxChars = 500,
int overlapChars = 50,
}) async => chunker.semanticChunkWithOverlap(
text: text,
maxChars: maxChars,
overlapChars: overlapChars,
);