Open mikai21 opened 5 years ago
Here is example
package main import ( "fmt" "github.com/abadojack/whatlanggo" ) var whitelist_options = whatlanggo.Options{ Whitelist: map[whatlanggo.Lang]bool{ whatlanggo.Eng: true, whatlanggo.Jpn: true, whatlanggo.Kor: true, whatlanggo.Vie: true, whatlanggo.Ind: true, whatlanggo.Cmn: true, }, } func main() { info := whatlanggo.DetectWithOptions("appel", whitelist_options) fmt.Println("Language:", whatlanggo.LangToString(info.Lang), "Script:", whatlanggo.Scripts[info.Script]) }
I want to get whole language list If there are same distance(probability). Or I want to function that whole languages of probability.
Here is example