Title: | Build Your Own Madlibs! |
---|---|
Description: | Make your phrase or sentence into something funny! Pass a string with the keywords in, and get out a bit of humor. |
Authors: | Stephanie Kirmer [aut, cre] |
Maintainer: | Stephanie Kirmer <[email protected]> |
License: | BSD_3_clause + file LICENSE |
Version: | 0.2.0 |
Built: | 2024-11-28 06:38:05 UTC |
Source: | CRAN |
A dataset compiled by Tomas Englethaler for his research on humor. https://github.com/tomasengelthaler/HumorNorms Please visit his page for more details on the methodology used to score words.
data(humor_dataset)
data(humor_dataset)
A data frame with 4997 rows and 16 variables:
string of the actual word
mean of humor rating across all audiences
mean of humor rating (women)
mean of humor rating (men)
mean of humor rating (old)
mean of humor rating (young)
audience size
audience size (women)
audience size (men)
audience size (old)
audience size (young)
sd of humor rating across all audiences
sd humor rating (women)
sd of humor rating (men)
sd humor rating (old)
sd of humor rating (young)
https://github.com/tomasengelthaler/HumorNorms
makeRadlibs
makeRadlibs(phrase, wordset = NA)
makeRadlibs(phrase, wordset = NA)
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. |
New string replacing the keywords with alternatives. Hopefully funny.
## Not run: makeRadlibs("not sure if i should {verb} or {verb} because it's an {adjective} {noun}")
## Not run: makeRadlibs("not sure if i should {verb} or {verb} because it's an {adjective} {noun}")
POSTagger
POSTagger(wordDF)
POSTagger(wordDF)
wordDF |
Dataframe including one column labeled "word" for tagging |
Original dataframe including part of speech columns.
## Not run: newwords <- data.frame(word = c("cat", "green", "slowly")) POSTagger(newwords) ## End(Not run)
## Not run: newwords <- data.frame(word = c("cat", "green", "slowly")) POSTagger(newwords) ## End(Not run)
A dataset derived from https://www.kaggle.com/vered1986/propernames-categories/version/1. The words are British focused, and I have adjusted some classifications to be easier for users to work with.
data(proper_nouns)
data(proper_nouns)
A data frame with 747 rows and 2 variables:
string of the actual word
part of speech (aka celebrity, place, etc)
https://www.kaggle.com/vered1986/propernames-categories/version/1