Add metric 'idf' to method 'Term.toString()'.