Building a Concordance of Terms in a Series of Texts

Compute the frequency distribution of a search term in a series of texts. For example, Arthur Conan Doyle wrote a total of 60 Sherlock Holmes stories, comprised of 54 short stories and 4 longer novels. I wanted to test my own subjective impression that, in many of the stories, Sherlock Holmes' popularity was used as bait to induce the reader to read a story that is essentially not primarily a Sherlock Holmes story. I used the term "Holmes" as a search pattern, since Watson would frequently address him by name, or use his name to describe something that he was doing. My hypothesis is that the frequency distribution of the search pattern "Holmes" is a good proxy for the degree to which a story is or is not truly a Sherlock Holmes story. The results are presented in a manuscript that is available as a vignette and online at < https://barryzee.github.io/Concordance/index.html>.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("SherlockHolmes")

1.0.2 by Barry Zeeberg, a year ago


Browse source code at https://github.com/cran/SherlockHolmes


Authors: Barry Zeeberg [aut, cre]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports qpdf, stringr, dpseg, plotrix, zoo, stargazer, utils, graphics, grDevices, stats, textBoxPlacement, plot.matrix, devtools

Suggests knitr, rmarkdown, testthat


See at CRAN