deter vs encourage

deter

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

  • To prevent something from happening. 

  • To distract someone from something. 

encourage

verb
  • To mentally support; to motivate, give courage, hope or spirit. 

  • To spur on, strongly recommend. 

  • To foster, give help or patronage 

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