To cite sweater in publications use:

Chan C (2022). “sweater: Speedy Word Embedding Association Test and Extras Using R.” Journal of Open Source Software, 7(72), 4036. doi:10.21105/joss.04036, https://github.com/chainsawriot/sweater.

Corresponding BibTeX entry:

  @Article{,
    title = {sweater: Speedy Word Embedding Association Test and Extras
      Using R},
    journal = {Journal of Open Source Software},
    author = {Chung-hong Chan},
    doi = {10.21105/joss.04036},
    url = {https://github.com/chainsawriot/sweater},
    volume = {7},
    number = {72},
    pages = {4036},
    year = {2022},
  }