Added grammar information calculator