Skip to content

Commit

Permalink
Add the example of QGram to the README
Browse files Browse the repository at this point in the history
  • Loading branch information
RoadSigns committed Apr 26, 2023
1 parent 1d133a2 commit 7dde7cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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)
```

0 comments on commit 7dde7cd

Please sign in to comment.