Skip to main content

Module prose_patterns

Module prose_patterns 

Source
Expand description

Deterministic, loss-conscious compression for repetitive prose.

This pass runs before section ranking. It never enters fenced code blocks, never rewrites a surviving sentence, and only removes later duplicates or explanatory detail that is already represented by a preserved error.

Structs§

PatternCompression
Result of the pre-ranking prose pattern pass.

Functions§

compress_prose_patterns
Compress repeated prose while preserving code fences verbatim.
remove_seen_instruction_lines
Remove instruction lines already emitted by an earlier conversation turn.