Researchers have developed an unsupervised computational narratology framework that uses contextual sentence transformer embeddings to track the temporal development of narrative plots across thousands of historical literary works. Published in Computational Humanities Research, the study demonstrates that embedding chunked prose sequences and projecting them onto predefined semantic axes allows scholars to recover continuous narrative trajectories across entire books. By analyzing 2,965 English-language fiction texts from Project Gutenberg spanning from the 1500s through the early 1900s, the authors converted complete fictional texts into geometric curves that capture shifting conceptual dynamics. The investigation focuses on whether macroscopic structural patterns theorized in classical, postclassical, and feminist narratology can be measured empirically at corpus scale without reducing entire volumes to static word counts. The resulting sequence representations successfully capture significant shifts in literary form, demonstrating that large-scale narrative trajectories exhibit structured, non-random movements across narrative time rather than uncoordinated semantic noise.
To construct sequence trajectories, the researchers sampled nearly five percent of the Project Gutenberg English Books Corpus, filtering records by genre keywords including fiction, novel, story, drama, and poet to isolate works of imaginative literature. The corpus centers predominantly on nineteenth-century texts, providing an ideal window into the historical rise and aesthetic formalization of the novel. The computational pipeline processes each book by partitioning the full text into uniform, consecutive chunks of 128 tokens. Each chunk is subsequently embedded using the HuggingFace all-MiniLM-L6-v2 sentence transformer model, extracting the final layer to obtain high-dimensional vector representations. While static models such as word2vec examine isolated vocabulary distributions, contextual sentence transformers capture semantic relationships and disambiguate polysemous words according to immediate surrounding context. This sequential chunking technique preserves textual order while establishing a standardized unit of analysis capable of bridging the gap between fine-grained textual movement and broad corpus-level structural transformations.
The research team tracked narrative movement across seven fundamental binary oppositions: gender, morality, class, collectivity versus individual, nature versus artifice, order versus disorder, and emotional versus rational. Because single-word subtractions often produce unstable axes in contextual models, the authors constructed semantic dimensions by sampling up to 10,000 contextual sentence instances per seed word directly from the Gutenberg fiction dataset. Axis poles were established by averaging the normalized vectors of these sampled contexts, after which the opposing poles were subtracted to define directional trajectories in vector space. The constructed axes were subsequently validated out-of-sample against 420 curated antonym sentence pairs scaled with generative assistance from GPT-5. The constructed axes achieved an average validation accuracy of 0.800 across dimensions, with all individual axes exceeding 0.700, compared to 0.499 for random unit-length null axes, while leave-one-out seed ablation tests demonstrated robust cosine similarities of at least 0.90 across all terms and axes.
To compare narratives of differing physical lengths
To compare narratives of differing physical lengths on an identical temporal scale, each raw trajectory sequence was resampled to exactly 300 normalized time points using linear interpolation between adjacent chunk projections. The authors subsequently applied Gaussian smoothing across the resampled points to suppress high-frequency local noise and isolate macroscopic semantic arcs. Addressing the methodological concern that smoothing could introduce artificial curves where none exist, the authors conducted extensive null comparisons against within-book time-shuffled baselines that randomly permuted chunk order while preserving underlying score distributions. Across every semantic axis, the observed aggregate curves displayed temporal ranges exceeding the median null baseline by more than an order of magnitude at strong statistical significance (p < 0.001). Observed ranges reached 2.54 versus 0.013 on morality, 1.60 versus 0.013 on class, and 1.52 versus 0.013 on emotionality, confirming that the extracted arcs reflect genuine narrative sequence rather than aggregate lexical composition.
When examining chronological trajectories across the nineteenth century divided by decade, the model revealed pronounced diachronic evolutions in narrative shape that align with recognized literary transitions. Throughout the 1800s, aggregate fictional trajectories exhibited a steady progression toward more individualistic rather than collective language, less moralizing rhetoric, increased natural relative to artificial terminology, and higher degrees of disorder over strict order. A complementary, moderate shift toward affective and emotional expression relative to rational calculation was also observed. These structural movements mirror the historical transition from Enlightenment literature, characterized by didactic morality and social decorum, toward Romantic and early realist traditions centered on psychological interiority, emotional exploration, and personal autonomy. Concurrently, the gender axis documented a steady adoption of female-coded language over the century, while the class dimension revealed rising aspirational trajectories wherein narratives consistently tracked upward mobility over narrative time.
The methodological framework was further tested against well-defined dramatic and literary genres, analyzing whether semantic sequence measurements could differentiate established forms such as comedy and tragedy. Examining Shakespearean plays as an initial benchmark, the authors observed that comedies and tragedies exhibited contrasting structural pathways. Shakespearean comedies traced pronounced U-shaped arcs across the collectivity, morality, and order axes, reflecting a narrative progression that breaks away from collective social norms toward individual license before returning to communal order and reconciliation at the conclusion. Conversely, Shakespearean tragedies demonstrated sustained declines across morality, order, and collectivity, tracking social collapse and isolation. Comedies consistently maintained higher class and emotional-to-rational scores than tragedies, with the gender axis revealing a distinct U-shaped dip in comedies that corresponds closely with traditional critical observations of pastoral cross-dressing and gender role inversions in Shakespeare’s green world settings.
Extending genre evaluations to nineteenth-century novels revealed
Extending genre evaluations to nineteenth-century novels revealed that while these fundamental contrasts between comedic and tragic narrative geometries persisted, the amplitude of separation between genres compressed substantially. This structural convergence reflects the historical evolution of the novel form, which increasingly collapsed rigid dramatic taxonomies into blended, realist works containing both comedic resolution and tragic irony. On the emotional axis, nineteenth-century tragedies diverged from early modern predecessors by moving significantly further away from rational deliberation toward heightened emotional distress and nature imagery. To assess the broad applicability of these patterns, the authors constructed composite trajectory representations by concatenating normalized axis scores across books. Unsupervised linear discriminant analysis demonstrated that composite trajectory curves could reliably separate comedic from tragic exemplars while positioning ambiguous narratives and problem plays near the decision boundary between classes.
To explore sociolinguistic dimensions of literary voice, the researchers segmented narrative trajectories by author gender and character dialogue gender using a speaker attribution heuristic. Author gender was assigned using the Natural Language Toolkit name database, while spoken dialogue was extracted by identifying quotation segments and scanning surrounding 20-word context windows for gendered pronouns and proper names. Across a validation sample of 200 labeled quotations, the heuristic achieved an accuracy of 0.94. The resulting curves revealed that women authors in this corpus positioned both male and female character dialogue closer to female-coded semantic poles than male authors did. Furthermore, women writers crafted male dialogue that traversed wider dynamic ranges along the emotional versus rational continuum, while female character dialogue across the sample registered slightly higher on individuality relative to collectivity, offering empirical grounding for feminist narratological theories regarding marginalized speaker standpoint.
The study also evaluated the geometric organization of narrative forms by applying principal component analysis to chunked trajectories across four core axes: morality, collectivity, gender, and order. When trajectory projections were normalized via z-scoring to remove absolute baseline differences and isolate pure geometric curvature, the first principal component captured monotonic ascending versus descending trajectories, while the second component mapped U-shaped versus inverted U-shaped curves. When applied to Shakespearean drama, linear discriminant analysis operating on this PCA space separated comedies into descending and U-shaped clusters and tragedies into ascending or stationary configurations. However, when the researchers tested whether PCA space could separate early nineteenth-century novels from late nineteenth-century novels, meaningful separation emerged only without z-scoring. This empirical result suggests weak evidence in the model for changing plot trajectory shapes through time, alongside modest evidence for semantic shifts in both absolute baseline drift and curve magnitude.
While presenting a versatile proof of concept
While presenting a versatile proof of concept for computational narratology, the authors highlighted important methodological boundaries and technical limitations inherent to aggregate sequence modeling. Because contextual sentence transformer models are trained on contemporary digital corpora, projecting historical nineteenth-century prose through modern parameter spaces risks imposing contemporary linguistic associations onto historic syntax, although corpus-specific context sampling partially mitigates this concern. Additionally, fixed chunking, resampling, and Gaussian smoothing act as low-pass filters that necessarily smooth out rapid thematic oscillations and complex dialectical ironies. The authors also noted that the Project Gutenberg dataset includes occasional metadata inaccuracies, multi-volume compilations, and editorial prefaces that contribute baseline noise. Nevertheless, the strong robustness confirmed across chunk lengths, smoothing factors, and null permutations demonstrates that contextual sentence embeddings can reliably extract macro-level narrative architecture, offering literary researchers a principled quantitative approach to studying temporal plot structures at scale.
Subject of Research: Computational narratology and narrative sequence analysis using contextual sentence transformer embeddings
Article Title: Computational narratology with transformer embeddings
Article References: Rathje, W. (2026). Computational narratology with transformer embeddings. Computational Humanities Research, 2, Article e15. https://doi.org/10.1017/chr.2026.10035
Keywords: computational narratology, sentence transformers, natural language processing, narrative structure, Project Gutenberg, word embeddings, semantic axes, plot trajectory, nineteenth-century novel, diachronic analysis, Shakespearean tragedy, Shakespearean comedy, literary analytics, contextual embeddings, sentiment analysis, digital humanities, structural linguistics
News. Historical Fiction Plots Exhibit Structured Narrative Sequences Across Seven Semantic Axes. Scienmag
