go-lang-detector icon indicating copy to clipboard operation
go-lang-detector copied to clipboard

english example but output french

Open gouserdev opened this issue 2 years ago • 2 comments

package main

import ( "fmt"

//"github.com/chrisport/go-lang-detector"
"github.com/chrisport/go-lang-detector/langdet/langdetdef"

)

func main() { detector := langdetdef.NewWithDefaultLanguages() testString := "do not care about quantity" result := detector.GetClosestLanguage(testString) fmt.Println(result) }

gouserdev avatar Nov 08 '22 12:11 gouserdev

go run ./cmd/test/main.go french

gouserdev avatar Nov 08 '22 12:11 gouserdev

go version go1.17.10 linux/amd64

gouserdev avatar Nov 08 '22 12:11 gouserdev