pub fn compute_density(content: &str, is_definition: bool) -> f64
Compute information density for a chunk.