Text this: Laws and explanation in history