Skip to main content

nearest_citation_key

Function nearest_citation_key 

Source
fn nearest_citation_key(
    unknown: &str,
    records: &BTreeMap<String, BibEntry>,
) -> Option<String>
Expand description

The single loaded citation key that is a conservative near-miss for unknown, if any. Candidate filtering stays here (is_citation_key); the selection rule (length floor, len / 3 bound, ties suggest nothing) lives in crate::suggest::nearest_match.