compare_txt | R Documentation |
Match cheaters
compare_txt(txt1, txt2, n_grams = 10, across = c("both", "txt1", "txt2"))
txt1, txt2 |
character vectors to compare, each of length 1. |
n_grams |
see ngram package. |
across |
How should the percentage of overlap be computed? |
The percent (0-1) of overlap between the texts
Mattan S. Ben-Shachar
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.