duly vs grammatically

duly

adv
  • In a due, fit, or becoming manner; as it ought to be; properly. 

  • Regularly; at the proper time. 

grammatically

adv
  • in a grammatical manner 

  • concerning grammar 

How often have the words duly and grammatically occurred in a corpus of books? (source: Google Ngram Viewer )