Published on in Vol 24, No 2 (2022): February

Preprints (earlier versions) of this paper are available at https://preprints.jmir.org/preprint/31978, first published .
Getting a Vaccine, Jab, or Vax Is More Than a Regular Expression. Comment on “COVID-19 Vaccine-Related Discussion on Twitter: Topic Modeling and Sentiment Analysis”

Getting a Vaccine, Jab, or Vax Is More Than a Regular Expression. Comment on “COVID-19 Vaccine-Related Discussion on Twitter: Topic Modeling and Sentiment Analysis”

Getting a Vaccine, Jab, or Vax Is More Than a Regular Expression. Comment on “COVID-19 Vaccine-Related Discussion on Twitter: Topic Modeling and Sentiment Analysis”

Authors of this article:

Jack Alexander Cummins1 Author Orcid Image

Letter to the Editor

Manchester Essex Regional High School, Manchester, MA, United States

Corresponding Author:

Jack Alexander Cummins

Manchester Essex Regional High School

36 Lincoln Street

Manchester, MA, 01944

United States

Phone: 1 9788101169

Email: 2jackcummins@gmail.com



Lyu et al [1] used natural language processing techniques to analyze the topics and sentiment of Twitter conversations related to the COVID-19 vaccine using the Twitter chatter data set created by Georgia State University’s Panacea Lab. Tweets that contained any of the following keywords “vaccination,” “vaccinations,” “vaccine,” “vaccines,” “immunization,” “vaccinate,” and “vaccinated” were selected for further analysis (eg, topic modeling and sentiment analysis).

I would suggest that the study might be enhanced by including additional keyword searches for vaccination synonyms identified by a method such as the Continuous Bag of Words (CBOW) word2vec model [2]. While the study focused on formal language such as “vaccination” and “vaccine,” other colloquial terms are commonly used on Twitter and other social media platforms to describe the vaccination process.

I identified synonyms for “vaccination” commonly used on Twitter by using the gensim implementation of the CBOW word2vec model [3]. This model predicts synonyms and related words by creating vector representations of words. Words with similar vector representations are more likely to be synonyms than words with dissimilar vector representations. I trained the CBOW word2vec model on 503,862 tweets containing the keyword “covid” or “corona” from June 24-27, 2021, collected through the rtweet package [4]. The keyword pattern search results included tweets using words related to COVID-19 such as “covid-19” or “coronavirus.”

Out of the 503,862 COVID-19–related tweets downloaded with rtweet, 94,768 contained at least one of the words searched for in the study by Lyu et al [1]. In addition, a total of 22,587 tweets used the terms “shot,” “shots,” “jab,” “jabs,” “jabbed,” “vax,” or “vaxxed.” The words “shot” or “shots” were used in 9017 tweets. The words “jab,” “jabs,” or “jabbed” were used in 7021 tweets. The words “vax” or “vaxxed” were used in 4081 tweets. Out of the 22,587 tweets that contained these alternative terms, 15,855 (70.2%) were tweeted by users who self-disclosed their location on their user profile. Using the Nominatim application programming interface, it was possible to identify geocoded location, including country, for 13,101 of the 15,855 user-disclosed locations [5]. Of these 13,101 geocoded tweets, 3111 were from the United Kingdom, of which 2261 used “jab,” “jabbed,” or “jabs.” Among the geocoded tweets, 4910 were from the United States; of these, 2704 included “shot” or “shots” and 1130 used “vax” and “vaxxed.”

I would propose that researchers performing keyword searches on social media chatter consider using the CBOW word2vec model to enhance their studies by expanding the number of comments they capture and to reduce geographic or population bias that may occur from the preselection of terminology. The CBOW word2vec model can help capture more completely the full range of word choices used by social media users.

Conflicts of Interest

None declared.

Editorial Notice

The corresponding author of "COVID-19 Vaccine–Related Discussion on Twitter: Topic Modeling and Sentiment Analysis" declined to respond to this letter.

  1. Lyu JC, Han EL, Luli GK. COVID-19 Vaccine-Related Discussion on Twitter: Topic Modeling and Sentiment Analysis. J Med Internet Res 2021 Jun 29;23(6):e24435 [FREE Full text] [CrossRef] [Medline]
  2. Mikolov T, Chen K, Corrado G, Dean J. Efficient Estimation of Word Representations in Vector Space. arXiv. Preprint posted online Jan 16, 2013. [FREE Full text]
  3. Řehůřek R, Sojka P. Software Framework for Topic Modelling with Large Corpora. 2010 Presented at: Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks; May 22; Valletta, Malta   URL: https://radimrehurek.com/lrec2010_final.pdf [CrossRef]
  4. Kearney M. rtweet: Collecting and analyzing Twitter data. JOSS 2019 Oct;4(42):1829. [CrossRef]
  5. Nominatim. OpenStreetMap Wiki.   URL: https://wiki.openstreetmap.org/wiki/Nominatim [accessed 2021-07-12]


CBOW: Continuous Bag of Words


Edited by T Leung; This is a non–peer-reviewed article. submitted 12.07.21; accepted 01.02.22; published 23.02.22

Copyright

©Jack Alexander Cummins. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 23.02.2022.

This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.