jancajthaml-go / levenstein

levenstein string distance

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

levenstein distance

Go Report Card

Algorithm will measure the minimum number of single-character edits (insertions, deletions or substitutions) required to change one word into the other resulting in integer weight of strings "simmilarity".

formula

Practical usage

Increasing fidelity of search algorithms, e.g if I search for "Mony Lawndaring", and I want system to bring back results for "Money Laundering".

Usage

import "github.com/jancajthaml-go/levenstein"

levenstein.Distance("aba", "bba")

Performance

  • 48 B/op
  • 1 allocs/op

verify your performance by running make benchmark

Resources

About

levenstein string distance

License:The Unlicense


Languages

Language:Go 92.4%Language:Makefile 7.6%