An open API service indexing awesome lists of open source software.

https://github.com/fr0st1n/strdice

Go implementation of Dice coefficient to find similarity between two strings.
https://github.com/fr0st1n/strdice

dice-coefficient go go-module golang string string-matching string-similarity

Last synced: about 1 year ago
JSON representation

Go implementation of Dice coefficient to find similarity between two strings.

Awesome Lists containing this project

README

          

# strdice
Go implementation of [Dice coefficient](https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient) to find similarity between two strings.

## Install
```bash
go get github.com/FR0ST1N/strdice
```

## Example
```go
package main

import (
"fmt"
"github.com/FR0ST1N/strdice"
)

func main() {
fmt.Print(strdice.Compute("mouse", "mouse trap")) // 0.66
}
```

## License
- [MIT](LICENSE)