 In order to do research for the film, Virginia Kellogg (qv) pulled  some strings to incarcerate herself in a womans prison. What she  wrote once she was out was not so much a screenplay, but a kind of  almanac of everything she witnessed while in prison. Warner Bros.  then got their screenwriters to make a screenplay out of it.