comments calculateNgram