pub fn char_ngrams(s: &str, n: usize) -> BTreeMap<String, usize>
Extract character-level n-grams with frequency counts.
Returns a BTreeMap for deterministic ordering.
BTreeMap