sift4

Crates.iosift4
lib.rssift4
version0.1.4
sourcesrc
created_at2019-01-18 01:28:05.816329
updated_at2019-02-16 20:31:11.137315
descriptionThis crate provides the sift4 string distance algorithm. It is very fast and returns results similar to levenshtein
homepage
repositoryhttps://github.com/PrismaPhonic/sift4-rs
max_upload_size
id109252
size5,143
Peter Farr (PrismaPhonic)

documentation

https://docs.rs/sift4/

README

sift4

Build Status crates.io MIT licensed Released API docs

This is a rust implementation of the sift4 string distance algorithm. Sift4 is very fast and unlike sift3 more closely resembles what you would get from the Levenshtein distance algorithm.

The Algorithm

Sift4 distance

Add as dependency

sift4 is available on crates.io.

[dependencies]
sift4 = "0.1.4"

Usage

For now there is only the simple algorithm, which uses a max offset of 5:

extern crate sift4;

let distance = sift4::simple("London", "Londo");
assert_eq!(1, distance);
Commit count: 13

cargo fmt