punish vs take the rap

punish

verb
  • To treat harshly and unfairly. 

  • To handle or beat severely; to maul. 

  • To consume a large quantity of. 

  • To cause to suffer for crime or misconduct, to administer disciplinary action. 

take the rap

verb
  • To be blamed or punished for something, especially for the wrongful actions of another; to willingly allow oneself to be so blamed or punished. 

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