castigate vs give what for

castigate

verb
  • To punish or reprimand someone severely. 

  • To revise or make corrections to a publication. 

  • To execrate or condemn something in a harsh manner, especially by public criticism. 

give what for

verb
  • To scold; to punish, especially verbally. 

How often have the words castigate and give what for occurred in a corpus of books? (source: Google Ngram Viewer )