castigate vs upbraid

castigate

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

  • To revise or make corrections to a publication. 

  • To punish or reprimand someone severely. 

upbraid

verb
  • To criticize severely. 

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