An implementation of Dice coefficient algorithm in Go. Code is based on aceakash/string-similarity
$ go get github.com/robopuff/go-dice
https://godoc.org/github.com/robopuff/go-dice
similarity := dice.ComparePair("healed", "sealed")
// `similarity` will be equal to 0.8
bestIndex, results := dice.FindBest("healed", []string{"mailed", "edward", "sealed", "theatre"})
// Since highest score will have "sealed" `bestIndex` will be equal to `2`
// and results will provide an array of ordered float32 similarity scores
This software is licensed under the BSD-3-Clause License. View the license.