Skip to main content

nearest_setting_key

Function nearest_setting_key 

Source
pub fn nearest_setting_key(key: &str) -> Option<&'static str>
Expand description

Returns the closest known key to key, when one is similar enough.

Reuses rapidfuzz Jaro-Winkler, the same scorer already used for entity name resolution in crate::storage::entities, instead of introducing a second similarity implementation.