whatlanggo
whatlanggo copied to clipboard
Non-deterministic output for certain language queries
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 by using maps since in go, map keys are randomized.