fn

trigramProfile

v0.0.1tested

Extracts trigrams from a text and returns a map of trigram to count

Signature

ts
export function trigramProfile(text: string): Trigrams{ ... }

Parameters

ParameterTypeDescription
textstringThe text to extract trigrams

Returns

TrigramsA map of trigram to count