captivity vs confinement

captivity

noun
  • The state of being captive. 

  • The state or period of being imprisoned, confined, or enslaved. 

confinement

noun
  • The act of confining or the state of being confined. 

  • lockdown 

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