Skip to main content

normalize_prose

Function normalize_prose 

Source
pub fn normalize_prose(prose: &str) -> Result<(String, ContentId)>
Expand description

Normalizes prose into the byte-level source identity used by FORGE.

The normal form trims leading and trailing ASCII whitespace and collapses each internal ASCII whitespace run to one space. It preserves case, spelling, punctuation, and non-ASCII bytes exactly; this is a deterministic byte-level key, not a semantic lookup.