Code used for a comparative study of a topic model and the index to Adam Smith's Wealth of Nations