grammatically vs rightly so

grammatically

adv
  • in a grammatical manner 

  • concerning grammar 

rightly so

adv
  • fairly, justly, correctly 

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