Skip to content

The sift4 string distance algorithm as a Rust library. Very fast string distance algorithm

License

Notifications You must be signed in to change notification settings

PrismaPhonic/sift4-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

The sift4 string distance algorithm as a Rust library. Very fast string distance algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages