emoji_type() adds .emoji_type, the distinct functional types present in
each row (see as_emoji_type()), separated by | when a row spans more than
one. The face-versus-object contrast it exposes is the key variable in the
consumer-behaviour literature on emoji in reviews and marketing copy.
Value
data, as a tibble, with an added .emoji_type column. Unlike
emoji_categorize(), no rows are dropped: a row with no emoji gets NA.
Examples
df <- data.frame(text = c("yum \U0001f355 \U0001f600", "\U0001f44d", "none"))
emoji_type(df, text)
#> # A tibble: 3 × 2
#> text .emoji_type
#> <chr> <chr>
#> 1 yum 🍕 😀 face|food
#> 2 👍 gesture
#> 3 none NA