Say I have sample strings
sample1 <- "i have a nasty cough today"
sample2 <- "do yall like nasty burgers"
I want to check if it has the noun I am looking for AND the other relevant keyword. For example:
nouns <- c("i", "you", "we")
keywords <- c("cough", "tomorrow", "nasty")
The function should return TRUE to function(sample1) and FALSE to function(sample2) because sample2 does NOT have a noun from my specified vector, even if it has a keyword.
I am familiar with str_contains() from the sjmisc package, but am unsure how to extend it to combinations of two vectors.