Autocode Tweets with Hashtags and Authors

MAXQDA can automatically code the text of up to 100 authors and 100 hashtags from imported Twitter data.

  1. Open the function via Analysis > Twitter > Autocode Tweets and a dialog window will appear in which you can enter the author names and hashtags you wish to autocode. When you import Twitter data, the dialog window appears automatically following the import.
  2. Autocode Twitter data dialog window
  3. In the dialog window, all exisiting Twitter document are listed. Choose the documents you wish to autocode. If the dialog window was opened automatically following an import, the most recently imported documents are already preselected.
  4. Before you can start the autocoding process, you must first select the hashtags or author names you wish to encode. To do so, use the Select hashtags and Select Authors buttons. A new dialog window will appear, in which the selected hashtags and author names are listed:
  5. Selecting hashtags for autocoding

    In the "Hashtag" column, the different hashtags are listed, and in the "Tweet" column you can see the number of tweets in which the hashtag appears. In the upper left corner you can see how many different hashtags were found in total; the top right shows how many of these hashtags are currently selected.

  6. Select the entries with the hashtags that are relevant to your analysis:
    • Select the desired row. As usual, you can select multiple rows by holding down the Ctrl key (Windows) or cmd key ( Mac ). Your selection will be highlighted in green.
    • Click the green checkmark  symbol in the upper toolbar. A green checkmark will appear in front of the the selected hashtags.
    • This procedure can be repeated as desired, or reversed by selecting a row and clicking on the Stop icon to deselect an entry. Note that a maximum of 100 entries can be selected.

  7. When you click OK, you will return to the Autocode dialog window, where you can proceed in the same manner with author names.
  8. When at least one hastag or author name is selected, the Autocode button becomes available and can be clicked.

MAXQDA then begins the autocoding process, which may take a moment depending on the number of entries. The resulting new code “Autocode Twitter data” with the date will be inserted at the top of the Code System.

The automatically inserted code in the Code System

In the automatically generated code, "Tweet hashtag" and "Tweet author" appear as  subcodes of the selected hashtags and author names. For the analysis, they are automatically sorted in descending order of frequency. The hashtags and author names that appear most often in the tweets are at the top. The codes can be managed like any other code - for example, you can change the color or arrangement, depending on what makes the most sense for your analysis.

Please note: Via Analysis > Twitter > Autocode Tweets you can open the autocode function as often as needed. It is therefore not necessary to perform the autocoding process immediately after import.

Analyzing Coded Tweets

Once you have autocoded your tweets, all the usual MAXQDA twitter analysis tools are available. For example, you can use the Coding Query to determine which tweets were written by specific authors:

  1. Activate one or more documents with Twitter data in the Document System.
  2. Activate the codes with the relevant author names in the Code System.

The result will be a compilation of all relevant tweets, which will appear in the “Retrieved Segments” window. When clicking on the Word Cloud icon in the "Retrieved Segments" toolbar, you can visualize the frequently used words in the compilation of tweets.

Further analysis options, especially when delaing with several thousand tweets that have not been autocoded, MAXQDA offers further analysis options including filters, word-based functions and statistics.

Was this article helpful?