Text this: The Kantian legacy in nineteenth-century science