Examining the role of linguistic flexibility in the text production process