code: def frequency_model( self ):
          
          # use a generator in corpus
          for next_letter in self.corpus.next_tamil_letter():
              # update frequency from corpus
              self.letter[next_letter] = self.letter[next_letter] + 1
docs: build a letter frequency model for Tamil letters from a corpus