 In seeking to establish through song Liliom 's motivation for the robbery , Rodgers remembered that he and Hart had a similar problem in Pal Joey . Rodgers and Hart had overcome the problem with a song that Joey sings to himself , " I 'm Talking to My Pal " . This inspired " Soliloquy " . Both partners later told a story that " Soliloquy " was only intended to be a song about Liliom 's dreams of a son , but that Rodgers , who had two daughters , insisted that Liliom consider that Julie might have a girl . However , the notes taken at their meeting of December 7 , 1943 state : " Mr. Rodgers suggested a fine musical number for the end of the scene where Liliom discovers he is to be a father , in which he sings first with pride of the growth of a boy , and then suddenly realizes it might be a girl and changes completely . " 
