Datasets:
gutenberg_id int64 10 58.9k | title stringlengths 2 581 | authors listlengths 1 45 ⌀ | pub_year int64 1.53k 2.01k ⌀ | subjects listlengths 1 25 | bookshelves listlengths 1 9 ⌀ | download_count int64 77 151k | primary_genre stringclasses 0 values | paragraph_count int64 10 211k | mean_novelty float64 0.18 0.72 | std_novelty float64 0.05 0.35 | ti_ratio float64 0.01 9.93 | trend_slope float64 -0.03 0.03 | mean_compression_progress float64 -0.07 -0 | curve_type_3 stringclasses 3 values | cluster_8 int64 1 8 ⌀ | cluster_name stringclasses 8 values | speed float64 0.05 0.58 ⌀ | volume float64 0 0.12 ⌀ | circuitousness float64 2.94 56.4k ⌀ | reversal_count int64 1 100k ⌀ | sax_16_5 stringlengths 16 16 ⌀ | novelty_curve listlengths 10 211k | paa_16 listlengths 16 16 ⌀ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10 | The King James Version of the Bible | null | 1,989 | [
"Bible"
] | [
"Banned Books List from the American Library Association"
] | 12,116 | null | 24,560 | 0.429183 | 0.062791 | 1.045436 | 0 | -0.000017 | blue | 4 | Late Plateau | 0.057104 | 0.003943 | 3,402.089409 | 11,136 | cccccccdccbccccc | [0.0,0.433907687664032,0.5287784039974213,0.47089195251464844,0.4144784212112427,0.2887951731681824,(...TRUNCATED) | [-0.20954647312136396,0.18751763729902593,-0.14133542502274293,-0.08991456521361411,-0.0499081784877(...TRUNCATED) |
11 | Alice's Adventures in Wonderland | [
"Carroll, Lewis"
] | null | ["Alice (Fictitious character from Carroll) -- Juvenile fiction","Children's stories","Fantasy ficti(...TRUNCATED) | ["Category: British Literature","Category: Children & Young Adult Reading","Category: Classics of Li(...TRUNCATED) | 52,940 | null | 797 | 0.494001 | 0.127603 | 1.118548 | 0.000093 | -0.000569 | red | 4 | Late Plateau | 0.123658 | 0.016262 | 217.504148 | 337 | bcbccccccccccddc | [0.0,0.7346948683261871,0.7604529410600662,0.62470942735672,0.304134726524353,0.5128093361854553,0.2(...TRUNCATED) | [-0.43269992848946653,0.0691062012581587,-0.7267519302312259,0.15833376117265038,-0.0738249498551449(...TRUNCATED) |
12 | Through the Looking-Glass | [
"Carroll",
"Lewis",
"1832-1898"
] | 2,008 | ["Fantasy fiction","Children's stories","Imaginary places -- Juvenile fiction","Alice (Fictitious ch(...TRUNCATED) | [
"Best Books Ever Listings",
"Children's Literature"
] | 10,369 | null | 945 | 0.49529 | 0.117386 | 1.004516 | 0.000006 | -0.000636 | blue | 6 | Flat | 0.114218 | 0.013765 | 179.543979 | 444 | bbccccccddccccbc | [0.0,1.0326777584850788,0.6235247552394867,0.3971957564353943,0.26759856939315796,0.2859061360359192(...TRUNCATED) | [-0.4471403773668107,-0.4106749212792766,0.17150168142662525,0.02414986813053961,0.1556411272918569,(...TRUNCATED) |
13 | The Hunting of the Snark: An Agony in Eight Fits | [
"Carroll, Lewis"
] | null | [
"Nonsense verses, English"
] | ["Category: British Literature","Category: Classics of Literature","Category: Humour","Category: Poe(...TRUNCATED) | 1,070 | null | 154 | 0.511704 | 0.10944 | 0.810646 | -0.000434 | -0.002241 | green | 1 | Steep Descent | 0.099502 | 0.011899 | 44.396636 | 51 | ddddbcbbcbddcccb | [0.0,0.8365879356861115,0.5097947716712952,0.7226325571537018,0.7775881290435791,0.4765678644180298,(...TRUNCATED) | [0.5087858884223119,0.815547768245275,0.26692412500648666,0.27709758076228735,-0.681686814007833,0.0(...TRUNCATED) |
17 | "The Book of Mormon\r\nAn Account Written by the Hand of Mormon, Upon Plates Taken from the Plates o(...TRUNCATED) | [
"Church of Jesus Christ of Latter-day Saints; Smith",
"Joseph",
"Jr.",
"1805-1844"
] | 2,008 | [
"Church of Jesus Christ of Latter-day Saints -- Sacred books",
"Mormon Church -- Sacred books"
] | [
"Christianity",
"Latter Day Saints"
] | 2,182 | null | 6,713 | 0.398671 | 0.094342 | 1.621063 | 0.000015 | -0.00007 | red | 4 | Late Plateau | 0.062491 | 0.008899 | 895.12792 | 2,954 | aaaceddccccdcbdd | [0.0,0.6556264162063599,0.5884276628494263,0.4757581949234009,0.4287461042404175,0.7098686099052429,(...TRUNCATED) | [-1.1800167164438908,-1.2042631981997325,-0.9435152061550948,-0.17356520513404125,0.8968528379163047(...TRUNCATED) |
18 | The Federalist Papers | [
"Hamilton",
"Alexander",
"1757-1804; Jay",
"John",
"1745-1829; Madison",
"James",
"1751-1836"
] | 1,991 | [
"Constitutional history -- United States -- Sources",
"Constitutional law -- United States"
] | [
"Politics"
] | 1,664 | null | 5,573 | 0.492742 | 0.139814 | 1.172931 | 0.000008 | -0.000107 | red | 6 | Flat | 0.127467 | 0.019545 | 1,186.021369 | 2,548 | aaddcccccccdddcb | [0.0,0.7689938545227051,0.5227168798446655,0.46701228618621826,0.31555885076522827,0.491608619689941(...TRUNCATED) | [-0.9088364904353133,-0.9744753140248632,0.31846786996545734,0.4669743187893589,0.11226351727321025,(...TRUNCATED) |
19 | The Song of Hiawatha | [
"Longfellow",
"Henry Wadsworth",
"1807-1882; Morris",
"Woodrow W. [Editor]"
] | 2,004 | ["Indians of North America -- Poetry","Hiawatha, active 15th century -- Poetry","Iroquois Indians --(...TRUNCATED) | [
"Children's Literature",
"Poetry",
"Native America"
] | 1,974 | null | 648 | 0.38442 | 0.092522 | 0.862347 | -0.000001 | -0.000591 | blue | 3 | Early Plateau | 0.086627 | 0.008547 | 146.543817 | 276 | dcbbdbbcdcddccbc | [0.0,0.42975836992263794,0.5524090826511383,0.28090453147888184,0.31937938928604126,0.36627054214477(...TRUNCATED) | [0.3003213211968555,0.09582913601224896,-0.45928171661778333,-0.3677820208646704,0.2871001848143152,(...TRUNCATED) |
20 | Paradise Lost | [
"Milton, John"
] | null | ["Adam (Biblical figure) -- Poetry","Bible. Genesis -- History of Biblical events -- Poetry","Eve (B(...TRUNCATED) | ["Banned Books from Anne Haight's list","Category: British Literature","Category: Classics of Litera(...TRUNCATED) | 7,722 | null | 369 | 0.307077 | 0.101048 | 1.140099 | 0.000068 | -0.000535 | red | 4 | Late Plateau | 0.094849 | 0.010183 | 177.449508 | 151 | cbbcdcbbdcccccdc | [0.0,0.5939747989177704,0.6914485096931458,0.4827931523323059,0.36298108100891113,0.4170536398887634(...TRUNCATED) | [0.10371026491664477,-0.4558842079586287,-0.3002998279556377,0.04103563228420029,0.26382284275998463(...TRUNCATED) |
23 | Narrative of the Life of Frederick Douglass, an American Slave | [
"Douglass",
"Frederick",
"1818-1895"
] | 2,006 | ["Douglass, Frederick, 1818-1895","African American abolitionists -- Biography","Abolitionists -- Un(...TRUNCATED) | [
"African American Writers",
"Slavery"
] | 16,064 | null | 208 | 0.354554 | 0.15416 | 1.529221 | 0.000239 | -0.002556 | red | 7 | Gradual Ascent | 0.153302 | 0.023651 | 59.97313 | 89 | cccccdcbcbccbcdd | [0.0,0.6829515099525452,0.6016718745231628,0.4210246801376343,0.45393431186676025,0.3814153075218200(...TRUNCATED) | [0.04420539899014979,-0.20996449303018544,0.1746744062867865,0.17323297549114963,-0.1351050471796598(...TRUNCATED) |
24 | O Pioneers! | [
"Cather",
"Willa",
"1873-1947"
] | 2,008 | ["Nebraska -- Fiction","Historical fiction","Frontier and pioneer life -- Nebraska -- Fiction","Dome(...TRUNCATED) | null | 1,414 | null | 823 | 0.428593 | 0.105738 | 0.980776 | -0.000019 | -0.000481 | blue | 6 | Flat | 0.103997 | 0.011167 | 216.340804 | 366 | cdcdccccccccccdc | [0.0,0.47047656774520874,0.3959195017814636,0.39483213424682617,0.727277398109436,0.4296762943267822(...TRUNCATED) | [-0.07976892872838012,0.3527191822277556,-0.04979330832977454,0.27304368485951386,-0.099271232005298(...TRUNCATED) |
PG19 Semantic Novelty Dataset
Paragraph-by-paragraph semantic novelty curves for 28,535 books from the PG19 corpus (Project Gutenberg, pre-1920 English literature).
What is Semantic Novelty?
For each paragraph in a book, we compute:
novelty(p) = 1 - cosine_similarity(embedding(p), running_centroid)
where embedding() uses SBERT all-mpnet-base-v2 (768-dimensional) and running_centroid is the mean of all preceding paragraph embeddings. This measures how much new information each paragraph introduces relative to everything before it.
The resulting novelty curve captures the information-delivery shape of a narrative — whether a book front-loads its ideas (convergent/green), sustains steady novelty (parallel/blue), or builds to increasingly novel content (divergent/red).
Key Features
| Feature | Description |
|---|---|
novelty_curve |
Full paragraph-level novelty series (variable length, typically 100-5000 values) |
paa_16 |
16-segment Piecewise Aggregate Approximation (fixed-length summary) |
sax_16_5 |
SAX string representation (16 chars, 5-letter alphabet) |
cluster_8 |
8-cluster Ward-linkage taxonomy (1-8) |
cluster_name |
Human-readable archetype label |
curve_type_3 |
Legacy 3-type classification (green=convergent, blue=parallel, red=divergent) |
ti_ratio |
Tail/initial novelty ratio (>1 = divergent, <1 = convergent) |
speed, volume, circuitousness |
Toubia et al. (2021) narrative shape metrics |
mean_compression_progress |
Schmidhuber (2009) compression progress proxy |
Dataset Statistics
- Books: 28,535
- Publication years: 1531\u20132014
- Mean paragraphs per book: 1128
- Mean semantic novelty: 0.4590
- Books with novelty curves: 28,535
- Books with derived metrics: 28,433
3-Type Distribution
| Type | Count | Description |
|---|---|---|
| green (convergent) | 2,573 | Novelty decreases - ideas consolidate |
| blue (parallel) | 12,338 | Novelty stays steady |
| red (divergent) | 13,624 | Novelty increases - ideas expand |
8-Cluster Taxonomy
| Cluster | Count | % |
|---|---|---|
| Flat | 7442 | 26.1% |
| Late Plateau | 6540 | 22.9% |
| Early Plateau | 4486 | 15.7% |
| U-Shape | 2791 | 9.8% |
| Gradual Ascent | 2638 | 9.2% |
| Steep Ascent | 2637 | 9.2% |
| Steep Descent | 1677 | 5.9% |
| Gradual Descent | 222 | 0.8% |
Usage
from datasets import load_dataset
import numpy as np
ds = load_dataset("wfzimmerman/pg19-semantic-novelty", split="train")
# Get a book's novelty curve
book = ds[0]
print(f"{book['title']} by {book['authors']}")
print(f"Cluster: {book['cluster_name']} ({book['curve_type_3']})")
print(f"Paragraphs: {book['paragraph_count']}, Mean novelty: {book['mean_novelty']:.4f}")
# Plot a novelty curve
import matplotlib.pyplot as plt
curve = book["novelty_curve"]
plt.plot(curve)
plt.xlabel("Paragraph")
plt.ylabel("Semantic Novelty")
plt.title(book["title"])
plt.show()
# Filter by cluster
steep_descent = ds.filter(lambda x: x["cluster_name"] == "Steep Descent")
print(f"Steep Descent books: {len(steep_descent)}")
# Use PAA for fixed-length comparison
paa_matrix = np.array([x["paa_16"] for x in ds if x["paa_16"] is not None])
print(f"PAA matrix shape: {paa_matrix.shape}") # (N, 16)
Methodology
- Corpus: PG19 (Rae et al., 2020) - 28,535 English-language books from Project Gutenberg published before 1920
- Embeddings: Sentence-BERT
all-mpnet-base-v2(Reimers & Gurevych, 2019), 768 dimensions - Novelty computation:
1 - cosine_similarity(paragraph_embedding, running_centroid)where centroid accumulates all prior paragraphs - Clustering: Ward-linkage hierarchical clustering on 16-segment PAA vectors, k=8
- Toubia metrics: Speed, volume, circuitousness following Toubia et al. (2021)
- SAX encoding: Lin et al. (2003) Symbolic Aggregate Approximation, 16 segments, 5-letter alphabet
Citation
If you use this dataset, please cite:
@dataset{zimmerman2026pg19novelty,
title={PG19 Semantic Novelty: Paragraph-Level Information Curves for 28,000+ Books},
author={Zimmerman, W. Frederick},
year={2026},
publisher={Hugging Face},
url={https://huggingface.co/datasets/wfzimmerman/pg19-semantic-novelty}
}
Related Work
- Toubia, O., et al. (2021). How quantifying the shape of stories predicts their success. PNAS.
- Reagan, A. J., et al. (2016). The emotional arcs of stories. EPJ Data Science.
- Schmidhuber, J. (2009). Simple algorithmic theory of subjective beauty. arXiv:0812.4360.
- Reimers, N. & Gurevych, I. (2019). Sentence-BERT. EMNLP.
- Rae, J. W., et al. (2020). Compressive Transformers for Long-Range Sequence Modelling.
License
CC-BY-4.0. The underlying texts are public domain (Project Gutenberg). The novelty analysis, clustering, and derived metrics are original contributions.
- Downloads last month
- 14