A study on term weighting for text categorization: A novel supervised variant of tf.idf