brig vs penitentiary

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. 

penitentiary

noun
  • A state or federal prison for convicted felons; (broadly) a prison. 

  • A priest in the Roman Catholic Church who administers the sacrament of penance. 

adj
  • Of or relating to penance; penitential. 

  • Of or relating to the punishment of criminals. 

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