n-gram width
https://en.wikipedia.org/wiki/Sentinel_value|sentinel character – added to term on add and has to ensure that whole terms on index are checked.
normalises search terms, defaults to static Index.normalise
Does the index has term?
RangeError if term is shorter than n
Normalise a term
Calls the normalisation function given on constructor, and checks that term length is at least index length.
RangeError if term is shorter than n
Static
fromCreate index from terms
Terms can be an array of terms or an object mapping ids to terms
Rest
...args: [number?, string?, NormaliseFunction?]Static
normaliseStatic
update
Unicode capable https://en.wikipedia.org/wiki/N-gram|N-gram search index for writing custom https://en.wikipedia.org/wiki/Autocomplete|autocompletions