The modification involves changing the document frequency count in idf calculation such that for n-grams with n > 1 document frequency is always considered to be one.
we assume that all multi-word candidates occur in one document only.