Stance and intertextuality in written discourse