 Sofia Coppola (qv) wrote a lot of the film based on her life. The  character of John (Giovanni Ribisi (qv)) was loosely based on her  husband Spike Jonze (qv). Rumor has it that the Anna Faris (qv)  character, Kelly, was supposedly Cameron Diaz (qv), with whom  Spike Jonze worked with on _Being John Malkovich (1999)_ (qv),  though Coppola denied the connection in an Entertainment Weekly  interview.