ostracism vs punishment

ostracism

noun
  • Banishment by some general consent. 

  • In ancient Athens (and some other cities), the temporary banishment by popular vote of a citizen considered dangerous to the state. 

  • Temporary exclusion from a community or society. 

punishment

noun
  • A penalty to punish wrongdoing, especially for crime. 

  • Any harsh treatment or experience; rough handling. 

  • The act or process of punishing, imposing and/or applying a sanction. 

  • A suffering by pain or loss imposed as retribution 

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