brig vs prison

brig

noun
  • A jail or guardhouse, especially in a naval military prison or jail on a ship, navy base, or (in fiction) spacecraft. 

  • A two-masted vessel, square-rigged on both foremast and mainmast 

  • Bridge. 

  • Brigadier. 

prison

noun
  • A place or institution where people are held against their will, especially for long-term confinement of those awaiting trial or convicted of serious crimes or otherwise considered undesirable by the government. 

  • Confinement in prison. 

  • Any restrictive environment, such as a harsh academy or home. 

verb
  • To imprison. 

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