Function countNgrams

  • Count the total number of n-grams of a string.

    Parameters

    • x: string

      a string

    • n: number

      n-gram length

    Returns number

    |gᵢ| | gᵢ = iᵗʰ n-gram

Generated using TypeDoc