From William James to John Dewey, pragmatism dominated American thought in the first half of the 20th century