the one who writes the text of a play​