The story is based on the series of paintings entitled A Harlot's Progress by William Hogarth. Hogarth's work is inspired by his interactions with an eighteenth-century prostitute Mary Collins.