head(kwic(inaugTexts, "secure*", window = 3, valuetype = "glob"))
head(kwic(inaugTexts, "secur", window = 3, valuetype = "regex"))
head(kwic(inaugTexts, "security", window = 3, valuetype = "fixed"))
kwic(inaugCorpus, "war against")
kwic(inaugCorpus, "war against", valuetype = "regex")
Run the code above in your browser using DataLab