Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-deterministic output for certain language queries #9

Open
rylans opened this issue Feb 28, 2018 · 0 comments
Open

Non-deterministic output for certain language queries #9

rylans opened this issue Feb 28, 2018 · 0 comments

Comments

@rylans
Copy link
Contributor

rylans commented Feb 28, 2018

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 added a commit to rylans/whatlanggo that referenced this issue Feb 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant