Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

english example but output french #27

Open
gouserdev opened this issue Nov 8, 2022 · 2 comments
Open

english example but output french #27

gouserdev opened this issue Nov 8, 2022 · 2 comments

Comments

@gouserdev
Copy link

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
Copy link
Author

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

@gouserdev
Copy link
Author

go version go1.17.10 linux/amd64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant