Text this: The logic of the history of ideas