The role of language in learning history