[][src]Function sift4::simple

pub fn simple(s1: &str, s2: &str) -> i32

Simple will take in two strings and return the string distance using the sift4 algorithm. It uses a default max offset of 5.

Examples

extern crate sift4;

// Sift4 distance
let distance = sift4::simple("London", "Londo");   
assert_eq!(1, distance);