def trigrams(self): '''S.trigrams -> list List of trigrams for selected language. ''' trigrams = linguistics.get_ngramms(3, self.language) return trigrams
def monograms(self): '''S.monograms -> list List of monograms for selected language. ''' monograms = linguistics.get_ngramms(1, self.language) return monograms
def bigrams(self): '''S.bigrams -> list List of bigrams for selected language. ''' bigrams = linguistics.get_ngramms(2, self.language) return bigrams
def tetragrams(self): '''S.tetragrams -> list List of tetragrams for selected language. ''' tetragrams = linguistics.get_ngramms(4, self.language) return tetragrams