fn nearest(text: &str) -> Option<u32>
The name that shares the longest run of leading characters with what was typed, when that run is long enough to be a typo rather than a coincidence.