def get(self, n):
        if self.capitalword:
            return
        if n < 1 or n > self.N_GRAM or len(self.grams) < n:
            return
        if n == 1:
            ch = self.grams[-1]
            if ch == ' ':
                return
            return ch
        else:
            return self.grams[-n:]
Get n-gram.
dataset/ETHPy150Open Mimino666/langdetect/langdetect/utils/ngram.py/NGram.get