def METHOD_NAME(self, text):
    ngram = _NGram(text)
    r = "guess"
    min = sys.maxsize
    for lang in self.ngrams:
        d = self.ngrams[lang].compare(ngram)
        if d < min:
            min = d
            r = lang
    if min > 0.8 * (nb_ngrams**2):
        r = ""
    return r