jail vs prison

jail

verb
  • To imprison. 

noun
  • In dodgeball and related games, the area where players who have been struck by the ball are confined. 

  • Confinement in a jail. 

  • A kind of sandbox for running a guest operating system instance. 

  • A place or institution for the confinement of persons held against their will in lawful custody or detention, especially (in US usage) a place where people are held for minor offenses or with reference to some future judicial proceeding. 

  • The condition created by the requirement that a horse claimed in a claiming race not be run at another track for some period of time (usually 30 days). 

prison

verb
  • To imprison. 

noun
  • Confinement in prison. 

  • 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. 

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

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