Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 951 Bytes

README.md

File metadata and controls

30 lines (17 loc) · 951 Bytes

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