pub fn term_frequency(s: &str) -> BTreeMap<String, f64>
Compute term frequency (TF) for each word in a string.
Splits on whitespace, converts to lowercase, counts occurrences, and normalizes by total word count.