Proportion ngram overlap for a range of ngrams

ngrams_analysis(a, b, range, meta = "none")

Arguments

a

string of text

b

string of text

range

integer vector for ngram range (e.g., 3:5)

Value

list of lists, each list contains:

  • proportion numeric of overlapping ngrams

  • the_grams character vector of ngrams that overlap

  • a_print string the first document, with

Examples