Skip to main content

name_score

Function name_score 

Source
pub(crate) fn name_score(object: &str, candidate: &str) -> u16
Expand description

Score how well object names candidate (per-mille): exact = 1000, otherwise the share of the longer side’s tokens that match.