Automatic classification of ranking keywords in groups