Type Alias: ContextWindow
ContextWindow =
"off"|"per-block"|"per-section"|"per-document"
Defines the scope within which the homophone marker and first-occurrence
filter track previously seen readings. Corresponds to Rust ContextWindow.
"off"— Disable the corresponding middleware entirely."per-block"— Reset at each block boundary (paragraph, list item, heading, …). This is the default for both homophone marking and first- occurrence filtering. In plain text, which has no block scopes,per-blockis document-wide."per-section"— Reset at each heading boundary (HTML<h1>–<h6>, Markdown ATX/setext headings)."per-document"— Track across the entire document. This buffers the entire token stream and is appropriate only for small inputs or when full accuracy matters more than latency.