whatlanggo icon indicating copy to clipboard operation
whatlanggo copied to clipboard

Non-deterministic output for certain language queries

Open rylans opened this issue 7 years ago • 0 comments

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.

rylans avatar Feb 28 '18 16:02 rylans