Paper · Open models · Version v1
The Temporal-Semantic Graph: Topological Modeling of Narrative Evolution in Political Discourse
First published: arXiv, . Original
Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.
This page holds the text of the paper, converted to HTML; figures may be left out.
We introduce the Temporal-Semantic Graph (TSG) framework for modeling political discourse as a topological structure over time. Given a corpus of timestamped messages, the TSG uses the Mapper algorithm from topological data analysis to construct a graph whose nodes are clusters of semantically similar messages within overlapping time intervals and whose edges connect clusters that share messages across adjacent intervals. The resulting graph organizes discourse into connected components that correspond to temporally coherent episodes, supports the induction of a user similarity graph from co-occurrence in semantic space rather than from interaction metadata, and enables cross-corpus event discovery through component matching. We apply the framework to U.S. Senate tweets from the 115th-117th Congresses, enriched with Narrative Policy Framework annotations (setting, characters, moral foundations) produced via a crowdsourcing-grounded LLM pipeline. The induced user communities recover the Senate's partisan structure without any voting or co-sponsorship data. A case study on the Tax Cuts and Jobs Act demonstrates the full analytical reach of the framework: cross-corpus matching identifies the event without manual annotation, the topological structure isolates it as a coherent discourse episode, community decomposition partitions its participants, and narrative annotations reveal how the same legislative event produces divergent moral framings across partisan lines.
Abstract
We introduce the Temporal-Semantic Graph (TSG) framework for modeling political discourse as a topological structure over time. Given a corpus of timestamped messages, the TSG uses the Mapper algorithm from topological data analysis to construct a graph whose nodes are clusters of semantically similar messages within overlapping time intervals and whose edges connect clusters that share messages across adjacent intervals. The resulting graph organizes discourse into connected components that correspond to temporally coherent episodes, supports the induction of a user similarity graph from co-occurrence in semantic space rather than from interaction metadata, and enables cross-corpus event discovery through component matching. We apply the framework to U.S. Senate tweets from the 115th–117th Congresses, enriched with Narrative Policy Framework annotations (setting, characters, moral foundations) produced via a crowdsourcing-grounded LLM pipeline. The induced user communities recover the Senate’s partisan structure without any voting or co-sponsorship data. A case study on the Tax Cuts and Jobs Act demonstrates the full analytical reach of the framework: cross-corpus matching identifies the event without manual annotation, the topological structure isolates it as a coherent discourse episode, community decomposition partitions its participants, and narrative annotations reveal how the same legislative event produces divergent moral framings across partisan lines.
1 Introduction
Social media platforms have become primary sites for political communication, generating vast streams of timestamped messages that record how public debate unfolds in real time. Most computational approaches to these streams focus on established dimensions such as sentiment, topic prevalence, or interaction networks. Yet political communication is not primarily about sentiment, it is about narrative. Who is cast as the villain of a story, which moral values are invoked to justify a policy position, and how blame and victimhood are distributed across partisan lines. Narratives are not static, they branch, merge and persist as events unfold, and capturing this demands methods that both read the moral and rhetorical content of messages and track how it evolves structurally over time. No existing approach does both simultaneously. We introduce the Temporal-Semantic Graph (TSG), a framework that closes this gap by unifying topological structure with narrative meaning. The TSG applies the Mapper algorithm Singh et al. (2007) to a semantic embedding of timestamped messages, constructing a topological skeleton in which nodes represent clusters of semantically similar messages within overlapping time intervals, and edges encode the temporal dimension. Structured narrative attributes such as setting, characters, and moral foundations, drawn from the Narrative Policy Framework Shanahan et al. (2018) and Moral Foundations Theory Graham et al. (2013), are projected onto it, so that every topological feature carries an interpretable narrative signature. The TSG provides three capabilities that existing approaches cannot deliver:
1. Semantic induction of user communities. The graph organizes users by their co-occurrence in semantic space over time, recovering community structures such as partisan alignment purely from text, without interaction metadata or network access.
2. Unsupervised cross-corpus event discovery. By matching connected components across independently constructed graphs, the TSG aligns discourse episodes across disparate corpora, such as social media and mainstream news, without manual annotation or shared vocabulary.
3. Narrative-level reading of topological structure. Topological features such as forks and merges mark the moments at which discourse splits into divergent framings or converges around shared events. By projecting structured narrative attributes onto the graph, produced via a crowdsourcing-grounded LLM pipeline, the TSG makes these transitions interpretable at the level of moral and rhetorical framing.
We instantiate and evaluate the framework on U.S. Senate tweets from the 115th–117th Congresses, using a corpus of New York Times reporting covering the same period to demonstrate that the framework generalizes beyond social media and closed author sets.
2 Related Work
Research typically analyzes social media through two primary lenses: network structures and content.
Structural and temporal approaches to political discourse. Interaction-induced graphs have been widely used to study political communication, from retweet and mention networks that reveal partisan segregation Conover et al. (2011) to follower graphs that estimate latent ideology Barberá (2015); Boutyline and Willer (2017); Esteve-Del-Valle (2022). Recent work combines graph and text signals for stance detection Brugnoli and Lo Sardo (2024); He et al. (2024), and predicts speech polarity and votes from parliamentary debates Sawhney et al. (2020); Sawhney et al. (2021). These approaches capture who interacts with whom, but not how the content of political communication evolves over time Küpfer (2024). Topic modeling addresses the temporal dimension. Dynamic Topic Models track thematic drift across time slices Blei and Lafferty (2006), and embedding-based approaches such as BERTopic Grootendorst (2022) cluster documents in continuous semantic space. Yet both treat documents as discrete points, blind to the connective shape of discourse. The Mapper algorithm addresses this, generating a combinatorial graph over overlapping regions of a data manifold Singh et al. (2007); Simi (2025). Byrne et al. (2022) apply it to word embeddings for topic modeling. But existing Mapper applications use static corpora and spatial filters, with no temporal backbone and no link to user-level communities or narrative content, the three gaps the TSG closes.
Narrative, framing, and moral content. Content-based methods show that partisan differences manifest not only in issue selection but also in framing and emotional inflection Demszky et al. (2019), with rhetorical dimensions such as metaphor and emotion further enriching the picture Huguet Cabot et al. (2020), and moral appeals providing an additional layer of analysis Hoover et al. (2020); Graham et al. (2013). A particularly relevant line of work operationalizes narrative structure computationally. The Narrative Policy Framework (NPF) formalizes narratives as structured elements with actors, causal relations, and a moral Shanahan et al. (2018), and has been applied to stance and framing analysis Santana et al. (2023). Hero–villain–victim role detection has been studied in news and social media Otmakhova and Frermann (2025), and moral appeals have been systematically annotated through Moral Foundations Theory (MFT) Graham et al. (2013); Hoover et al. (2020). Hoyle et al. (2023) decomposes tweets into inferential structures that make implicit assumptions explicit, a representation we adopt directly. Beyond individual messages, graph-based approaches model narratives as storylines unfolding over time Keith Norambuena and Mitra (2021), and temporal topical alignment identifies coordinated thematic spheres in political conversations Paoletti et al. (2025). Yet these address narrative content or temporal structure in isolation. None provides a unified topological backbone connecting content, users, and time, or links narrative framing to the structural moments as forks, merges, and persistent threads, at which discourse episodes evolve.
3 The Temporal Semantic Graph Framework
We introduce the Temporal-Semantic Graph (TSG), a framework for modeling discourse as a structured graph that evolves over time. Messages are embedded in a semantic space, partitioned into overlapping time intervals, and clustered within each interval. A graph is then laid over the resulting clusters. Nodes represent semantically coherent groups of messages, and edges connect clusters that share messages across adjacent intervals. The resulting structure encodes not only semantic similarity within each time slice but also the topological continuity of discourse across time. This backbone further enables the induction of a user similarity graph where users whose messages co-occur in the same semantic clusters over time are likely to engage with similar issues in similar ways, and communities of such users can be recovered without any interaction metadata.
3.1 Formalizing the Semantic Backbone
We assume a sequence of messages , where each message is a tuple of utterance , a timestamp , and an author drawn from the set of users .
Since messages, especially short-format ones, are noisy and often require context to be understood, a function is introduced that extracts a structured representation (e.g., the underlying claim or narrative) from the raw message (for well-formed text, using the identity is a sensible default). Each extracted representation is then embedded into a high-dimensional semantic space using an embedding function . Let denote the resulting temporally sorted set of embeddings, where .
(a) Overlapping time cover, clustering per interval.
(b) Nodes = clusters, edges = shared messages.
Figure 1: Construction of the temporal-semantic graph, illustrated on real data: a three-interval window of the TCJA component (cf. Section 5.2) around the Senate vote on the tax bill (Nov 29–Dec 7, 2017; 97 messages). (1(a)) Each message is positioned by its timestamp, the lens ; the time axis is covered by overlapping intervals (bars; the full cover uses 1,000 intervals of days, sliding by days at overlap ). Within each interval, messages are clustered in embedding space (dashed outlines, colored by interval). Because adjacent intervals overlap, a message can belong to clusters in two intervals (rings). (1(b)) Each cluster becomes a node, and clusters sharing messages are connected, which merges three threads from and forks into three branches in . Dotted stubs mark edges to nodes outside the window. The vertical axis is a one-dimensional PCA projection used for visualization only; clustering operates on the full embeddings.
3.2 Topological Construction via Mapper
The graph is constructed using the Mapper Algorithm Singh et al. (2007); Simi (2025), a standard method in topological data analysis (TDA). It constructs a graph that represents the topological structure of a high-dimensional dataset. Each node represents a set of semantically similar messages. Edges between nodes are drawn if two nodes share common messages. The construction follows three steps (see Figure 1):
- Filtering: A filter function projects the high-dimensional data into a lower-dimensional space. In our case, we use the timestamps of the messages, which orient the topology along the arrow of time.
- Covering: The range of is covered with a set of overlapping intervals , governed by the number of intervals and the overlap parameter , with . Note that, in our case, the intervals are sorted by time.
- Clustering: For each interval , the set of points is clustered in the original embedding space. Let be the set of clusters found in the time interval .
The resulting graph consists of nodes corresponding to the clusters , and an edge is drawn between two nodes if they share common data points. That is, for two clusters and , there is an edge if . Mapper thus operates on two properties of each message only, its embedding and its timestamp , and deterministically arranges them into a temporal model. Similar messages posted in the same time interval share a node, and nodes (in adjacent time intervals that share messages are connected Figure 1). This can be extended to consider connected components, which model higher-level concepts, such as events or topics discussed over a longer period of time. Let denote the set of connected components in the graph.
3.3 Cross-Graph Component Matching
When multiple temporal-semantic graphs are constructed independently from different corpora that cover overlapping time periods, their connected components can be systematically aligned. This enables unsupervised cross-corpus event discovery without requiring manual annotation.
Let and be two temporal-semantic graphs with connected components and , respectively. Each component is associated with a time interval derived from the timestamps of its constituent messages. Given a similarity function that captures both temporal and semantic relatedness, the resulting similarity matrix induces a bipartite alignment between the two graphs.
3.4 User Graph and Communities
While the topological graph can already be used to analyze message topology over time, we extend it to induce a user graph. The goal is to model user relationships using a semantic backbone rather than a follower graph, which is increasingly inaccessible Küpfer (2024). This allows communities to emerge from shared discourse behavior rather than pure network structure.
We use a simple Jaccard-similarity-based approach to construct a user graph. For each user , let denote the set of nodes in that contain at least one message by user . For users , we compute the weight
\small{w(s_{k},s_{k}^{\prime})=\frac{|\mathcal{N}(s_{k})\cap\mathcal{N}(s_{k}^{\prime})|}{|\mathcal{N}(s_{k})\cup\mathcal{N}(s_{k}^{\prime})|}}
yielding the adjacency matrix for the users. The user graph encodes which users tend to write about similar issues (depending on the graph’s granularity) within the same time interval.
Based on the user graph, we compute user communities, i.e., groups where the pairwise co-occurrence is consistently high. Let denote the set of communities extracted via established community detection algorithms.
Together with the number of intervals in the Mapper construction, this yields a two-level resolution control: the Mapper granularity determines the temporal and semantic scale of the nodes, while the community resolution governs the coarseness of user groupings over those nodes.
3.5 Tools for Analyzing the Graph
The temporal-semantic graph provides a multi-level structure over which arbitrary message-level attributes can be aggregated and compared. Let be an attribute function that assigns each message a label from a discrete set (e.g., a topic, a moral foundation, or a character role), produced by an external annotation process.
Since each node is a cluster of messages, induces a distribution over for each node. These distributions lift naturally to connected components: for a component , the component-level distribution aggregates over all constituent nodes, yielding measures of coherence such as the purity .
The same logic extends along the user dimension. For a community and a component in which it is present, the community-conditional distribution restricts the aggregation to messages authored by members of . Within components where multiple communities co-occur, comparing across communities makes divergent framings of shared events directly observable, i.e., the same legislative debate can be shown to invoke different moral foundations, narrative roles, and rhetorical registers across partisan lines.
4 The US Senator Corpus
We envision myriad applications of the Temporal-Semantic Graph. An ideal testbed for evaluating the framework should exhibit several properties including (i) temporally driven discourse where events and external dynamics shape the content over time, (ii) a closed and identifiable set of authors, so that the user graph and community detection is well-defined, (iii) external ground truth for validating the induced communities, (iv) rich narrative framing where not only what is said matters but also how it is framed and (v) short or noisy messages that benefit from structured extraction. US Senate communication on Twitter satisfies all five criteria. Senators react to legislative events and news cycles, forming a closed and well-identified set of political actors. Their co-sponsorship and voting records provide external validation signals. Political communication is inherently framed through narratives, and tweets are short-form texts whose implicit assumptions often require explicit extraction to be amenable to semantic analysis.
To further demonstrate the generalizability of the framework beyond social media and closed author sets, we additionally apply the TSG to a corpus of New York Times article abstracts in Section 5.1, which differs structurally in that authors are not the primary unit of analysis and the texts are professionally edited rather than informal.
We use the Twitter corpus released by Hoyle et al. (2023), which consists of tweets from US senators during the to the Congresses. The dataset comprises 39,284 tweets from 120 senators. Both major parties are roughly equally represented (50% Democrats, 47% Republicans, and 3% Independents), and the tweets are categorized into 33 coarse, ideologically charged topics.
4.1 Graph Construction
We instantiate the TSG framework as follows. For the extraction function , we use the inferential decompositions provided by Hoyle et al. (2023) that make the often implicit assumptions within a tweet explicit. Each decomposition is embedded using the Jasper-Token-Compression-600M model Zhang et al. (2025); An et al. (2026) using the standard implementation 1, yielding 2048-dimensional vectors. The filter function maps each embedding to the original tweet’s timestamp.
For the Mapper construction, we use the tda-mapper library Simi (2024). Three hyperparameters govern the construction: (i) the number of overlapping intervals, setting the temporal granularity of the graph, (ii) the overlap parameter , which controls the fragmentation of the graph (the number of components and their sizes), and (iii) the minimum cluster size for HDBSCAN Campello et al. (2013), which determines how many messages are retained and thereby affects topic purity, since forcing larger clusters groups topically unrelated messages together. We seek a graph with high message retention and large components while retaining high topic purity, measured as majority-label purity over the topic labels of Hoyle et al. (2023). A grid search (Table 8 in Appendix B.2) reveals a consistent pattern. An overlap of is Pareto-optimal for every interval count and dominates smaller overlaps that fragment the graph and discard messages, yielding larger components. For the minimum cluster size (), jointly maximizing topic purity, message retention, and the number of components. Larger values raise only the average component size, and do so by discarding most messages (retention drops below at ). We therefore fix and . The number of intervals controls temporal granularity and trades off against purity. Coarse covers yield higher purity but span weeks and cannot isolate individual events, whereas finer covers lower purity. At , the largest connected component peaks at intervals ( nodes) before further subdivision fragments it, while retention is large () and purity remains high (). We therefore use intervals, corresponding to a temporal granularity of days that resolves individual events. For the user graph, we compute pairwise Jaccard similarity (Equation 1) over the node sets of all senators. Communities are extracted using the Leiden algorithm Traag et al. (2019) with a resolution parameter of , yielding and communities respectively.
4.2 Graph Statistics
Graph Statistics. The Mapper construction yields a graph with nodes and edges, organized into connected components and retaining approximately of the original tweets (since HDBSCAN drops outliers). By design, edges connect only clusters from adjacent (overlapping) time intervals, producing a sparse, chain-like topology (average degree , clustering coefficient ). Of the components, are non-singleton. The remaining correspond to isolated clusters with no cross-interval overlap and are excluded from subsequent analysis. Of the non-singleton components, () exhibit branching structure, comprising forks and merges. These branching components are substantially larger (median nodes, mean ) than linear ones (median , mean ), corresponding to sustained discourse episodes where threads split into distinct sub-framings or converge around shared events.
| Size bin | Span (days) | Topic pur. | Party pur. | |
|---|---|---|---|---|
| 2–5 nodes | 3,721 | 5.8 | 0.85 | 0.83 |
| 6–20 nodes | 350 | 17.2 | 0.66 | 0.69 |
| 21+ nodes | 44 | 33.1 | 0.53 | 0.62 |
| All | 4,115 | 7.4 | 0.74∗ | 0.73∗ |
Table 1: Component statistics stratified by size. Topic purity is computed over the 33 topic labels from Hoyle et al. (2023); party purity over the two major-party labels. Span reports the mean temporal extent in days. ∗Message-weighted mean across all non-singleton components.
Table 1 summarizes the structural and semantic properties of the non-singleton components, stratified by size. Components vary widely in scale. The median component contains nodes and spans days, whereas the largest comprises nodes over days. Message-weighted purity is overall and declines as components grow, from for small components (– nodes) to for the largest (+ nodes), far above the chance level of . Purity is negatively correlated with both component size (Spearman , ) and temporal extent (Spearman , ).
We additionally report party purity (fraction of messages from the majority party) to assess the degree of partisan structure. Message-weighted party purity is , indicating that components exhibit partisan tendencies but are not trivially segregated by party. The consistent gap between topic and party purity across all size bins confirms that senators from both parties co-occur within topically coherent components, motivating the community-level analysis in Section 5.
User Graph Statistics. The induced user graph over senators is dense (density ), with Jaccard edge weights ranging from to (median ). Despite the low absolute weights, which is expected given the large number of Mapper nodes, the variance is sufficient for community detection: Leiden at resolution yields communities, and yields communities. To validate the induced user similarities against an independent signal, we compare the Jaccard similarity matrix with a co-sponsorship similarity matrix derived from bill co-sponsorship records BICAM (2025) (density ). The Spearman rank correlation between the upper triangles of the two matrices is (), indicating that senators who discuss similar topics at similar times also tend to co-sponsor similar legislation. The community split at resolution partitions the users almost perfectly into the two parties (party purity ).
Comparison to baselines. Two non-topological baselines on the same corpus show what the TSG’s construction adds. A hashtag graph links tweets that share a tag and reads its connected components as discourse clusters Radicioni et al. (2021). It sees only the of tweets that carry a hashtag, and because popular tags such as #covid19 and #sotu bridge unrelated threads, of hashtagged tweets fall into a single giant component of near-chance purity (). Its message-weighted topic purity is against the TSG’s , and a senator graph built from shared hashtags tracks bill co-sponsorship at only , against for the TSG. BERTopic (UMAP HDBSCAN c-TF-IDF) Grootendorst (2022) is a far stronger, genuinely semantic baseline. It assigns each message a global topic, which we split into per-bin nodes and link across consecutive bins. Its per-component topic purity is high (), confirming that it recovers the corpus’s topics well. Its limitation is structural rather than topical. Because topics are fixed before time is considered, every component is a straight chain (degree ) that never forks or merges, and so cannot represent a thread splitting into competing framings or converging on a shared event, the structure the TSG is built around. The advantage is concrete at the user level, where the TSG’s senator graph aligns more closely with bill co-sponsorship than BERTopic’s ( vs ). BERTopic thus recovers what is discussed, while the TSG additionally recovers how discourse branches and merges over time, making it better suited to tracing the formation and evolution of narratives.
4.3 Narrative Extraction Pipeline
To enable narrative-level analysis of the temporal-semantic graph, we enrich the Senate corpus with structured annotations derived from the Narrative Policy Framework (NPF) Shanahan et al. (2018).2 The NPF defines a narrative as a quadruple of:
- Setting – where and when the story unfolds,
- Characters – identified as heroes, villains, or victims,
- Plot – the causal and temporal connections linking events and actors,
- Moral/Solution – the lesson, proposed action, or policy outcome.
Following Gilardi et al. (2023) and Ziems et al. (2024), we use large language models to perform the annotation, grounding the automated labels in gold annotations collected via crowdsourcing. We sampled 250 tweets from the corpus, stratified by party and balanced across the predefined topics and the three Congresses (). Each tweet was annotated by 5 workers on Amazon Mechanical Turk, recruited from English-speaking countries (US, UK, Canada, Australia) at a target hourly rate of $20. For each NPF dimension, we describe the operationalization below3. To aggregate the crowdworker labels, we use MACE Hovy et al. (2013) in a two-round procedure. In the first round, we run MACE on all annotations and remove annotators with an estimated trust score below 0.20. In the second round, we discard all annotations marked as low confidence by the annotators and rerun MACE on the remaining annotations from trusted workers only. The resulting aggregated labels serve as the gold standard. The final LLM annotations are produced by either Grok xAI (2025) or Gemini Google (2026), with the model selected for each dimension based on which model achieved higher agreement with the aggregated crowdworker labels (Table 2).
The Setting. We operationalize the Setting using the Comparative Agendas Project (CAP) codebook Jones et al. (2023) for the United States. It comprises 21 major policy domains, such as healthcare, immigration, and defense, which we use as labels (see Appendix A.1 for guidelines and taxonomy). Human–human agreement reaches Krippendorff’s , which is moderate given the 22-way classification (21 topics plus Other). The best LLM performance was achieved by Gemini with (, F1 ) against the gold labels and was therefore selected as the final annotator for this dimension.
The Characters. For the characters, we adopt the hero-villain-victim (HVV) framework Shanahan et al. (2018); Otmakhova and Frermann (2025). Annotation proceeds in two phases. First, annotators determine whether each role (hero, villain, victim) is present in a given tweet (see Appendix A.2 for guidelines). Second, for each present role, they identify the actor who fills it. We developed a dedicated actor taxonomy of 23 categories (e.g., Author, Democrat – Specific, Private Sector, Civilians – General, see Appendix A.3 for the full taxonomy and guidelines), designed to capture the actors typical of U.S. Senate discourse at multiple levels of specificity. The taxonomy was iteratively refined based on pilot annotations to reduce boundary disagreements, collapsing fine-grained distinctions where inter-annotator agreement was insufficient. For role presence, human-human agreement ranges from (victim) to (villain), with Grok exceeding human agreement across all three roles (F1 -). Actor classification is harder: human–human ranges from (victim) to (villain), reflecting the inherent ambiguity of mapping actors to fine-grained categories. The low agreement for the victim is consistent with the findings in related work Otmakhova and Frermann (2025).
The Moral. The NPF defines the moral as the lesson or proposed solution of a narrative, i.e., the policy outcome the story is meant to justify. Rather than annotating policy solutions directly, which are highly heterogeneous and difficult to systematize, we operationalize the moral dimension through the underlying moral appeals that motivate and legitimize those solutions. For this, we adopt Moral Foundations Theory (MFT) Graham et al. (2013), which classifies moral reasoning along five foundations: Care/Harm, Fairness/Cheating, Loyalty/Betrayal, Authority/Subversion, and Sanctity/Degradation. Each foundation has its own virtue and vice poles, yielding 10 categories. Following Hoover et al. (2020), we annotate each virtue and vice as an independent binary label, as their expressions in natural language are typically distinct (see Appendix A.4 for guidelines). Overall human-human agreement is , with per-foundation values ranging from (Care) to (Betrayal). The exception is Sanctity () and Degradation (), which we attribute to their extreme rarity in U.S. Senate discourse. This mirrors the pattern reported by Hoover et al. (2020), where Sanctity () and Degradation () were likewise the weakest foundations; thus, we exclude them from further analysis.
To test whether moral dimension selection is subjective, we fit a binomial mixed-effects model with random intercepts for item and annotator Browne et al. (2005). Annotator identity explains of the latent variance for Care/Harm and Loyalty/Betrayal and – for the other axes (column , Table 2); the LLM, treated as an extra rater, sits within of the human rater variation and is overall negative. This means the LLM is slightly more conservative in selecting a moral dimension than the average human, but well within human variation.
| Hum-Hum | LLM-Hum | ||||
|---|---|---|---|---|---|
| Dimension | MV Agr. | F1 | |||
| Setting (CAP Topic) | 0.580 | 0.786 | 0.688 | 0.741 | |
| Character Overall*†* | 0.537 | 0.800 | 0.614 | 0.617 | |
| Moral Found. Overall | 0.400 | 0.852 | 0.685 | 0.371 | |
| Character†** | |||||
| Hero (presence) | 0.621 | 0.905 | 0.862 | 0.736 | |
| Villain (presence) | 0.649 | 0.921 | 0.819 | 0.705 | |
| Victim (presence) | 0.557 | 0.895 | 0.793 | 0.608 | |
| Hero (actor) | 0.468 | 0.760 | 0.493 | 0.533 | |
| Villain (actor) | 0.519 | 0.742 | 0.684 | 0.742 | |
| Victim (actor) | 0.382 | 0.780 | 0.467 | 0.449 | |
| Focus | 0.778 | 0.917 | 0.813 | 0.742 | |
| Moral Foundations | |||||
| Care | 0.396 | 0.827 | 0.762 | 0.526 | 49.9 |
| Harm | 0.440 | 0.839 | 0.704 | 0.409 | |
| Fairness | 0.352 | 0.814 | 0.750 | 0.500 | 29.0 |
| Cheating | 0.540 | 0.879 | 0.806 | 0.612 | |
| Loyalty | 0.520 | 0.867 | 0.774 | 0.549 | 48.6 |
| Betrayal | 0.584 | 0.906 | 0.607 | 0.216 | |
| Authority | 0.521 | 0.864 | 0.710 | 0.421 | 25.7 |
| Subversion | 0.555 | 0.886 | 0.730 | 0.460 | |
| Sanctity | 0.056 | 0.814 | 0.570 | 0.142 | – |
| Degradation | 0.038 | 0.826 | 0.438 | -0.122 | – |
Table 2: Inter-annotator agreement, LLM performance, and annotation subjectivity across NPF and CAP dimensions. : Krippendorff’s alpha; MV Agr.: mean majority-vote agreement; F1: macro-averaged F1 of the selected LLM against MACE-aggregated gold labels. : % of latent-scale variance attributable to annotator identity, at the foundation-axis level (virtue/vice collapsed). † annotated with Grok; all others with Gemini.
| Dimension | All | Dem | Rep | |
|---|---|---|---|---|
| Setting (CAP topic); Cramér’s | ||||
| Macroeconomics | 8.1 | 5.9 | 10.4 | *** |
| Health | 16.5 | 18.4 | 14.5 | *** |
| Environment | 4.4 | 6.3 | 2.4 | *** |
| Civil Rights | 6.1 | 7.7 | 4.3 | *** |
| International Affairs | 8.8 | 7.7 | 10.1 | *** |
| Labor | 2.7 | 3.8 | 1.5 | *** |
| Defense | 4.3 | 3.5 | 5.3 | *** |
| Government Operations | 11.0 | 10.1 | 11.9 | *** |
| Characters: role present | ||||
| Hero | 34.9 | 33.0 | 36.8 | *** |
| Villain | 32.5 | 34.4 | 30.5 | *** |
| Victim | 42.9 | 48.4 | 37.0 | *** |
| signature actors (% of role-present tweets) | ||||
| Villain: Pres. Trump | – | 23.1 | 2.1 | |
| Villain: Democrats (grp.) | – | 0.1 | 18.2 | |
| Villain: Republicans (grp.) | – | 14.8 | 0.4 | |
| Villain: Foreign State | – | 12.5 | 24.6 | |
| Villain: Private Sector | – | 14.7 | 6.3 | |
| Hero: Pres. Trump | – | 0.6 | 10.6 | |
| Victim: Identity Group | – | 15.7 | 6.1 | |
| Moral Foundations (per pole) | ||||
| Care | 64.3 | 73.2 | 54.8 | *** |
| Harm | 60.6 | 67.6 | 53.0 | *** |
| Fairness | 37.7 | 46.6 | 28.2 | *** |
| Cheating | 24.0 | 29.4 | 18.2 | *** |
| Loyalty | 39.3 | 36.4 | 42.5 | *** |
| Betrayal | 11.4 | 13.1 | 9.7 | *** |
| Authority | 69.3 | 68.6 | 70.2 | *** |
| Subversion | 18.5 | 18.1 | 18.9 | * |
| Authority / Subversion by administration | ||||
| Authority (Trump) | – | 65.5 | 70.6 | |
| Subversion (Trump) | – | 21.7 | 12.4 | |
| Authority (Biden) | – | 74.5 | 69.3 | |
| Subversion (Biden) | – | 11.2 | 31.7 |
Table 3: Corpus-level narrative distributions by party (% of tweets, ; Independents excluded). in percentage points; positive values lean Democrat. Setting shows the eight CAP topics with the largest partisan deviation. Characters reports role-presence rates and the most partisan-diagnostic actors, conditional on the role being present. Moral Foundations reports per-pole prevalence, with Authority/Subversion further split by presidential administration. Significance: * , ** , *** (Bonferroni-corrected ).
4.4 Narrative Statistics
Table 3 shows the corpus-level distribution of the narrative labels.
The Setting. Health is the most frequent setting (16.5%), followed by Government Operations (11.0%) and International Affairs (8.8%). The overall association between party and topic is modest (Cramér’s , ), consistent with stable patterns of partisan issue ownership Seeberg (2017): Democrats over-represent Health, Environment, and Civil Rights, while Republicans over-represent Macroeconomics, Defense, and International Affairs. Since topic selection alone only modestly separates the parties, the narrative dimensions introduced below are needed to capture how the same issues are framed differently across partisan lines.
Characters. Victims are the most frequently invoked role (42.9% of tweets), followed by heroes (34.9%) and villains (32.5%). All three roles show significant partisan differences: Democrats invoke victims substantially more often (48.4% vs. 37.0%), while Republicans assign heroes at a higher rate (36.8% vs. 33.0%). Villain attribution reveals the starkest contrast. Democrats construct a primarily domestic threat narrative targeting President Trump (23.1%) and Republicans as a group (14.8%), whereas Republicans direct blame outward toward Foreign States (24.6%) and Democrats (18.2%). Villain–victim co-occurrence (20.0%) far exceeds hero–villain (8.0%), indicating that Senate discourse is predominantly structured around blame attribution rather than solution narratives.
Moral. Authority (69.3%), Care (64.3%), and Harm (60.6%) are the most prevalent poles, followed by Loyalty (39.3%) and Fairness (37.7%). Democrats invoke Care and Fairness at substantially higher rates than Republicans (Care: 73.2% vs. 54.8%; Fairness: 46.6% vs. 28.2%; Cramér’s ), consistent with the individualizing–binding axis in Moral Foundations Theory Graham et al. (2013). The binding foundations reveal a more dynamic pattern: Authority and Subversion appeals are strongly modulated by which party holds the presidency. The governing party defends institutional legitimacy while the opposition challenges it, producing a full reversal between administrations: under Trump, Republicans lead on Authority (70.6% vs. 65.5%) and Democrats on Subversion (21.7% vs. 12.4%), while under Biden the pattern inverts, with Republican Subversion rising to 31.7% (see Table 3).
A worked example. Figure 2 shows an example of texts in two adjacent nodes, linked by a single shared message (i.e., Senator Udall’s tweet). The example also shows why the clustering is semantic rather than positional. Node 1075 groups a Democratic accusation (#GOPTaxScam, villain GOP) together with Republican defenses of the same bill (Care, Authority), because the cluster forms around what the messages are about, not the stance they take (which would be possible using based on stances). In the next section, we showcase how this co-occurrence of opposing framings within a shared structure can be used.
shared message this is the edge
Figure 2: Two adjacent nodes from the TCJA component, with party, Moral Foundations (vice/virtue) and character labels. Because adjacent intervals overlap, Udall’s tweet falls in both nodes and forms the edge between them. Note that node 1075 groups opposing stances because they are semantically about the same event.
5 Use Case: The Tax Cuts and Jobs Act
We demonstrate the full analytical pipeline of the TSG through a case study on the Tax Cuts and Jobs Act (TCJA), the major tax reform legislation debated in November–December 2017. The analysis proceeds in two parts. First, we construct a second temporal-semantic graph from New York Times articles and use cross-corpus component matching to identify the TCJA as a shared discourse episode across Senate and journalistic coverage (Section 5.1). Second, we use the graph’s topological structure, community decomposition, and narrative annotations to reveal partisan framing divergence and moral inversion within the Senate component (Section 5.2).
5.1 Cross-Corpus Event Discovery
To demonstrate the generalizability of the TSG beyond social media, we construct a second temporal-semantic graph from New York Times article abstracts. We retrieved article metadata from the New York Times Archive API The New York Times (2026) and filtered the archive to 14 relevant desk categories (e.g., National, Foreign, Politics, Business, and Editorial) over the same time span as the Senate corpus, yielding metadata records. Since NYT lead paragraphs are well-formed journalistic prose, we embed them directly using the same Jasper model without inferential decomposition and apply the identical Mapper pipeline ( intervals, , HDBSCAN with minimum cluster size ). The resulting graph comprises nodes and edges organized into connected components ( non-singleton), retaining approximately of the articles.
We instantiate the cross-graph similarity function introduced in Section 3.3 as follows. For each pair of components from the Senate and NYT graphs whose time spans overlap, we concatenate the texts within each component (inferential decompositions for the Senate, lead paragraphs for the NYT), compute a joint TF-IDF representation over the union of both corpora ( features, English stop words removed), and measure cosine similarity between the resulting component vectors. We retain all pairs with , yielding matched component pairs.
Table 5 (in Appendix B.1) shows the top-ranked matches. The alignments correspond to recognizable events across both corpora, confirming that the unsupervised matching procedure recovers known events without any manual annotation. Among these matches, the pair of Senate component 3 ( tweets, 4th largest) and NYT component 8 ( articles, 9th largest) constitutes one of the largest matched pairs (). Both cover the TCJA debate. The NYT component traces the full legislative arc from Trump’s initial tax cut pitch through the House and Senate votes in predominantly procedural terms: vote counts, deficit projections, and legislative maneuvering. The Senate component, by contrast, reveals sharply divergent partisan framings that become visible only through community decomposition, which we analyze next.
5.2 Narrative Divergence within the Senate
Figure 3: Topological structure of Component 3 (Tax Cuts and Jobs Act, Nov–Dec 2017). Node size is proportional to tweet count. Color indicates partisan composition (blue = Democrat-leaning, red = Republican-leaning, purple = bipartisan). Triangles mark forks (\triangledown, amber) and merges (\triangle, green). The component exhibits a dense bipartisan core around the Senate vote (Nov 27–Dec 3) that narrows into a Democrat-dominated post-passage tail.
Component 3 comprises nodes and edges, with forks and merges (Figure 3). Using the six-community Leiden partition (), the component contains members from all six communities: C0 (120 tweets, exclusively Democrat), C1 (40, exclusively Republican), C2 (34, mixed), C3 (8, predominantly Democrat), C4 (11, exclusively Republican), and C5 (3, the two-senator community of Manchin and Murkowski), which we omit from the analysis below. The topology traces the full legislative arc of the TCJA: an early phase of separated partisan threads (Nov 11–17) that converge into large bipartisan nodes around the Senate vote (Nov 27–Dec 3), followed by post-vote branches that narrow into a Democrat-only chain through December 20.
Topological structure and narrative framing. To showcase the analytical value of this structure, we consider three nodes in the graph (see Tables 6 & 7 in Appendix B.1 for party-conditioned narrative profiles and fork/merge anatomy, and Table 4 for sample Tweets).
Finance Committee Node ( tweets, Nov 15–19). This corresponds to the House passing its bill (November 16) and the Senate Finance Committee advancing its version. The node’s parents are three nodes with predominantly Republican tweets (advocating for the TCJA) and one node with predominantly Democratic tweets (opposing the TCJA, Harm and Cheating equal to 1, and villainRepublican_General in 11 out of 12 tweets). It then forks into three branches: (i) a purely Republican branch celebrating the Finance Committee vote with heroRepublican_General and no villains, (ii) a purely Democrat branch deploying the #GOPTaxScam frame with Cheating 1.0 and villainRepublican_General in all five tweets and (iii) a second Democrat branch focusing on concrete policy impacts (student loan deductions, graduate school affordability) rather than abstract blame. The clustering thus distinguishes not only partisan splits but also within-party register differences. Accusation versus policy specificity, which a flat topic model could conflate.
Senate Floor Debate Node ( tweets, Nov 27–Dec 1). This corresponds to the Senate floor debate before the Senate vote. The Democrats’ tweets focus on casting the general public as the primary victims ( Democrat tweets) and the Republican Party as the primary villain ( Democrat tweets), with a strong emphasis on harm (). While the Republican Tweets focus more on the Moral aspects of authority (), care (), fairness (), and loyalty ().
Senate Vote Node ( tweets, Nov 29–Dec 3). A child of the floor-debate node, it corresponds to the vote itself: Republicans celebrate the victory (care in tweets) while Democrats sustain the same blame framing (harm), which carries into the subsequent Post-vote Node.
The post-vote topology reveals two patterns. The first is the persistence of the Democratic thread, which maintains the deficit-and-inequality framing until December 23. The second is a transient fragmentation of the discourse into subtopics, visible as the burst of small, mixed-party nodes forking from the post-vote node around December 7. For instance, senators of both parties addressed the lapsed Children’s Health Insurance Program (CHIP): Republicans called for its funding to be restored, while Democrats criticized the GOP for affording “a couple trillion dollars worth of handouts to the rich” while neglecting children’s healthcare. A second fragment formed around the Economic Growth, Regulatory Relief, and Consumer Protection Act, a bipartisan banking bill that advanced through committee on December 5: Democratic sponsors promoted “our bipartisan bill” to bring “Main Street businesses the regulatory relief they need,” while Republicans emphasized the regulatory burden on community banks, echoing the Main-Street and growth vocabulary of the tax debate. The fragmentation is short-lived: by December 11, the deficit and economic-growth threads re-merge into the Democratic mainline, while the CHIP and consumer-protection offshoots terminate. The TSG renders these dynamics directly observable: it records which subtopics co-occur in the aftermath of the vote, their provenance and fate, which threads fork from the main debate, which re-merge into it, and which dissolve.
Community-level character framing. Projecting character annotations onto the community partition sharpens the partisan contrast visible in the topology. C0 deploys a pure blame narrative. Republicans as a group are cast as villains in the majority of tweets, civilians as victims, and heroes are virtually absent. The framing centers on identifying who is causing harm, rather than who offers a solution. C1 and C4, by contrast, assign almost no villains. C1 casts Republican institutions and individual senators as heroes, emphasizing procedural transparency, while C4 avoids archetypal roles altogether, focusing on specific policy amendments such as the Child Tax Credit expansion. The smaller communities occupy intermediate positions. C2 (mixed) frames the legislation through broad economic narratives, while C3 (rural Democrats) shares C0’s victim framing but directs blame at Congress as an institution rather than at Republicans specifically.
Figure 4: Moral Foundations prevalence per community in Component 3 (Tax Cuts and Jobs Act), shown as deviations from each community’s party-level baseline. Red indicates an increase relative to the baseline, blue a decrease. Democrats (C0, C3) shift away from Care toward Cheating and Betrayal; Republicans (C1, C4) suppress Harm and co-opt Care and Fairness. is the tweet count per community.
Moral inversion. Figure 4 reveals that the character-level divergence is accompanied by a moral inversion relative to each community’s party baseline. C0 Democrats deviate sharply from their typical profile, with the largest increases in Cheating (), Fairness (), and Betrayal (), while Care, normally their most characteristic foundation, drops by . This shift from empathy to accusation reflects the #GOPTaxScam messaging strategy, which frames the legislation as a deliberate act of deception rather than a policy disagreement. C4 Republicans exhibit the inverse deviation: Care increases by and Fairness by , while Harm decreases by , thereby framing the tax cuts as protective and equitable. C1 shows a more muted version, suppressing Harm () and Subversion (), while C2 emphasizes Care and Fairness while suppressing Loyalty, consistent with cross-partisan economic pragmatism.
Summary. This use case illustrates the multi-resolution capability of the TSG. The cross-corpus matching identifies the shared event without manual annotation, the topological backbone isolates it as a temporally coherent discourse episode, the community structure partitions its participants, and the narrative annotations reveal how the same legislative event triggers opposing moral re-framings across partisan lines. Deviations that are invisible at the corpus level and inaccessible without the graph’s structural decomposition.
6 Conclusion
We introduced the Temporal-Semantic Graph (TSG), a framework that models longitudinal discourse as a structured graph rather than a series of discrete snapshots. By applying the Mapper algorithm to a semantic backbone of timestamped messages, the TSG captures the connective tissue of evolving narratives, identifying the branching and merging structures that define complex discourse episodes. Our experiments on U.S. Senate communication and New York Times reporting validate the framework across three dimensions. First, cross-corpus component matching recovers shared events without manual annotation. Second, the induced user communities recover the Senate’s partisan structure without interaction metadata or voting records. Finally, the TCJA case study demonstrates that the graph’s topological structure encodes narrative divergence and moral inversion across partisan lines. As part of this work, we also release NPF and MFT annotations for the full Senate corpus, produced via a crowdsourcing-grounded LLM pipeline that achieves agreement on par with or exceeding human annotators across most dimensions. These results establish the TSG as a practical instrument for exploring discourse, but also delimit what it provides. Filtering on a single temporal axis with a fixed-width cover captures continuity only locally in time: a topic that falls dormant and later resurfaces fragments into disconnected components rather than reconnecting. The episodes the graph exposes are emergent rather than predefined, so their extent shifts with the data and episode boundaries are softly defined. And because clustering targets semantics, opposing framings of the same issue co-occur within a node; recovering how an issue is framed relies on the narrative and community layers, or on a stance-aware extraction function , rather than on the topology alone. Each of these is a single choice within a larger design space—the lens, , the embedding, the clustering algorithm, and the temporal resolution are all interchangeable, which we see as the natural direction for future work. In particular, a multiscale construction linking graphs across resolutions, in the spirit of multiscale Mapper Dey et al. (2016), could let stable discourse episodes be identified by their persistence across scales rather than fixed a priori.
Acknowledgments
We thank the action editor and the anonymous reviewers for their constructive feedback, which helped improve this paper. This work was supported by the CHIST-ERA HAMiSoN project grant CHIST-ERA-21-OSNEM002, by the Swiss National Science Foundation (SNSF) under grant 20CH21_209672, by MICIU/AEI/10.13039/501100011033 under grant PCI2022-135026-2, and by the I+D+i project DeepSocial (PID2024-159202OB-C22), funded by MICIU/AEI/10.13039/501100011033 and by FEDER, UE.
References
- An et al. (2026) H. An, X. Chen, W. Lyu, D. Zhang, Z. Zeng, Z. Zhao, R. Song, and H. Xu Jasper-Flash: elastic token compression and progressive distillation for inference-scalable text embedding models. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, H. Lee, S. Dev, J. J. Li, and D. Elliott (Eds.), Budapest, Hungary, pp. 25766–25789. Link
- Barberá (2015) P. Barberá Birds of the same feather tweet together: bayesian ideal point estimation using Twitter data. Political Analysis 23 (1), pp. 76–91. Document
- BICAM (2025) BICAM BICAM: a comprehensive congressional database. Note: Bulk Ingestion of Congressional Actions and Materials. Massachusetts Institute of Technology, Department of Political Science. https://bicam.net/Accessed: March 28, 2026 Link
- Blei and Lafferty (2006) D. M. Blei and J. D. Lafferty Dynamic topic models. In Proceedings of the 23rd International Conference on Machine Learning, New York, NY, USA, pp. 113–120. Link
- Boutyline and Willer (2017) A. Boutyline and R. Willer The social structure of political echo chambers: variation in ideological homophily in online networks. Political Psychology 38 (3), pp. 551–569. Document
- Browne et al. (2005) W. J. Browne, S. V. Subramanian, K. Jones, and H. Goldstein Variance partitioning in multilevel logistic models that exhibit overdispersion. Journal of the Royal Statistical Society Series A: Statistics in Society 168 (3), pp. 599–613. Document
- Brugnoli and Lo Sardo (2024) E. Brugnoli and D. R. Lo Sardo Community-based stance detection. In Proceedings of the Tenth Italian Conference on Computational Linguistics (CLiC-it 2024), F. Dell’Orletta, A. Lenci, S. Montemagni, and R. Sprugnoli (Eds.), Pisa, Italy, pp. 98–105. Link
- Byrne et al. (2022) C. Byrne, D. Horak, K. Moilanen, and A. Mabona Topic modeling with topological data analysis. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, Y. Goldberg, Z. Kozareva, and Y. Zhang (Eds.), Abu Dhabi, United Arab Emirates, pp. 11514–11533. Link
- Campello et al. (2013) R. J. G. B. Campello, D. Moulavi, and J. Sander Density-based clustering based on hierarchical density estimates. In Advances in Knowledge Discovery and Data Mining: 17th Pacific-Asia Conference, PAKDD 2013, J. Pei, V. S. Tseng, L. Cao, H. Motoda, and G. Xu (Eds.), Lecture Notes in Computer Science, Vol. 7819, Berlin, Heidelberg, pp. 160–172. Document
- Conover et al. (2011) M. Conover, J. Ratkiewicz, M. Francisco, B. Gonçalves, F. Menczer, and A. Flammini Political polarization on Twitter. Proceedings of the International AAAI Conference on Web and Social Media 5 (1), pp. 89–96. Document
- Demszky et al. (2019) D. Demszky, N. Garg, R. Voigt, J. Zou, J. Shapiro, M. Gentzkow, and D. Jurafsky Analyzing polarization in social media: method and application to tweets on 21 mass shootings. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio (Eds.), Minneapolis, Minnesota, pp. 2970–3005. Link
- Dey et al. (2016) T. K. Dey, F. Mémoli, and Y. Wang Multiscale Mapper: topological summarization via codomain covers. In Proceedings of the Twenty-Seventh Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), Arlington, Virginia, USA, pp. 997–1013. Document
- Esteve-Del-Valle (2022) M. Esteve-Del-Valle Homophily and polarization in Twitter political networks: a cross-country analysis. Media and Communication 10 (2). Document
- Gilardi et al. (2023) F. Gilardi, M. Alizadeh, and M. Kubli ChatGPT outperforms crowd workers for text-annotation tasks. Proceedings of the National Academy of Sciences 120 (30), pp. e2305016120. Document
- Google (2026) Google Gemini 3.1 Flash-Lite Preview. Note: Large language model, model ID
gemini-3.1-flash-lite-preview. https://ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-lite-previewAccessed: March 25, 2026 Link - Graham et al. (2013) J. Graham, J. Haidt, S. Koleva, M. Motyl, R. Iyer, S. P. Wojcik, and P. H. Ditto Moral Foundations Theory: The pragmatic validity of moral pluralism. Advances in Experimental Social Psychology 47, pp. 55–130. Document
- Grootendorst (2022) M. Grootendorst BERTopic: neural topic modeling with a class-based TF-IDF procedure. arXiv preprint arXiv:2203.05794v1.
- He et al. (2024) Z. He, A. Rao, S. Guo, N. Mokhberian, and K. Lerman Reading between the tweets: deciphering ideological stances of interconnected mixed-ideology communities. In Findings of the Association for Computational Linguistics: EACL 2024, pp. 1523–1536. Document
- Hoover et al. (2020) J. Hoover, G. Portillo-Wightman, L. Yeh, S. Havaldar, A. M. Davani, Y. Lin, B. Kennedy, M. Atari, Z. Kamel, M. Mendlen, G. Moreno, C. Park, T. E. Chang, J. Chin, C. Leong, J. Y. Leung, A. Mirinjian, and M. Dehghani Moral Foundations Twitter Corpus: a collection of 35k tweets annotated for moral sentiment. Social Psychological and Personality Science 11 (8), pp. 1057–1071. Document
- Hovy et al. (2013) D. Hovy, T. Berg-Kirkpatrick, A. Vaswani, and E. Hovy Learning whom to trust with MACE. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, L. Vanderwende, H. Daumé III, and K. Kirchhoff (Eds.), Atlanta, Georgia, pp. 1120–1130. Link
- Hoyle et al. (2023) A. Hoyle, R. Sarkar, P. Goel, and P. Resnik Natural language decompositions of implicit content enable better text representations. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, H. Bouamor, J. Pino, and K. Bali (Eds.), Singapore, pp. 13188–13214. Link
- Huguet Cabot et al. (2020) P. Huguet Cabot, V. Dankers, D. Abadi, A. Fischer, and E. Shutova The Pragmatics behind Politics: Modelling Metaphor, Framing and Emotion in Political Discourse. In Findings of the Association for Computational Linguistics: EMNLP 2020, T. Cohn, Y. He, and Y. Liu (Eds.), Online, pp. 4479–4488. Link
- Jones et al. (2023) B. D. Jones, F. R. Baumgartner, S. M. Theriault, D. A. Epp, C. Lee, M. E. Sullivan, and C. Cassella Policy Agendas Project: Codebook. Note: Comparative Agendas Project, https://www.comparativeagendas.net/usAccessed: March 28, 2026 Link
- Keith Norambuena and Mitra (2021) B. F. Keith Norambuena and T. Mitra Narrative maps: an algorithmic approach to represent and extract information narratives. Proceedings of the ACM on Human-Computer Interaction 4 (CSCW3), pp. 1–33. Document
- Küpfer (2024) A. Küpfer Nonrandom tweet mortality and data access restrictions: compromising the replication of sensitive Twitter studies. Political Analysis 32 (4), pp. 493–506. Document
- Otmakhova and Frermann (2025) Y. Otmakhova and L. Frermann Narrative media framing in political discourse. In Findings of the Association for Computational Linguistics: ACL 2025, W. Che, J. Nabende, E. Shutova, and M. T. Pilehvar (Eds.), Vienna, Austria, pp. 9167–9196. Link
- Paoletti et al. (2025) G. Paoletti, C. H. G. Ferreira, L. Vassio, L. Rocha, and J. M. Almeida Tracing the 2024 U.S. election debate on Telegram with LLMs and graph analysis. Social Network Analysis and Mining 15 (1). Document
- Radicioni et al. (2021) T. Radicioni, F. Saracco, E. Pavan, and T. Squartini Analysing Twitter semantic networks: The case of 2018 Italian elections. Scientific Reports 11 (1), pp. 13207.
- Santana et al. (2023) B. Santana, R. Campos, E. Amorim, A. Jorge, P. Silvano, and S. Nunes A survey on narrative extraction from textual data. Artificial Intelligence Review 56 (8), pp. 8393–8435. Document
- Sawhney et al. (2021) R. Sawhney, S. Agarwal, A. Wadhwa, and R. Shah TEC: a time evolving contextual graph model for speaker state analysis in political debates. In Proceedings of the Thirtieth International Joint Conference on Artificial Intelligence, IJCAI-21, Z. Zhou (Ed.), pp. 3552–3558. Document
- Sawhney et al. (2020) R. Sawhney, A. Wadhwa, S. Agarwal, and R. R. Shah GPolS: a contextual graph-based language model for analyzing parliamentary debates and political cohesion. In Proceedings of the 28th International Conference on Computational Linguistics, D. Scott, N. Bel, and C. Zong (Eds.), Barcelona, Spain (Online), pp. 4847–4859. Link
- Seeberg (2017) H. B. Seeberg How stable is political parties’ issue ownership? A cross-time, cross-national analysis. Political Studies 65 (2), pp. 475–492 (English). Document
- Shanahan et al. (2018) E. A. Shanahan, M. D. Jones, M. K. McBeth, and C. M. Radaelli The Narrative Policy Framework. In Theories of the Policy Process, C. M. Weible and P. A. Sabatier (Eds.), pp. 173–213.
- Simi (2024) L. Simi tda-mapper. Note: Software, version 0.8.0. Zenodo Document
- Simi (2025) L. Simi A scalable approach for Mapper via efficient spatial search. Transactions on Machine Learning Research. Note: Link
- Singh et al. (2007) G. Singh, F. Mémoli, and G. Carlsson Topological methods for the analysis of high dimensional data sets and 3D object recognition. In Eurographics Symposium on Point-Based Graphics, M. Botsch, R. Pajarola, B. Chen, and M. Zwicker (Eds.), pp. 91–100. Document
- The New York Times (2026) The New York Times Archive API. Note: New York Times Developer Network, https://developer.nytimes.com/docs/archive-product/1/overviewAccessed: March 30, 2026 Link
- Traag et al. (2019) V. A. Traag, L. Waltman, and N. J. van Eck From Louvain to Leiden: Guaranteeing well-connected communities. Scientific Reports 9 (1), pp. 5233. Document
- xAI (2025) xAI Grok 4.1 Fast. Note: Large language model, model ID
grok-4-1-fast-reasoning. https://x.ai/news/grok-4-1-fastAccessed: March 27, 2026 Link - Zhang et al. (2025) D. Zhang, Z. Zeng, Y. Zhou, and S. Lu Jasper-Token-Compression-600M technical report. arXiv preprint arXiv:2511.14405v2.
- Ziems et al. (2024) C. Ziems, W. Held, O. Shaikh, J. Chen, Z. Zhang, and D. Yang Can large language models transform computational social science?. Computational Linguistics 50 (1), pp. 237–291. Link
Appendix A Prompts & Guidelines
A.1 CAP Annotation Guidelines
A.2 HVV Annotation Guidelines
A.3 HVV Actor Taxonomy Guidelines
A.4 Moral Foundations Annotation Guidelines
Appendix B Supplementary Results
B.1 Use Case Addendum
| (a) Partisan moral contrast — Senate Floor Debate Node (Nov 27–Dec 1, =73, D=43, R=30) |
|---|
| [D] Casey: “The latest nonpartisan CBO report shows that households earning $75K or less will eventually pay more taxes under the GOP plan, while millionaires and corporations get a tax cut. That’s obscene.” Harm, Fairness, Cheating Villain: Republican General |
| [R] Tillis: “The Tax Cuts & Jobs Act will provide historic tax relief to hardworking Americans, grow our economy, raise wages, and create jobs. #TaxReform” Care, Loyalty, Authority |
| (b) Within-party register split — Fork branches from Finance Committee Node |
| Branch: #GOPTaxScam (accusation frame, =5, D=5) |
| [D] Blumenthal: “#GOPTaxPlan shows Republicans will do anything to hand giveaways to those who need them least. Raising taxes & premiums on working families is just the cost of doing business.” Harm, Cheating, Betrayal Villain: Republican General |
| Branch: Policy impact (specificity frame, =2, D=2, topic: Education) |
| [D] Harris: “Another thing to add to your list of why the GOP tax plan is terrible: If the House bill becomes law, graduate school would become unaffordable for many Americans.” Care, Harm, Fairness Villain: Republican General |
| (c) Cross-corpus register contrast — Senate Vote Node vs. NYT Component 8 |
| Senate [D] Shaheen: “#GOPTaxBill would add more than $1 TRILLION to the deficit, yet Senate GOP is rushing to pass a bill that hurts hard-working families at the expense of the wealthy & large corporations. This is just wrong.” Care, Harm, Fairness, Cheating, Betrayal Villain: Republican General |
| Senate [R] Collins: “As revised, this bill will provide much-needed tax relief and simplification for lower- and middle-income families, while spurring the creation of good jobs and greater economic growth.” Care, Fairness, Authority |
| NYT: “The Senate moved closer to approving a sweeping overhaul of the tax code on Wednesday, voting to begin debate on the tax bill as Republican leaders continue trying to secure the votes for passage.” |
| NYT: “The Senate Republican tax bill, which had appeared to be cruising to victory, suffered a setback late on Thursday as lawmakers were forced to contemplate significant changes.” |
Table 4: Sample content from Component 3 (Tax Cuts and Jobs Act), illustrating three analytical dimensions of the TSG. (a) Partisan moral contrast within a single node, where Democrats invoke Harm and Cheating while Republicans invoke Care and Authority (cf. Table 6). (b) Within-party register split captured by the fork structure, where both branches are exclusively Democrat, but the #GOPTaxScam branch uses abstract blame while the policy-impact branch targets concrete legislation (cf. Table 7). (c) Cross-corpus register contrast, where senators frame the same event through moral and distributional appeals. The NYT covers it in procedural terms. Annotations show vice-pole MFT / virtue-pole MFT foundations and character roles.
| S-id | N-id | sim | Senate dates | NYT dates | Top keywords |
|---|---|---|---|---|---|
| 48 | 58 | .81 | Oct 7–26, ’18 | Oct 11–Nov 6, ’18 | saudi, khashoggi, jamal |
| 2347 | 76 | .81 | Apr 21–22, ’19 | Apr 18–May 6, ’19 | sri lanka, easter, attacks |
| 460 | 17 | .77 | Aug 12–21, ’19 | Aug 7–Sep 2, ’19 | hong kong, china, protesters |
| 12 | 16 | .75 | Feb 12–Mar 4, ’22 | Jan 5–Feb 22, ’22 | ukraine, russia, putin |
| 40 | 14 | .73 | Jan 22–Feb 6, ’20 | Jan 6–Feb 6, ’20 | impeachment, trial, trump |
| 277 | 77 | .69 | Nov 12–26, ’19 | Oct 28–Nov 19, ’19 | hong kong, protests, democracy |
| 352 | 631 | .68 | Oct 27–Nov 1, ’19 | Oct 27–31, ’19 | baghdadi, al-bakr, raid |
| 12 | 256 | .67 | Feb 12–Mar 4, ’22 | Feb 19–25, ’22 | ukraine, invasion, russian |
| 387 | 223 | .67 | May 3–5, ’22 | May 2–14, ’22 | roe, wade, abortion, court |
| 438 | 197 | .67 | Nov 16–21, ’18 | Nov 9–22, ’18 | khashoggi, saudi, killing |
| 12 | 710 | .65 | Feb 12–Mar 4, ’22 | Feb 22–25, ’22 | ukraine, putin, sanctions |
| 3 | 8 | .64 | Nov 13–Dec 20, ’17 | Oct 7–Dec 20, ’17 | tax, plan, cuts, senate |
| 21 | 132 | .63 | Mar 1–18, ’22 | Mar 6–19, ’22 | ukraine, russian, zelensky |
| 77 | 258 | .62 | Mar 18–Apr 10, ’22 | Apr 10–15, ’22 | ukraine, putin, war, bucha |
| 18 | 6 | .61 | Aug 12–Sep 7, ’21 | Jul 20–Sep 1, ’21 | afghanistan, kabul, taliban |
| 340 | 457 | .61 | Apr 12–19, ’19 | Apr 14–19, ’19 | mueller, report, barr |
| 77 | 132 | .60 | Mar 18–Apr 10, ’22 | Mar 6–19, ’22 | ukraine, russian, war |
| 159 | 8 | .60 | Nov 5–18, ’17 | Oct 7–Dec 20, ’17 | tax, code, senate, republican |
| 519 | 16 | .60 | Feb 2–10, ’22 | Jan 5–Feb 22, ’22 | ukraine, putin, nato |
| 80 | 419 | .60 | Sep 20–Oct 7, ’17 | Sep 22–Oct 4, ’17 | puerto rico, hurricane, maria |
| 3 | 8 | .64 | Nov 13–Dec 20, ’17 | Oct 7–Dec 20, ’17 | tax, plan, cuts, senate |
Table 5: Cross-corpus component matches between the Senate and NYT temporal-semantic graphs, ranked by TF-IDF cosine similarity. S-id and N-id denote component indices. Note that Senate component 12 (Ukraine/Russia) matches three distinct NYT components covering different phases of the crisis. The bottom row highlights the match selected for the case study in Section 5.
| Villain | Hero | Victim | ||||||
|---|---|---|---|---|---|---|---|---|
| Node | Party | Actor | Rate | Actor | Rate | Actor | Rate | |
| Finance Committee | Dem. | 19 | Republican General | 0.95 | – | – | Civilians General | 0.68 |
| Nov 15–19 | Rep. | 11 | – | – | Republican General | 0.18 | Civilians General | 0.18 |
| Senate Floor Debate | Dem. | 43 | Republican General | 0.72 | – | – | Civilians General | 0.74 |
| Nov 27–Dec 1 | Rep. | 30 | – | – | Republican General | 0.17 | Civilians General | 0.20 |
| Senate Vote | Dem. | 47 | Republican General | 0.81 | – | – | Civilians General | 0.62 |
| Nov 29–Dec 3 | Rep. | 25 | – | – | Congress | 0.20 | – | – |
| Post-Vote Tail | Dem. | 15 | Republican General | 0.93 | – | – | Civilians General | 0.67 |
| Dec 3–20 | Rep. | 1 | – | – | – | – | – | – |
| Moral Foundations | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Node | Party | Care | Harm | Fair | Cheat | Loyal | Betr | Auth | Subv | |
| Finance Committee | Dem. | 19 | 0.68 | 0.84 | 0.89 | 0.79 | 0.11 | 0.37 | 0.32 | 0.32 |
| Nov 15–19 | Rep. | 11 | 0.82 | 0.27 | 0.64 | 0.09 | 0.09 | – | 0.82 | – |
| Senate Floor Debate | Dem. | 43 | 0.53 | 0.98 | 0.74 | 0.72 | 0.09 | 0.26 | 0.37 | 0.07 |
| Nov 27–Dec 1 | Rep. | 30 | 0.60 | 0.33 | 0.47 | 0.17 | 0.40 | – | 0.73 | – |
| Senate Vote | Dem. | 47 | 0.53 | 0.91 | 0.68 | 0.64 | 0.06 | 0.34 | 0.47 | 0.19 |
| Nov 29–Dec 3 | Rep. | 25 | 0.80 | 0.08 | 0.40 | 0.08 | 0.52 | – | 0.80 | – |
| Post-Vote Tail | Dem. | 15 | 0.60 | 0.93 | 0.73 | 1.00 | 0.07 | 0.40 | 0.33 | 0.47 |
| Dec 3–20 | Rep. | 1 | – | – | – | – | – | – | – | – |
Table 6: Party-conditioned narrative profiles for the four key nodes in Component 3 (Tax Cuts and Jobs Act). Top: Character role assignments per party (actor and prevalence rate “–” if ). Bottom: Moral Foundations prevalence per party (bold if ). Together, the two panels instantiate the contrastive analysis formalized in Section 3.5: for each node and party .
| Moral Foundations | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Structure | Branch Description | D | R | Topic | Harm | Fair | Cheat | Betr | Villain | Hero | |
| Merge sources Finance Committee Node (1075) | |||||||||||
| R: mandate repeal | 5 | 0 | 5 | Health | 0.80 | 0.80 | 0.20 | – | Abstract Entity (0.2) | – | |
| R: floor speeches | 3 | 0 | 3 | Macroeconomics | – | 0.67 | – | – | – | – | |
| R: JCT confirmation | 2 | 0 | 2 | Macroeconomics | – | 0.50 | – | – | – | Republican General (0.5) | |
| D: #GOPTaxScam | 12 | 12 | 0 | Macroeconomics | 1.00 | 1.00 | 1.00 | 0.33 | Republican General (0.92) | – | |
| Finance Committee Node (1075) fork branches | |||||||||||
| R: celebration | 2 | 0 | 2 | Macroeconomics | – | – | – | – | – | Republican General (0.5) | |
| D: #GOPTaxScam | 5 | 5 | 0 | Macroeconomics | 1.00 | 1.00 | 1.00 | 0.20 | Republican General (1.0) | – | |
| D: policy impact | 2 | 2 | 0 | Education | 1.00 | 1.00 | 0.50 | – | Republican General (1.0) | – |
Table 7: Fork/merge anatomy around the Finance Committee Node (1075) in Component 3. Each row is a merge source (top) or fork branch (bottom). D/R: Democrat/Republican tweet counts. MFT columns show the four most variable moral foundations (Care and Authority omitted as near-universal in Republican nodes). Villain and Hero report the most frequent actor (“–” if prevalence ). The merge conflates four thematically distinct threads. The fork separates them along party and within-party register lines (accusation vs. policy specificity).
B.2 Hyperparameter Sweep
| ovl | mcs | purity | reten | comp | avg cs | lcn | nodes | edges | Pareto | |
|---|---|---|---|---|---|---|---|---|---|---|
| 100 | 0.30 | 2 | 0.879 | 0.493 | 2429 | 2.69 | 29 | 6543 | 4130 | |
| 100 | 0.30 | 5 | 0.840 | 0.437 | 283 | 3.93 | 80 | 1112 | 839 | |
| 100 | 0.30 | 10 | 0.793 | 0.347 | 103 | 4.25 | 61 | 438 | 351 | |
| 100 | 0.40 | 2 | 0.888 | 0.591 | 3164 | 2.86 | 34 | 9064 | 5949 | |
| 100 | 0.40 | 5 | 0.870 | 0.476 | 326 | 4.29 | 278 | 1399 | 1097 | |
| 100 | 0.40 | 10 | 0.863 | 0.374 | 109 | 5.07 | 162 | 553 | 456 | ✓ |
| 100 | 0.50 | 2 | 0.894 | 0.694 | 4127 | 3.04 | 94 | 12530 | 8525 | ✓ |
| 100 | 0.50 | 5 | 0.873 | 0.516 | 395 | 4.54 | 218 | 1792 | 1432 | ✓ |
| 100 | 0.50 | 10 | 0.857 | 0.412 | 124 | 5.61 | 200 | 696 | 599 | ✓ |
| 400 | 0.30 | 2 | 0.833 | 0.534 | 2482 | 2.85 | 34 | 7080 | 4628 | |
| 400 | 0.30 | 5 | 0.753 | 0.422 | 275 | 4.27 | 43 | 1175 | 927 | |
| 400 | 0.30 | 10 | 0.675 | 0.177 | 100 | 3.19 | 11 | 319 | 222 | |
| 400 | 0.40 | 2 | 0.845 | 0.638 | 3296 | 3.00 | 63 | 9890 | 6662 | |
| 400 | 0.40 | 5 | 0.786 | 0.462 | 330 | 4.65 | 56 | 1535 | 1240 | |
| 400 | 0.40 | 10 | 0.707 | 0.232 | 134 | 3.35 | 16 | 449 | 324 | |
| 400 | 0.50 | 2 | 0.857 | 0.742 | 4144 | 3.20 | 90 | 13281 | 9275 | ✓ |
| 400 | 0.50 | 5 | 0.827 | 0.527 | 405 | 4.97 | 130 | 2012 | 1678 | ✓ |
| 400 | 0.50 | 10 | 0.720 | 0.326 | 177 | 3.80 | 25 | 672 | 508 | |
| 1000 | 0.30 | 2 | 0.774 | 0.570 | 2608 | 2.89 | 46 | 7541 | 4964 | |
| 1000 | 0.30 | 5 | 0.650 | 0.291 | 317 | 2.99 | 21 | 949 | 640 | |
| 1000 | 0.30 | 10 | 0.689 | 0.050 | 43 | 2.37 | 5 | 102 | 59 | |
| 1000 | 0.40 | 2 | 0.792 | 0.660 | 3178 | 3.16 | 61 | 10034 | 6929 | |
| 1000 | 0.40 | 5 | 0.677 | 0.371 | 399 | 3.34 | 19 | 1332 | 952 | |
| 1000 | 0.40 | 10 | 0.713 | 0.074 | 68 | 2.56 | 7 | 174 | 107 | |
| 1000 | 0.50 | 2 | 0.820 | 0.752 | 4115 | 3.29 | 111 | 13538 | 9591 | ✓ |
| 1000 | 0.50 | 5 | 0.716 | 0.459 | 454 | 4.17 | 31 | 1893 | 1487 | ✓ |
| 1000 | 0.50 | 10 | 0.720 | 0.126 | 118 | 2.68 | 8 | 316 | 200 | |
| 1500 | 0.30 | 2 | 0.744 | 0.563 | 2642 | 2.85 | 36 | 7527 | 4907 | |
| 1500 | 0.30 | 5 | 0.639 | 0.182 | 261 | 2.67 | 9 | 698 | 441 | |
| 1500 | 0.30 | 10 | 0.522 | 0.018 | 23 | 2.48 | 5 | 57 | 34 | |
| 1500 | 0.40 | 2 | 0.765 | 0.672 | 3147 | 3.28 | 57 | 10308 | 7233 | |
| 1500 | 0.40 | 5 | 0.663 | 0.263 | 362 | 2.93 | 14 | 1061 | 710 | |
| 1500 | 0.40 | 10 | 0.604 | 0.031 | 31 | 2.68 | 5 | 83 | 53 | |
| 1500 | 0.50 | 2 | 0.790 | 0.755 | 3988 | 3.39 | 73 | 13511 | 9707 | ✓ |
| 1500 | 0.50 | 5 | 0.674 | 0.374 | 480 | 3.45 | 23 | 1656 | 1207 | |
| 1500 | 0.50 | 10 | 0.707 | 0.079 | 87 | 2.49 | 7 | 217 | 130 | |
| 2000 | 0.30 | 2 | 0.733 | 0.526 | 2418 | 3.07 | 43 | 7424 | 5055 | |
| 2000 | 0.30 | 5 | 0.672 | 0.130 | 192 | 2.78 | 11 | 534 | 344 | |
| 2000 | 0.30 | 10 | 0.369 | 0.025 | 57 | 2.11 | 4 | 120 | 63 | |
| 2000 | 0.40 | 2 | 0.749 | 0.666 | 3161 | 3.29 | 62 | 10391 | 7323 | |
| 2000 | 0.40 | 5 | 0.671 | 0.209 | 304 | 2.92 | 10 | 889 | 588 | |
| 2000 | 0.40 | 10 | 0.477 | 0.032 | 53 | 2.23 | 6 | 118 | 65 | |
| 2000 | 0.50 | 2 | 0.773 | 0.736 | 3787 | 3.46 | 74 | 13113 | 9493 | ✓ |
| 2000 | 0.50 | 5 | 0.667 | 0.286 | 396 | 3.24 | 12 | 1285 | 904 | |
| 2000 | 0.50 | 10 | 0.670 | 0.050 | 61 | 2.34 | 6 | 143 | 82 |
Table 8: Grid search over the Mapper hyperparameters (number of cover intervals), ovl (cover overlap fraction) and mcs (HDBSCAN min_cluster_size): configurations evaluated. purity is the dominant-topic fraction within components; reten the fraction of messages retained in the graph; comp the number of connected components; avg cs the mean number of graph nodes per component; lcn the node count of the largest component; nodes/edges (non-singleton components only) the total graph size. Bold rows are Pareto-optimal w.r.t. (purity, retention, components, average component size).
https://huggingface.co/infgrad/Jasper-Token-Compression-600M ↩
We release the NPF and MFT annotations for the full Senate corpus at https://github.com/pgied/temporal-semantic-graph. ↩
For the Plot dimension, we were unable to develop annotation guidelines that achieved acceptable inter-annotator agreement. We therefore leave out this dimension. ↩