masatana
go-textdistance
Go

Calculate text distance (similarity) in Golang - Experimental implementation

Last updated Jun 8, 2026
92
Stars
17
Forks
2
Issues
0
Stars/day
Attention Score
13
Language breakdown
Go 100.0%
Files click to expand
README

go-textdistance

Calculate various text distance with golang.

codecov

Implemented

How to Use

$ go get github.com/masatana/go-textdistance
package main

import ( "fmt"

"github.com/masatana/go-textdistance" )

func main() { s1 := "this is a test" s2 := "that is a test" fmt.Println(textdistance.LevenshteinDistance(s1, s2)) fmt.Println(textdistance.DamerauLevenshteinDistance(s1, s2)) fmt.Println(textdistance.JaroDistance(s1, s2)) fmt.Println(textdistance.JaroWinklerDistance(s1, s2)) }

How to test

$ go test
PASS
ok      github.com/masatana/go-textdistance     0.002s

License

This software is released under the MIT License, see LICENSE.txt.

🔗 More in this category

© 2026 GitRepoTrend · masatana/go-textdistance · Updated daily from GitHub