kGrams static method

Set<String> kGrams(
  1. String term, [
  2. int k = 2
])

Returns a set of (lower-case) k-grams in the term.

Implementation

static Set<String> kGrams(String term, [int k = 2]) => term.kGrams(k);