I don't know, after removing URLs and URIs and trying a bunch of examples with Spanish, Portuguese and Chinese I'm yet to find a single false positive or negative.
But also I'm only testing if some text matches one specific language, not trying to "detect", so maybe that helps.