Returns a hashmap of k-grams to terms from the collection of tokens.
Map<String, Set<String>> kGrams([int k = 2]) => terms.toKGramsMap(k);