Ideology and the origins of social science