A Social-Interactive Model of Writing