Gather terms related to subjects
Arguments
- v
Text vector or annotated data frame.
- dictionary
The dictionary of 20 major political topics from the Comparative Agendas Project (Jones et al., 2023) is used by default. Users can also declare a custom dictionary as a vector or a list. If users declare a vector, each element is treated as a independent topic. If users declare a list of subjects and related terms, function understands names as topic and words as terms.
Details
This function relies on keyword assisted topic models implemented in the `{keyATM}` package to find related words based on the topics provided and texts in which they appear.
References
Eshima S, Imai K, and Sasaki T. 2024. “Keyword-Assisted Topic Models.” _American Journal of Political Science_, 68(2): 730-750. doi:10.1111/ajps.12779