accordingly vs grammatically

accordingly

adv
  • Agreeably; correspondingly; suitably 

  • In natural sequence; consequently; so. 

grammatically

adv
  • in a grammatical manner 

  • concerning grammar 

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