deterrent vs restraint

deterrent

noun
  • Something that deters. 

adj
  • Serving to deter, preventing something from happening. 

restraint

noun
  • something that restrains, ties, fastens or secures 

  • control or caution; reserve 

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