

def get(self, n):
    'Get n-gram.'
    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 (self == ' '):
            return
        return ch
    else:
        return self.grams[(- n):]

dataset/ETHPy150Open Mimino666/langdetect/langdetect/utils/ngram.py NGram.get/VarMisuse@80/96 `ch`->`self`