Join GitHub today
Should not fail and throw an exception when given punctuation, UTF-8 chars/symbols, empty text #4
There are a number of different cases where the language detector will fail:
This is probably an issue with the underlying library, but if so, then would be nice for this wrapper to run some checks. Currently I have the following checks implemented in my client: https://gist.github.com/gibrown/7122061
Running about a million lang detect API calls a day, and I think this catches almost all failures.