Implementation of Sørensen–Dice coefficient to check how similar 2 strings are.
Returns a fraction between 0 and 1, which indicates the degree of similarity between the two strings. 0 indicates completely different strings, 1 indicates identical strings. The comparison is case-sensitive.
The CompareTwoStrings
function requires 2 strings to be compared and returns a fraction from 0 to 1, both inclusive. Higher number indicates more similarity.
Golang
After cloning or downloading the project, run the following command:
$ go run main.go