Introduction

A good negotiator will acknowledge an opponent’s most basic values and not try to change them (Atran, Axelrod, & Davis, 2007). All but the most transactional of us have protected or sacred values that we regard as nonnegotiable (Baron & Spranca, 1997). Protected values are deontological, in Kant’s (1797) sense: They are prescriptions or prohibitions regarding actions and are not as much affected by the outcomes of those actions. Decisions that do focus on outcomes (e.g., maximizing expected utility) are sometimes called consequentialist. In this article, we review evidence suggesting that consequentialist discourse leads to more intellectual openness and potential for attitude change than does discourse about protected values. We tested this claim by examining the amount of discourse of each type during discussions of an issue as public opinion about that issue changed over time. The issue was whether same-sex marriage should be legal.

Protected values are common. Many refuse to consider abortion because they believe that the act is murder, and they possess a protected value that prohibits murder, regardless of the consequences of aborting or not aborting. Sometimes protected values conflict with one another. One might believe both that abortion is murder and that a woman has a fundamental right to choose what happens to her body. People use various strategies to justify violating deeply held moral principles (Baron & Leshner, 2000; Tetlock, 2003).

When two sides with incommensurable protected values are debating policy, focusing on those values is not likely to help achieve conciliation. Indeed, evidence suggests that highlighting protected values hardens attitudes. Dehghani et al. (2009) argued that the Iranian government managed to obtain support from their citizenry to pursue a nuclear program by launching a campaign to frame possession of a nuclear industry as an inalienable right, a protected value.

A more promising approach to overcoming policy divides may be to focus on the consequences of the policy (Baron & Spranca, 1997). Asking people to consider the likely outcomes of a policy makes them more open to compromise. This type of consequentialist reasoning is a kind of causal reasoning: It is concerned with the effects of policies, the probabilities of those effects, and how good or bad they are (i.e., a different type of value).Footnote 1 Tanner, Medin, and Iliev (2008) have shown this empirically: They probed people’s deontological versus consequentialist orientations and their protected values and found that protected values tended to be more aligned with a deontological than with a consequentialist orientation.

One reason that reasoning about protected values makes disputes intractable is that it simplifies—and often oversimplifies—the issues. Fernbach, Min, and Sloman (2018) found that the degree to which individuals assume protected-values-based over consequentialist orientations toward a given issue predicts how well they think they understand that issue, as well as how intractable they consider it and how extreme their opinion is. Inducing a consequentialist perspective can reveal to people how limited is their understanding. Following Rozenblit and Keil (2002), Fernbach, Rogers, Fox, and Sloman (2013) found that asking people to explain the mechanism by which a policy would lead to some consequence modulated their own sense of understanding. It also made the respondents slightly less extreme in their attitude toward the policy. This adds to the empirical evidence suggesting that when it comes to facilitating open-mindedness and compromise, consequentialist perspectives trump protected-values perspectives.

This brief review suggests that protected-values and consequentialist perspectives are, to at least some extent, matters of framing. Many people can assume both perspectives on many issues. In a period of increasing political polarization across a range of issues (Newport & Dugan, 2017), these findings suggest an avenue for improving public discourse.

We focused on the issue of same-sex marriage because attitudes toward same-sex marriage have changed considerably over the past decade, providing a successful example of consensus-building. According to the Pew Research Center, 35% of Americans favored same-sex marriage in 2001, whereas 62% did in 2017 (Pew Research Center, 2017). The shift in attitudes has licensed major politicians to come out in support of same-sex marriage in recent years, as Democrats Hillary Clinton and Barack Obama did in 2012 and 2013, respectively. Republicans like Rob Portman and Jon Huntsman also changed their public positions in 2013. The issue came to a head in the United States on June 26, 2015, when the Supreme Court ruled on Obergefell v. Hodges that the constitution guarantees a right to same-sex marriage.

Shift in discourse

What kind of changes in discourse should we expect in the face of such opinion change? One possibility is that people on both sides of the issue will have well-formed protected values buttressing their position. In such cases, reframing the issue in consequentialist terms should make people more open-minded, as is suggested by evidence that, relative to protected-values-based discourse, consequentialist conversation leads people to see the complexity of an issue, to reduce their hubris, to focus on the outcomes of a policy rather than on their personal opinion, to see the possibility of compromise, and to engage in less polarized reasoning. When people start with protected values, changes in opinion should be correlated with shifts toward consequentialist discourse. Specifically, the shift in public attitudes surrounding same-sex marriage should be accompanied by a shift in public discourse away from talk about issues related to protected values (like the biblical definition of marriage or the fundamental right to marry who one wants) toward talk about concrete consequences and the causal processes that lead to them (e.g., marital benefits or the welfare of children raised by same-sex parents).

An alternative hypothesis is suggested by a quote from Justice Anthony Kennedy, writing for the majority in the Obergefell v. Hodges case: “No longer may this liberty be denied,” a clear framing of a pro-same-sex marriage position in terms of protected values. This illustrates that the shift in attitudes, rather than reflecting a shift from protected-values-based to consequentialist conversation, could reflect a shift from one kind of protected-values frame to another. Presumably this would occur only if people’s initial positions were based on protected values that were amenable to change. Sometimes people do not have protected values that they strongly adhere to. For instance, they might rely on protected-values frames only because they are unable to generate convincing consequentialist ones (Sloman & Fernbach, 2017). Lakoff (2004) has argued that changes in opinion are governed by changes between what are essentially different protected-values frames. To illustrate, the US civil rights movement, which led to the Voting Rights Act of 1965, used arguments in favor of the protected right of all citizens to be able to vote, regardless of race, suggesting that protected-values frames likely increased in frequency in the discussion of this issue up to 1965.Footnote 2 It is plausible, in that case, that most people did not hold intransigent protected values about voting; they probably had not thought much about the issue until it became politically charged. It is a distinct possibility that the shift in collective attitude toward same-sex marriage was accompanied by a shift from an anti-same-sex marriage protected-values frame (e.g., a religious one) to a pro-same-sex marriage protected-values frame (like Kennedy’s).

Yet another possibility is that the greater prominence of consequentialist discourse over protected values is associated with greater consensus, but that increased consensus is what triggers such a shift in discourse, rather than the other way around. The empirical work we report was designed to reveal how the discourse about same-sex marriage has changed over the past decade. Although correlational, the method’s focus on temporal trends can provide us with hints about the causal relations between protected-values-based and consequentialist discourse, on one hand, and changes in public attitude observed in national polls, on the other.

Naturally, we do not intend to suggest that the relative amount of consequentialist versus protected-values discourse is the only factor governing the public conversation. For instance, the Supreme Court decision on same-sex marriage may have had a measurable influence on what people talked about. Our method fundamentally tracks changes in the themes of discourse and can reveal such effects.

Method

Most of the research that has explored the effects of protected-values versus consequentialist framing has been performed either in an experimental setting (e.g., Tanner et al., 2008) or using field methods with small samples (e.g., Atran et al., 2007). However, the increasing popularity over the past decade of social media as a forum for discussion of socially significant topics coincided with rapid changes in public opinion surrounding same-sex marriage. This provides an opportunity to examine the prevalence of these framings in the broader discourse, using a much larger and more naturalistic sample. We used a large corpus of conversations on the popular social-media platform Reddit (https://www.reddit.com) to track the evolution of the discourse surrounding same-sex marriage over the past decade.

Self-touted as “the front page of the internet,” Reddit offers users the opportunity to post their opinions publicly in specialized forums (called subreddits), where others can upvote or downvote these opinions, making it more or less likely that other users will see the material. We chose Reddit because it is the fifth most visited website in the United States (www.redditinc.com) and because comments shared on this platform have been used in the past to uncover the determinants of changes in opinions (Tan, Niculae, Danescu-Niculescu-Mizil, & Lee, 2016). With billions of posts spanning a period of rapid change in public attitude toward same-sex marriage, presumably changes in the broader discourse would be reflected in the discourse on Reddit. Nevertheless, there is a potential for bias in our dataset, due to factors such as the disproportionate representation of young urban males on Reddit (Duggan & Smith, 2013) and Reddit’s appropriate-use policy, which may result in the deletion of certain types of messages.

Given the size of our corpus, which included 603,282 posts, it would have been impractical to manually classify the posts as protected-values-based or consequentialist. Supervised machine-learning algorithms provide increasingly refined means of automating such tasks. However, supervised methods often depend on large annotated datasets that can be difficult to obtain. Moreover, the selection of data to annotate for the algorithm’s training itself can pose difficulties and can strongly impact the algorithm’s outcomes (Bishop, 2006).

We therefore used an unsupervised learning algorithm, which obviated the need for annotated data, as an initial step to characterize the main dimensions of discourse on Reddit. Latent Dirichlet allocation (LDA; Blei, Ng, & Jordan, 2003; Hoffman, Blei, & Bach, 2010) is a method for representing the gist of a body of texts (where each text is called a document). It assumes that the gist of every document consists of several themes (topics). We used this method to identify the salient themes of more than 10 years of comments related to same-sex marriage and calculated the relative contribution of each topic to Reddit discourse.

We chose LDA because past research had shown that it can provide insights into the semantic content of natural language that go beyond the level of words, partly due to its hierarchical nature, which allows for the disambiguation of different senses of a term, given its immediate context (Griffiths, Steyvers, & Tenenbaum, 2007). There is also evidence that this method is capable of uncovering changes over time in the contributions of generally interpretable topics occurring in natural text (e.g., Cohen Priva & Austerweil, 2015), including on Reddit (e.g., Thompson, Wojtowicz, & DeDeo, 2018). More important for the purposes of this article, the same literature suggests that topic models such as LDA can be used to distinguish between not only specific content, but also different framings of the same content: Cohen Priva and Austerweil showed that articles published in the peer-reviewed journal Cognition over the past few decades became more experimental and less theoretical, even when discussing the same areas of research, such as developmental or moral psychology. It is plausible that if protected values and consequentialism are important frames for discourse about same-sex marriage, this fact would be reflected in the topics that LDA provides: Either topics exclusively related to these framings would be uncovered, or certain topics would reflect consistently more or less use of protected-values-based or consequentialist framing.

We used ratings from participants blind to LDA’s representation of the corpus to determine the degree of association between each topic and a consequentialist or protected-values-based framing. We then tracked the contributions of these two framings to the corpus over time.Footnote 3

The aim of unsupervised machine-learning methods such as LDA is to provide a generalized summary of data rather than optimized answers to specific questions. However, to demonstrate the usefulness of our method for the latter task, we compared the predictive and classification performance, as well as the interpretability of a linear model based on LDA’s topics, with the performance of a similar, keyword-based model with many more parameters that did not benefit from a topic-based representation of the text.

Data

Using all comments on Reddit from January 2006 to September 2017,Footnote 4 we created a corpus of comments matching a regular expression containing negatively or positively valenced words and phrases related to same-sex marriage (see Appendix 1). Quotes and hierarchical dependencies between the comments were ignored.

To improve the quality of our topic model, we applied common preprocessing techniques to the dataset: We changed all comments in our corpus to lowercase, to avoid different cases of the same word being treated as different words, and changed different grammatical forms of the same words to a uniform lemma (a process called lemmatization). HTML escape codes, stop words (i.e., common function words that do not distinguish between different contents), extremely rare words (words that appeared in fewer than five documents), and ubiquitous terms (words that appeared in 99% of the documents), as well as nonalphanumeric characters, were removed from the dataset. We used the lemmatizer and set of stop words from the Natural Language Toolkit (NLTK; Bird, Klein, & Loper, 2009), but retained around 20 words with possible relevance to protected-values-based or consequentialist framing (see Appendix 1). These steps were meant to reduce noise in the representation of the gist of each post. Our corpus contained 603,282 comments (15,711,221 words in total, comprising 32,925 unique words) with a mean length of 26 words (median = 20, SD = 24.99).

Figure 1 shows the number of comments in our dataset from each year. Most of the comments came from later years, even though the percentage of comments on the website that were associated with same-sex marriage decreased over time, reflecting the growing popularity of Reddit in recent years (see Appendix 1).

Fig. 1
figure 1

Numbers of posts on Reddit per year that were relevant to same-sex marriage, as determined by our regular expression (see Appendix 1)

Latent Dirichlet allocation (LDA)

Latent Dirichlet allocation is a generative hierarchical Bayesian model for discrete data (Blei et al., 2003). The model is applied to a set of collections of discrete data (a set of documents composed of a set of words) to recover latent dimensions (topics) that reflect statistical regularities among the words in each document. The structure of an LDA model lends itself naturally to recovering generally interpretable recurrent themes in data that are organized into separable chunks, such as in natural language (Griffiths et al., 2007). For our purposes, each Reddit comment was considered a document.

An LDA model is uniquely characterized by a set of words w, a set of n topics z, and the hyperparameters α and η, which determine the granularity of topics; n, α, and η are free parameters. LDA models the generative process of each document as follows: First, a multinomial distribution θ ~ Dirichlet(α) over the topic indices {k : k ∈ [1, n]} is defined. To determine each word wi ∈ w in the document, a topic index j is drawn from θ. Finally, wi is drawn from the probability distribution defined by zj (Blei et al., 2003). In short, each document is characterized as a probability distribution over topics, and each topic is characterized as a probability distribution over words. The estimated model is a hierarchical probability distribution fit to the training corpus (word order is ignored).

Training

We use a freely available and open-source implementation of an online variational Bayes algorithm (Hoffman et al., 2010) to train an LDA model on our corpus and to query the resultant model (Řehůřek & Sojka, 2010). The estimation procedure for topics is beyond the scope of this article; for more information, see Blei et al. (2003) and Hoffman et al. Ninety-nine percent of the documents (randomly chosen) were used to train the model over 1,000 iterations. The rest of the dataset was used as an evaluation set to ensure that the latter set had no more uncertainty than the training set, as a means of preventing overfitting (see Appendix 3).

Choice of hyperparameters

Following Cohen Priva and Austerweil (2015), α and η were set to .1, which encourages the model to represent each document as composed of only a few topics and to assign high probability to only a few words for a certain topic. The lower bound on per-term topic probability for inclusion in analyses was set to .01.

To determine the number of topics that offered the most intuitively interpretable representation of the corpus, we trained models with up to 100 topics in increments of 25. For each model, we looked at a combination of quantitative indicators of the model’s predictive capacity and the qualitative, semantic content of the topics.

Quantitative indicators

We looked at the per-word perplexity of each model and the rate at which it changed with different values of n for our evaluation set (Zhao et al., 2015). Per-word perplexity reflects how uncertain the model is on average when predicting each word in a document, given the other words in the document. We also calculated UMass coherence values for all models (Mimno, Wallach, Talley, Leenders, & McCallum, 2011). UMass coherence measures how much, within the words used to describe a topic, a common word is a good predictor, on average, for a less common word. All measures showed a preference for fewer topics (see Appendix 3 for the values).

Semantic content

Although per-word perplexity and UMass coherence provide an approximation to the interpretability of topics, they often do not align well with humans’ internal semantic spaces (the gold standard of coherence; Chang, Boyd-Graber, Gerrish, Wang, & Blei, 2009; Stevens, Kegelmeyer, Andrzejewski, & Buttler, 2012). We therefore also manually inspected the 80 words most strongly associated with each topic in every model. We made note of whether the vast majority of the words for each topic intuitively belonged to the same conceptual category (e.g., “finance” or “religion”) and whether most of them could presumably be used in making the same kind of appeal for or against same-sex marriage. This revealed the topics with n = 25 to mainly consist of mixtures of disparate arguments and framings. We therefore will report the results with 50 topics, because this value led to the optimal trade-off between, on the one hand, the interpretability and distinguishability of topics, and on the other, the predictive power of the model. Similar inspections for n = 45 and n = 55 suggested that our results are stable for similar numbers of topics and not an artifact of the exact value used (for all the models with various numbers of topics, the set of most representative words and their probabilities under the relevant topics can be found in the study’s online repository). The choice for n topics was made before the rest of the analysis presented in this article was conducted.

Categorizing topics as consequentialist versus protected-values-based

To determine which topics in the learned model were representative of consequentialist or protected-values-based discourse, 2,000 posts were selected from the corpus that had the greatest impact on the Reddit discourse, as proxied by the absolute difference between the numbers of up- and downvotes.Footnote 5 The differences in the numbers of upvotes and downvotes in this set ranged from – 609 to 10,343, with an average difference of 543. Eight hundred of the 2,000 posts were chosen from our corpus such that, to the extent possible, the comments most representative of each topic were evenly sampled (henceforth called impactful posts). A comment’s representativeness of a topic zj was operationalized as the percentage of words in the comment for which the topic zj was the most probable topic according to the LDA model. The sampled comments were on average 25% representative of their most likely topic. One topic out of the 50 was not the most likely topic for any comment in the eventual sample (see Appendix 2 for the distribution of topic assignments among the 2,000 comments, as well as among the rated subset).

Ratings for the resulting set of 800 posts were gathered from six trained participants (three men and three women) blind to the predictions of the model. The average age in the sample was 34 years (SD = 17, ranging from 21 to 65). All of the participants were supportive of same-sex marriage. The participants read instructions for distinguishing between protected-values-based and consequentialist discourse based on Baron and Spranca (1997). The full text of the instructions can be found in Appendix 2. The full set of impactful comments, their topic estimates, and the participant ratings for them can be found in the study’s online repository.

After comprehension check questions, participants were shown comments in randomized order and first asked to rate whether the attitude expressed in the post was in favor of same-sex marriage or against it, or whether it was impossible to tell from the content. They then rated the degree to which the post showed a consequentialist or protected-values-based framing of same-sex marriage, on a scale from 1 (completely protected-values-based) to 7 (completely consequentialist), where 4 was labeled neither. Five participants each rated 120 posts, and one participant rated 360 posts. To determine the reliability of the ratings, 20% of the posts were rated by two different raters.

The contributions of different topics to each rated impactful comment were queried from the LDA model and entered into a linear regression for training sets composed of 90% of the 800 comments. Parameter estimates from the regression were then used to predict ratings on the remaining 10%. Predictions were derived after dropping topics from the regression formula that were not significant predictors of ratings in the training set using a stepwise search. To ensure robust results despite the small size of our sample, we performed 10 ten-fold cross-validations, testing the model’s performance on 100 different test sets in total: For each ten-fold cross-validation, we randomly divided the 800 comments into 10 mutually exclusive subsets, deriving the predictions for each subset based on the other nine, and aggregating the results across all ten test subsets. This entire process was then repeated 10 times, and the results were aggregated across all 10 ten-fold cross-validations.

We chose topics for tracking over time that were significant predictors (p < .05) in the linear model for at least half of the 100 iterations. These topics were classified as either protected-values-based or consequentialist, on the basis of the sign of their associated parameter estimates averaged across all iterations.

To characterize the theme represented by each topic, we randomly chose 10 posts from the set of 25 posts in the corpus that were most representative of each top topic. Examples of the sampled comments and their associated representativeness values can be found in Appendix 4. All sampled comments can be found in the study’s online repository. We examined the comments for use of similar categories of concepts (e.g., religious dogma), as well as for arguments with appeals similar in form and content (e.g., causal analysis involving changes to the structure of mainstream families). We also queried the 40 words that had the highest probabilities under that topic. We then identified words that were only present in the high-probability set of that top topic (unique top words) or that were shared with the high-probability set of only one other top topic (almost unique top words). See Appendix 4 for the resulting sets. We then examined the sets for properties shared among the vast majority of unique or almost unique top words belonging to each topic, noting whether they belonged to similar categories of concepts or could be used in arguments similar in style or content for or against same-sex marriage.

Calculating topic contributions

To determine the relative popularity of different topics over time, we calculated the monthly contribution of topic zj (for j ∈ [1, n]) to the learned model. Following Cohen Priva and Austerweil (2015), this measure was defined as

$$ {p}_m\left({z}_j\right)=\frac{1}{\mid {D}_m\mid }{\sum}_{d\in {D}_m}\frac{\mid \left\{{w}_i\in d: topic\left({w}_i\right)={z}_j\right\}\mid }{\mid d\mid }, $$
(1)

where wi is a word in document d; d is a document, represented as an unordered bag of words in Dm (the set of documents from month m); and topic(wi) stands for the most likely topic for wi given the prior distribution over topics and the other words present in d. This measure reflects the percentage of words in a month that are most strongly associated with a certain topic. In calculating the norm of documents, only words were counted for which the conditional probability of at least one topic was more than .01.Footnote 6

Other than tracking the contributions of protected-values-based and consequentialist topics over time, this measure was used to identify topics that were major contributors to the discourse even though they were not consistently associated with either category. The combination of such topics and topics chosen on the basis of predictive value with respect to the ratings of impactful comments comprises a set that we will henceforth call top topics. We considered only these topics in the results reported below.

Comparison with a word-frequency model

Topic models such as LDA posit latent variables that make it possible to learn dependencies in text that may not be uncovered using a nonhierarchical representation of word meanings (Griffiths et al., 2007). To determine whether the LDA model captures more of the variance in the human ratings of consequentialist versus protected-values-based reasoning, we compared the test set prediction performance of the LDA-based regression model with that of a regression model that used the most discriminative words as predictors, defined according to the word-frequency model described below.

Hierarchical models of language can also provide more interpretable dimensions of variation (Griffiths et al., 2007). We therefore will also discuss the predictors included in the two regressions in terms of interpretability.

The word-frequency model used the conditional probability of each word wij (the jth word of the ith comment) in a training set of impactful comments rated as consequentialist [P(wij | consequentialist)] or protected-values-based [P(wij | protected-values-based)]. The informativeness of each word with respect to the distinction between the two frames is defined as

$$ I\left({w}_{ij}\right)=\log \frac{P\left({w}_{ij}|\mathrm{consequentialist}\right)}{P\left({w}_{ij}|\mathrm{protected}-\mathrm{values}-\mathrm{based}\right)}, $$
(2)

where greater values mean a stronger association with consequentialist framing. One hundred training and test sets were produced with 10 ten-fold cross-validations, using a procedure similar to that of the LDA predictive model described above. The informativeness values for each word were summed across all iterations to calculate each word’s overall association with the two frames of discourse. One hundred words with the highest aggregate values and 100 words with the lowest aggregate values were chosen as the best word-level predictors (see Appendix 3 for a list of these predictors).

A linear regression model was learned for each iteration following the same procedure as we described for LDA, but with these 200 words as potential predictors instead of topic contributions. Parameter estimates based on each training set were then used to predict ratings of the comments in the associated test set. Performance was averaged across all 100 iterations and compared with that of LDA.

The presence of the following words was a significant predictor of consequentialist rating of an impactful comment in more than half of the 100 test sets (in decreasing order of number of times; the numbers range from 100, for “used,” to 51, for “barometric”): “used,” “ignored,” “claim,” “fiscal,” “destroy,” “effect,” “zero,” “morning,” “kill,” “forcing,” “work,” “aggressive,” “tried,” “none,” “gain,” and “barometric.” The presence of the following words was a significant predictor of protected-values-based rating of an impactful comment in more than half of the 100 test sets (in decreasing order of number of times; the numbers range from 97, for “devil” to 65, for “directly”): “devil,” “clear,” “stupid,” “believe,” “clapped,” “within,” “holy,” “favor,” “weekend,” “wanting,” “becomes,” “Christian,” “currently,” “away,” “different,” “terrible,” and “directly.” Although some of these words carry connotations associated with the relevant discourse category (such as “fiscal” for consequentialist or “holy” for protected values), others are less intuitive indicators of their assigned discourse category (such as “kill” for consequentialist or “currently” for protected-values-based).

Results

Human ratings of the impactful posts

The average rating for the association of comments with protected-values-based and consequentialist discourse was 4.27 (slightly more consequentialist than not; SD = 2.09). On the basis of these ratings, out of 800 impactful posts, 302 (37.8%) were categorized as consequentialist, 237 (29.6%) were categorized as protected-values-based, and the remainder were rated as neither (261 comments, comprising 32.6% of the dataset).Footnote 7

A total of 160 comments were rated more than once. To measure the reliability of ratings, we randomly assigned one of the two ratings for each comment to one of two sets and calculated the Pearson correlation between the resulting sets. This random assignment was repeated 100 times. The resulting correlations between different ratings of the same comments ranged from .18 to .19. These correlations suggest less agreement among the raters than we anticipated, though they are consistently positive. The difficulty that participants had with classifying posts as consequentialist or protected-values-based is in line with what has been found in other studies (e.g., Fernbach et al., 2018).

Of the rated comments, 554 (69.3%) were identified as pro-same-sex marriage, 33 as clearly against same-sex marriage (4.1%), and the remaining 213 (26.6%) had unclear ramifications for the issue. The strong bias toward pro-same-sex marriage arguments might reflect the population of Reddit users, moderation and acceptable use rules, or the coincidence of increased public support for same-sex marriage with the increased popularity of Reddit and is a limitation of our study. It is also noteworthy that the vast majority of impactful comments had more upvotes than downvotes, suggesting that Reddit users are more likely to react to content they approve of. This may have introduced further bias toward opinions in favor of same-sex marriage in our sample of most impactful comments.

Prediction of human ratings using LDA and the word-frequency model

The average Pearson correlation between the predictions of a linear regression based on the LDA topics and the true ratings of held-out test sets was .25 across 10 ten-fold cross-validations. Including random intercepts to account for the rating styles of different raters increased this correlation to .4. The average adjusted R-squared for the former model was .13, whereas the same value for the latter model was .34 (see the study’s online repository for the results of all regression analyses).

Comments for which the predicted rating was greater than 4 were considered to be classified as consequentialist, and predictions of less than 4 were considered protected-values-based. The accuracy of these classifications across the 100 tests sets was .64. A model that classified every comment as consequentialist would have had an accuracy of .56. The word-frequency model had comparable predictive and classification capabilities, with an average correlation of .37 and a classification accuracy of .64. The adjusted R-squared averaged across iterations was .27 for the word-frequency model.

The amount of information contained in the human ratings, and the amount thus captured by the models, is modest. Our results suggest that the LDA model captures as much information about the human intuitions surrounding consequentialist versus protected-values-based reasoning as a word-frequency model with four times the number of parameters.

Breakdown of discourse

See Table 1 for the top five high-probability words associated with each of the top topics: topics that were either (a) significant predictors of classification of impactful comments in more than half of all cross-validations or (b) major contributors to the discourse based on the LDA model. The probabilities of the words in this table, given the associated top topic, range from .01 to .25 (M = .035, SD = .036). The variability in probabilities partly reflects differences in breadth among topics. The probability of any word in this table being associated with any other topic in the model (including nonmajor topics) is less than .056. Only unique high-probability words are shown, because certain words, such as “gay” or “marriage,” have high probability under all topics and thus do not capture the topic’s focus. See Appendix 4 for the full sets of unique and almost unique high-probability words for all mentioned topics. For the 80 words most associated with each of the 50 topics in the model, and their probabilities, see the supplemental materials.Footnote 8

Table 1 Top five words that are uniquely associated with each top topic, in decreasing order of probability given that topic

Protected-values-based topics

Significant contributions from three topics were significant predictors of a post being rated as more protected-values-based in all 100 cross-validations. Inspection of the unique and almost unique high-probability words and the comments most representatives of these topics revealed the following prominent themes: religious arguments, freedom of belief, and LGBT rights. The presence of no other topic was a significant predictor of protected-values-based reasoning in more than half of the cross-validations.

Consequentialist topics

Significant contributions from five topics were significant predictors of a post being rated as more consequentialist in more than half of all cross-validations. Inspection of the most representative words and comments revealed that these topics covered a greater range of themes than the protected-values-based topics. The topics were most representative of the following themes: politicians’ stance, children of same-sex parents, same-sex marriage as a policy issue, employer attitude and regulations, and cultural and historical status.

The last two topics had a noticeably broader focus. Their contribution was more distributed across different posts, and their most representative comments were more diverse in content (see Appendix 4 and the representative comments in the online repository). These two topics were also highly associated with several words that did not intuitively cohere with the majority of elements in the same sets. Words such as “evil” and “value” are among the top words for these two topics. Although these words appear to be more associated with protected values, inspection of the impactful and representative comments shows the main focus to be causal analysis of cultural and financial trends related to same-sex marriage. This ability to separate the overall association of such terms with a discourse category from their association in a specific context is one of the benefits of using hierarchical models such as LDA and is absent in simple keyword-based methods (Griffiths et al., 2007).

Major topics rated as neither consequentialist nor protected-values-based

For each topic, we calculated the topic’s average monthly contribution to the model—that is, the fraction of words in the corpus from a certain month generated by that topic. We then compared that value to the contribution that would have been expected if the topic contributions were uniformly distributed at each time point. Two topics were not consistently associated with consequentialist or protected-values-based discourse but were nevertheless major contributors to the discourse based on this criterion, contributing on average more than twice the uniform baseline. The themes represented by these two major contributors were forcing versus allowing behaviors and personal anecdotes. The former topic has fewer unique associated words than other topics in Table 1, because words such as “force” and “let” that are most strongly associated with it are common terms also associated (albeit less strongly) with other top topics. Similarly, the word “right” had by far the highest probability under LGBT rights but was shared as a high-probability word with other topics, due to its many meanings.

Intertemporal trends

To visualize how the contributions of protected-values-based and consequentialist top topics to the discourse changed over time, we first combined monthly contribution estimates of the topics associated with the two discourse categories. We then visualized the trends of these pooled estimates as a function of time using degree-two locally estimated scatterplot smoothing (LOESS) regressions. We used LOESS to highlight the local perturbations in contributions that characterized the impact of specific events. Although the LDA was trained on the entire dataset, the monthly contributions from 2006 and 2007 were excluded from our regression analyses because each estimate was based on fewer than 100 documents. Figure 2 shows the results for the two discourse categories. The shaded areas represent 95% confidence intervals. Note that the combination of the two sets of categories accounts for at most about 20% of our corpus at each point in time.

Fig. 2
figure 2

Points reflect the proportion monthly contributions of consequentialist and protected-values-based topics to the trained LDA model. Each data point was calculated by summing the monthly contributions of all topics subsumed by the relevant discourse category. The colored lines show the best-fitting locally estimated scatterplot smoothing (LOESS) function (see the text for details). The shaded areas represent 95% confidence intervals. The vertical line on the left marks the beginning of a steady upward trend of support for same-sex marriage among a majority of Americans (Gallup, 2017). The vertical line on the right marks the Supreme Court ruling that legalized same-sex marriage in the United States

Protected-values-based themes rise in prominence until mid-2012, after which they show a steady decline that predates the Supreme Court ruling in in June 2015 (rightmost vertical line). The decline begins not long after the point at which a majority of Americans expressed support for same-sex marriage (leftmost vertical line), which was followed by a number of prominent politicians expressing support for the issue (Gallup, 2017).Footnote 9 In contrast, the contribution of consequentialist topics decreases overall until 2010, despite significant monthly variability during this period. One spike in consequentialist discourse happens around the time of majority support for same-sex marriage, whereas a larger spike can be seen in 2016, presumably associated with the United States’ presidential election.

These results are based on the pooled contributions of several topics. To see whether our results generalized to individual topics, we ran a separate regression to predict the logarithmic odds of each topic zj’s contribution, \( \log \frac{P\left({z}_j|D\right)}{P\left(\neg {z}_j|D\right)} \), where D is the total observed text in the corpus at a given time step, and ¬zj stands for all other topics, as a function of time. The model accounted for 49% of the variance in contributions. Consequentialist topics and higher time indicators were both associated with a significantly higher contribution (p < .001). The linear and quadratic interaction between these two predictors was positive and highly significant (p < .001). In other words, individual consequentialist topics are associated, on average, with increasing contributions over time.

We then visualized the trend of each top topic’s contribution to the LDA model as a function of time using LOESS regression. Figure 3 shows the results for protected-values-based topics. Religious arguments and freedom of belief follow each other closely: They rise in prominence prior to 2013 and see a decrease in importance afterward. The contribution of LGBT rights is relatively constant until the Supreme Court ruling and shows a spike in 2016.

Fig. 3
figure 3

Points reflect the proportion monthly contributions of individual protected-values-based topics to the trained LDA model. The colored lines show the best-fitting LOESS function, and the shaded areas represent 95% confidence intervals. The black vertical line on the left marks the beginning of a steady upward trend of support for same-sex marriage among a majority of Americans (Gallup, 2017). The vertical line on the right marks the Supreme Court ruling that legalized same-sex marriage

To test whether the trends associated with each topic’s contribution over time were statistically significant, we ran separate cubic regressions with each topic’s contribution as the predicted variable and time indicators as the predictors. This analysis showed the linear and quadratic trends for religious arguments and freedom of belief to be significant (p < .001). The upward linear trend in LGBT rights was also significant (p < .001).

Figure 4 shows the results of LOESS regression for consequentialist topics. The contribution of politicians’ stance to discourse about same-sex marriage stays relatively constant prior to 2011 and increases sharply for a period of two years afterward. We conjecture that this increase reflects the time when many politicians started to voice their support publicly, including Barack Obama in May 2012. The second increase in discussions of politicians’ stance starts in 2014 and might initially have related to a string of highly publicized court cases regarding LGBT rights that culminated in the Supreme Court decision. The prominence of LGBT issues in the presidential campaigns of 2016 might explain the higher probability of discussion about politicians’ stance in 2016. The contribution of this topic decreases in 2017 but is still higher on average than in 2015. Discussion of same-sex marriage as a policy issue follows a similar pattern, but with smaller spikes. Same-sex marriage as a policy issue was also the only topic that did not show any significant cubic polynomial trend, which might be ill-equipped to represent its seemingly periodic pattern of contribution. The contribution of discussions about children of same-sex parents decreases slightly but significantly until 2016, whereas those of employer attitude and regulations and cultural and historical status to discourse are stable.

Fig. 4
figure 4

Points reflect the proportion monthly contributions of individual consequentialist topics to the trained LDA model, separated by color. SSM stands for same-sex marriage. The colored lines show the best-fitting LOESS function, and the shaded areas represent 95% confidence intervals. The black vertical line on the left marks the beginning of a steady upward trend of support for same-sex marriage among Americans since the first time a Gallup poll showed a majority of Americans in favor of it (Gallup, 2017). The vertical line on the right marks the Supreme Court ruling that legalized same-sex marriage

Figure 5 shows the results of a LOESS regression for the major topics categorized as neither protected-values-based nor consequentialist. Forcing versus allowing behaviors has the highest average monthly contribution to the model of any topic. It also shows the clearest downward trend, seemingly unperturbed by major events in this period concerning same-sex marriage. The significance of this trend was confirmed via cubic regression (p < .001). In contrast, the contribution of personal anecdotes to the model increases rapidly in earlier years and more slowly afterward. This trend was also highly significant on the basis of cubic regression (p < .001). We conjecture that the latter pattern reflects the increased tendency of individuals to share their experiences or those of their acquaintances with higher societal acceptance of same-sex relationships.

Fig. 5
figure 5

Points reflect the proportion monthly contributions of major topics that were categorized as neither protected-values-based nor consequentialist to the trained LDA model, separated by color. The colored lines show the best-fitting LOESS function, and the shaded areas represent 95% confidence intervals. The black vertical line on the left marks the beginning of a steady upward trend of support for same-sex marriage among a majority of Americans (Gallup, 2017). The vertical line on the right marks the Supreme Court ruling that legalized same-sex marriage

The individual temporal trends and the most strongly associated keywords for the 40 topics not included in Figs. 35 can be found in the supplemental materials. The combined average contributions of all those topics to the model did not vary significantly over the timeframe of interest.

Intertemporal trends of the word-frequency model

Figure 6 shows the fractions of words that the word-frequency model classified as consequentialist and protected-values-based in each month. This measure shows a relatively constant advantage for consequentialist discourse throughout the years, which reflects the higher base rate of consequentialist comments in the set of impactful comments. Unlike LDA, the word frequency model is a flat semantic representation that does not posit latent themes, but effectively averages across more nuanced and temporally variant threads of discourse. This averaging may reconcile the flatness of the trends in word-based classification with the temporal variation discussed in the previous sections.

Fig. 6
figure 6

Fractions of words in each month classified as consequentialist or protected-values-based by the word-frequency model (see the text for details). The shaded regions indicate the 95% confidence regions, calculated on the basis of 100 instances of the word-frequency model, each trained on a different set of comments consisting of 90% of the labeled impactful comments. The black vertical line on the left marks the beginning of a steady upward trend of support for same-sex marriage among a majority of Americans (Gallup, 2017). The vertical line on the right marks the Supreme Court ruling that legalized same-sex marriage

Considerations in interpretation of the results

Prediction and classification accuracy

Although reliably above chance, the accuracy of classification and rating predictions based on both our word-frequency model and the LDA analysis was slightly below two-thirds. The word-based model might have performed better if it had a way to represent the hierarchical nature of language. LDA might have performed better if it were not an unsupervised method that is not optimized for providing such a classification, but rather for offering a summary representation of the corpus. Additionally, much of the information about the discourse content was not present in the individual comments, but was carried by other elements of the discourse context. More recent topic-modeling methods that allow for the inclusion of hierarchical relations between different posts could help extract aspects of the relevant context (e.g., matrix inter-joint factorization; Nugroho, Zhong, Yang, Paris, & Nepal, 2015). However, implied inferences that are not referred to directly in the text would escape most common natural language processing models (Manning, Manning, & Schütze, 1999).

Coverage of discourse

We recognize that the distinction between consequentialist and protected-values-based discourse accounted for only about 20% of our corpus. Although more robust ratings might increase the fraction considerably, we acknowledge that same-sex marriage is a complex topic that can be approached from a variety of standpoints, not all of them characterized by our focal distinction.

Data limitation

The quality of an algorithm’s outputs is largely a function of its inputs. Most of the posts in our dataset belonged to more recent years. Therefore, the trained model was biased in favor of the statistical properties of discourse in those years. In addition, Reddit posts appear to be strongly biased toward pro-same-sex marriage opinions. According to ratings by the authors, the rate of positive attitudes among the most representative posts we sampled for the 10 top topics was higher than the reported national average (Gallup, 2017). A similar pattern was observed for impactful posts rated by participants blind to our hypothesis.

Properties of LDA

The distributions representative of top topics partly reflect parameter choices, such as the number and granularity of topics. Although we based our choice of parameters on careful analysis of the corpus, better values might exist. We also note that, due to either the strictness of the thresholds that determined inclusion or the nature of discourse on Reddit, our analysis may have excluded some topics relevant to the debate over same-sex marriage.

More generally, the inherent shortcomings of LDA may have affected our results. LDA’s ability to pick up interpretable themes in documents emerges from the correspondence of interpretability with the statistical properties of the “bag-of-words” representations of these documents. Such representations lose important aspects of language, including sequential dependencies between words. We urge readers to follow the advice of Blei et al. (2003) and to treat the epistemological claims we make about the top topics with the usual degree of caution. Similarly, the simplicity of our word-frequency model may have concealed interesting patterns in the data. For instance, our word-frequency model did not make use of the base rates of words.

Discussion

We hypothesized that shifts in public attitudes surrounding same-sex marriage are accompanied by shifts in public discourse away from protected values and toward consequentialist rhetoric, and that this shift would be reflected in discourse on Reddit over the last decade. To address the question, we used LDA to infer the topics underlying posts appearing on Reddit from January 2006 to September 2017. We categorized major topics into the categories protected-values-based, consequentialist, and neither, based on human ratings and average contributions to the model, and examined the contributions of each category as well as the individual topics to the corpus over time. Many of the trends we observed coincided with turning points associated with the same-sex marriage debate, suggesting that the discourse on Reddit can track shifts on issues of major social interest.

Discussion of the political framing of same-sex marriage (e.g., the impact of politicians’ stance) ebbed and flowed, following election cycles closely. However, the spikes grew larger over time, showing an overall increase in discussing political ramifications of this issue even after the Supreme Court ruling in favor of same-sex marriage in 2015. Discussion of two protected-values-based topics (freedom of belief and religious arguments) increased sharply prior to majority support. These trends reversed in the latter half of 2012, when several high-profile court cases related to same-sex marriage were filed, but long before the Supreme Court ruled in favor of equal marriage. Although these topics dominated the overall pattern of consequentialist and protected-values-based discourse, not every topic in one of these two categories changed in contribution considerably during the same period: Among protected values, LGBT rights gained some limited prominence in 2016 but was otherwise unaffected by the passage of time. The contribution of children’s welfare to the discussion decreased prior to consistent majority support in the US for same-sex marriage (Gallup, 2017) and flattened afterward. Discussion of other major consequentialist topics was flat during the period we studied.

Other significant contributors to the discourse not reliably associated with either category were LGBT-themed anecdotes and discussion of forcing or allowing certain behaviors. The former category increased in contribution monotonically, presumably due to increasing acceptance of LGBT experiences in society at large, while forcing or allowing behaviors consistently decreased in influence.

Our results are correlational and do not speak to the causal relation between changes in discourse and changes in attitudes. They only show that for this one social issue, a relative shift from a certain type of protected-values-based discourse to a certain consequentialist framing on a popular online platform coincided with a shift in public attitude in more recent years. A natural follow-up to our work would be to track to what extent shifts in protected-values-based and consequentialist rhetoric trace the public attitudes associated with other major social topics (e.g., marijuana legalization). Regardless, the timing of the shift in discussion of same-sex marriage hints at a causal relation that is in the opposite direction from what we initially hypothesized. The data we report suggest that the trajectory of discourse on this important social issue began with a debate about protected values: Should the issue be framed in relation to protected notions of marriage or in terms of freedom of opinion and beliefs? Once attitudes began to change, the discourse changed, too. Even though protected values remained major contributors to the discourse, the debate shifted to be less protected-values-oriented, and the relative concentration of consequentialist discourse—in particular, the political and policy ramifications of the issue—increased.

That the shift coincided with the development of majority support for same-sex marriage could have occurred for several reasons. Individuals might have voiced their support for values they believed were popular. As opinions shift, the tendency to provide arguments for the less popular viewpoints could decrease. With increased public support, hopes for achieving concrete outcomes related to same-sex marriage may have been rekindled, as well, spurring talk of political processes, which itself may have impacted attitudes.

Alternatively, people may be likely to rely on the consensus within their communities to determine their protected values and consequentialist beliefs (Sloman & Fernbach, 2017). There is strong evidence that people do not reason their way to many of their beliefs, but instead inherit those beliefs from the groups they affiliate with (including their families, religious and political communities, etc.; for an early modern discussion, see Hardwig, 1985). Majority support for same-sex marriage may have signaled a shift in these inherited beliefs, itself inducing further changes in discourse and attitudes.

So far, we have discussed protected-values-based and consequentialist framing of the discourse as if they are mutually exclusive. It is possible that protected values and consequentialist thinking fall on separate discursive dimensions rather than on the same continuum (cf. Tanner et al., 2008). Relatedly, some of the themes we discovered in our dataset, such as forcing or allowing behaviors and personal anecdotes, can and were used to appeal to both or neither of these dimensions. Without assuming a strict continuum between the two, we maintain that protected values and consequentialism characterize two important frames of public discourse.

Public discourse is a rugged and complex landscape. We have presented a survey of specific dimensions in that landscape that can be helpful for characterizing societal discourse, with the hope of contributing to an ongoing project of mapping its features more entirely. However, the fact that not all protected-values-based and consequentialist topics showed clear temporal trends highlights the fact that discourse about major social topics is impacted by many factors and is not reducible to a binary dimension. Indeed, only about 20% of the text in our corpus was classified along this dimension. A natural follow-up to our work would be to attempt to identify the other dimensions that characterize online discourse on major social topics.

We tracked intertemporal trends in high-level themes, but our method does not have the resolution to allow us to delve into the fine-grained ways in which these themes are invoked. For example, although we can track discussion of religious arguments over time, we are unable to say how often these arguments are invoked sincerely and how often as a straw man. The different ways in which discussants invoke protected values and consequences could explain or predict different patterns of attitude shifts. For example, Atran et al. (2007) argued that acknowledging and making small concessions to the other side’s protected values is an important and often necessary step in conflict resolution and the achievement of consensus. Brewer (2003) provided evidence of changes in protected values accompanying more positive attitudes toward the LGBT community. Although the increase in discussion of LGBT rights in 2016 and 2017 may reflect the results of such a process, our method may have failed to uncover other examples of similar shifts in the corpus.

From a methodological perspective, our results highlight how limited annotated data combined with unsupervised machine learning can help psychologists extract the properties of large corpora that speak to important facets of and hypotheses about individual and social cognition. The topic modeling of the corpus was independent of our hypothesis, and therefore free of biases introduced by training samples, and our annotated dataset was small as compared to those commonly used in supervised natural language processing. Given the ubiquity of social media in modern life, open access to many of these data, and easy access to packages for performing the associated analyses, such methods will allow researchers to use much larger and more naturalistic samples of human discourse to address psychological hypotheses with modest resources.

Even though LDA is not optimized to classify consequentialist and protected-values-based reasoning, its performance was comparable to a keyword-based approach optimized for that purpose through the use of many more parameters. The results of LDA were more interpretable with respect to a couple of major dimensions of human discourse. Many of the keywords associated with either category in the word-frequency model could not be readily associated with specific arguments. In contrast, LDA topics represented more interpretable clusters of discourse surrounding same-sex marriage. This is partly because the hierarchical structure of LDA allowed us to separate the association of terms with the two types of reasoning from their association to specific classes of arguments. For instance, the term “value” was a strong predictor in both models. However, it was among the 80 words most associated with both the discussion of causal historical processes, categorized by raters as consequentialist, and the freedom of belief topic, rated as predominantly protected-values-based. The word-frequency model simply associated this term with protected-values-based reasoning.

LDA also afforded clearer and more fine-grained, argument-specific temporal trends: While the presence of words associated with consequentialist or protected-values-based human ratings suggested a constant advantage for consequentialist discourse over time, a more detailed look at the topics underlying the use of certain words showed the ebb and flow of arguments over time. These trends corresponded to major social events, suggesting that LDA can be used to uncover how discourse reacts to influences that unfold over time. Future work could take advantage of the burgeoning collection of related methods (e.g., Esmaeili, Huang, Wallace, & van de Meent, 2019) to characterize the rugged landscape of social discourse.