diff --git a/README.md b/README.md index 9bf3e1b..cabf840 100644 --- a/README.md +++ b/README.md @@ -61,4 +61,9 @@ fuzzy.SorensenDice("elon musk", "colon musk") ### Q-Gram The Q-Gram algorithm is a similarity algorithm that It does this by dividing each string into substrings of length Q and then comparing the substrings to determine how many of them are the same in both strings. -Additional information for this algorithm can be found https://en.wikipedia.org/wiki/N-gram \ No newline at end of file +Additional information for this algorithm can be found https://en.wikipedia.org/wiki/N-gram +```go +import "github.com/roadsigns/fuzzy" + +fuzzy.QGram("John Jones", "Jon Jones", 3) +``` \ No newline at end of file