whatlanggo
whatlanggo copied to clipboard
Natural language detection library for Go
I've found that `lang := whatlanggo.Detect("wondering if this works").Lang fmt.Println(whatlanggo.LangToString(lang))` prints "eng" about 75% of the time but it prints "nld" 25% of the time. Maybe the randomness is introduced...
New language!!!
`func detectLangBaseOnScript(text string, options Options, script *unicode.RangeTable) (Lang, float64)` The options are checked in function "detectLangInProfiles", but if the script is unicode.Han(e.g.), the options does not work at all! It...