deter vs impede

deter

verb
  • To persuade someone not to do something; to discourage. 

  • To prevent something from happening. 

  • To distract someone from something. 

impede

verb
  • To get in the way of; to hinder. 

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