To cite text in publications use:

Kjell O, Giorgi S, Schwartz HA (2023). “The text-package: An R-package for Analyzing and Visualizing Human Language Using Natural Language Processing and Deep Learning.” Psychological Methods. doi:10.1037/met0000542, https://osf.io/preprints/psyarxiv/293kt/.

Corresponding BibTeX entry:

  @Article{,
    title = {The text-package: An R-package for Analyzing and
      Visualizing Human Language Using Natural Language Processing and
      Deep Learning},
    author = {Oscar Kjell and Salvatore Giorgi and H. Andrew Schwartz},
    journal = {Psychological Methods},
    doi = {10.1037/met0000542},
    year = {2023},
    url = {https://osf.io/preprints/psyarxiv/293kt/},
  }