jailed vs locked up

jailed

locked up

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