top
(README.md)
go-jaro-winkler-distance [![Codeship Status for 9uuso/go-jaro-winkler-distance](https://codeship.com/projects/3650d490-0484-0133-f7cd-1a88c4115bd9/status?branch=master)](https://codeship.com/projects/89371) [![GoDoc](https://godoc.org/github.com/9uuso/go-jaro-winkler-distance?status.png)](https://godoc.org/github.com/9uuso/go-jaro-winkler-distance)
=====

Native [Jaro-Winkler distance](https://en.wikipedia.org/wiki/Jaro%E2%80%93Winkler_distance) in Go.

Jaro-Winkler distance calculates the familiriaty of two strings on range 0 to 1.

For example comparing words `DIXON` and `DICKSONX` gives you score of `0.8133333333333332`, whilst comparing words `sound` and `ääni` will yield `0.438`. That being said, this package also supports unicode characters.

### Example

	package main

	import (
		"fmt"

		"github.com/9uuso/go-jaro-winkler-distance"
	)

	func main() {
		// See more example strings at http://www.amstat.org/sections/srms/Proceedings/papers/1990_056.pdf
		fmt.Println(jwd.Calculate("DIXON", "DICKSONX"))
		// output: 0.8133333333333332
	}

Imported by 4 package(s)

  1. github.com/9uuso/vertigo/routes
  2. github.com/9uuso/whogo
  3. github.com/jayrox/Vertigo-alice
  4. github.com/jayrox/vertigo

Test imports 1 package(s)

  1. github.com/smartystreets/goconvey/convey