R/dict_generations.R
dict_generations.RdA small dictionary of generational cohort terms (Greatest, Silent, Boomers,
Gen X, Millennials, Gen Z, Alpha, etc.) and spelling/variant forms, for use
with search_dict. Built in-package (no data()).
dict_generationsA data frame with columns variant (surface form to match), TermName (standardized label), is_cusp (logical), start and end (birth year range; Pew definitions where applicable, see https://github.com/jaytimm/AmericanGenerations/blob/main/data/pew-generations.csv).
head(dict_generations)
#> TermName variant is_cusp start end
#> 1 Greatest Greatest Generation FALSE 1901 1927
#> 2 Greatest GI Generation FALSE 1901 1927
#> 3 Greatest G.I. Generation FALSE 1901 1927
#> 4 Greatest WWII Generation FALSE 1901 1927
#> 5 Greatest World War II Generation FALSE 1901 1927
#> 6 Greatest Depression Era Generation FALSE 1901 1927
# use as term list: search_dict(corpus, by = "doc_id", terms = dict_generations$variant)