Learn R Programming

textpress (version 1.1.0)

dict_political: Demo dictionary of political / partisan term variants for NER

Description

A small dictionary of political party and ideology terms (Democrat, Republican, MAGA, Liberal, Conservative, Christian Nationalist, White Supremacist, etc.) and spelling/variant forms, for use with search_dict. Built in-package (no data()).

Usage

dict_political

Arguments

Format

A data frame with columns variant (surface form to match) and TermName (standardized label).

Examples

Run this code
head(dict_political)
# search_dict(corpus, by = "doc_id", terms = dict_political$variant)

Run the code above in your browser using DataLab