deter vs prevent

deter

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

  • To prevent something from happening. 

  • To distract someone from something. 

prevent

verb
  • To stop (an outcome); to keep from (doing something). 

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