Skip to main content
. 2022 Dec 27;20(1):432. doi: 10.3390/ijerph20010432
Start
Loop from i = 1 to number of tweets
   Calculate tweet Text polarity using TextBlob
   If polarity is greater than zero
      Tweet Text Sentiment = positive
   Else if polarity is less than zero
      Tweet Text Sentiment[i] = negative
   Else
      Tweet Text Sentiment[i] = neutral
End