whatlanggo icon indicating copy to clipboard operation
whatlanggo copied to clipboard

Natural language detection library for Go

Results 14 whatlanggo issues
Sort by recently updated
recently updated
newest added

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...

`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...