powered by
Match cheaters
compare_txt(txt1, txt2, n_grams = 10, across = c("both", "txt1", "txt2"))
character vectors to compare, each of length 1.
see ngram package.
How should the percentage of overlap be computed?
The percent (0-1) of overlap between the texts
# NOT RUN { text1 <- "My horse is large and white, and I ride it every day." text2 <- "My mule is large and brown, and I ride it most days." compare_txt(text1, text2, n_grams = 3) # }
Run the code above in your browser using DataLab