Bias, diversity, and challenges to fairness in classification and automated text analysis. From libraries to AI and back