Generalize keywords into labels