makeRadlibs

makeRadlibs(phrase, wordset = NA)

Arguments

phrase

String including any number of the words noun, verb, adjective, adverb, plural, or interjection enclosed in curly braces

wordset

Data table of your choosing with columns "word" and "pos" at the minimum. Preferably all lowercase.

Value

New string replacing the keywords with alternatives. Hopefully funny.

Examples

if (FALSE) makeRadlibs("not sure if i should {verb} or {verb} because it's an {adjective} {noun}")