It can often be difficult and time-consuming to organize raw text data into meaningful insights. Manually coding even a single text question can take several hours, even with relatively small sample sizes. Displayr has built-in text categorization tools designed to help you quickly categorize your text data to help easily find valuable insights. One of these tools is the automatic categorization of text data into a list of items.

The example below uses text data from a survey about Tom Cruise.ย  An open-ended question asked respondents "What don't you like about Tom Cruise?", which yielded a wide range of responses.ย  Use the automatic categorization tools in Displayr to generate a list of items to see what main themes are of concern to the survey respondents.

Automatic Categorization of Text Data into a List of Items

Start by first importing your data containing the text variable you want to categorize into Displayr (see here for more information on importing). With the data loaded into Displayr, you're now ready to run the categorization analysis:

  1. Go toย Insert > Text Analysis (Analysis group) > Automatic Categorization > List ofย  Items.
  2. In theย object inspectorย (the section that opens on the right of the screen), underย Inputs > Text variable(s) select the variable that contains the text you want to analyze.
  3. Change theย Inputs > Minimum category sizeย to the number of categories you would like to classify the data into.ย  For this example, we'll set the number of categories to 2. This means that Displayr will only show categories that contain at least 2 responses.

Object inspector for List of Items4. The output will calculate automatically:

List of items output

Interpreting the Output

The left side of the output lists the automatically generated categories.ย  The number of individual responses that are put into each category are displayed in the frequency column. The variants indicate how many different specific variations of responses there are in each category. The right side of the output shows the raw (original) text and the normalized or categorized text. The normalized text is the "cleaned" text. In other words, this is the text after spell checking, stemming, word removals and other cleaning functions are performed.

The colored boxes around the word categories are randomly assigned to each category. The only purpose of this is to give specific words a unique style and make them easier to identify.ย  There is no further meaning to this.ย  If "Scientologist" is in a blue box, then all occurrences of "Scientologist" will be in a blue box.ย  This makes it easier to recognize common categories.

How to Save the Categories to your Data Set

You can saved the created categories to your data set as a new variable which can then be used in other analyses.ย  Make sure that the output above is selected on the Pageย and then go toย Insert > Text Analysis > Advanced > Save Variable(s) > Categories.ย  Aย new multi-select variable is added to your Data Setย tree below your original text variable. You can now use this like any of the other variables in your data to create tables, crosstabs, charts and visualizations.