ostracize vs sanction

ostracize

verb
  • To ban a person from a city for five or ten years through the procedure of ostracism. 

  • To exclude a person from a community or from society by not communicating with them or by refusing to acknowledge their presence; to refuse to associate with or talk to; to shun. 

sanction

verb
  • To penalize (a state etc.) with sanctions. 

  • To ratify; to make valid. 

  • To give official authorization or approval to; to countenance. 

noun
  • An approval, by an authority, generally one that makes something valid. 

  • A penalty, punishment, or some coercive measure, intended to ensure compliance; especially one adopted by several nations, or by an international body. 

  • A law, treaty, or contract, or a clause within a law, treaty, or contract, specifying any of the above. 

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