whatlanggo
whatlanggo copied to clipboard
Non-deterministic output for certain language queries with white list options
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.