deterrent vs solacing

deterrent

noun
  • Something that deters. 

adj
  • Serving to deter, preventing something from happening. 

solacing

noun
  • solace 

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