A model of text for experimentation in the social sciences