deter vs scare off

deter

verb
  • To prevent something from happening. 

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

  • To distract someone from something. 

scare off

verb
  • To deter 

  • To cause (something) to flee by frightening it. 

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