Zero Labs
Industry News / AI

How Do You Teach a Machine to Read Like a Critic?

Source · Towards AI By Carlos Crespo

From the publisher’s feed, collected in the ZeroLabs newsroom.

The Methodology Behind Our AI Analysis of Cortázar’s RayuelaCarlos Crespo Macaya· 2026This is Part 2 of a series. Part 1: What Does a Novel Look Like From the Inside? presented the finding: the data suggests Cortázar designed the hopscotch reading order for collision — collision-dominant, but with a quiet undertow that the AI detects but cannot name. This article goes deeper into how we built the four instruments that revealed it — and what happens when you probe their limits.In Part 1, we reported that the hopscotch reading path through Rayuela appears near-random in its explicit semantic transitions and actively jagged in its curvature, while the linear path is smoother than chance to an extraordinary degree. That claim rests on four complementary instruments — a holistic lens, a content-free stylometric lens, an LLM stylistic lens, and a semantic lens — and a statistical test that compares both reading orders against 5,000 random alternatives.This article pulls those instruments apart and shows you what’s inside.The “semantic lens” from Part 1 is actually a structured scoring system. A 27-billion-parameter language model (Qwen 3.5 27B) read each of the 155 chapters and scored it on 19 dimensions, grouped into five facets:Thematic: existential questioning, art & aesthetics, everyday mundanity, death & mortality, love & desireEmotional: emotional intensity, humor & irony, melancholy & nostalgia, tension & anxietyCharacter: Oliveira centrality, La Maga presence, character density, interpersonal conflictNarrative mode: interiority, dialogue density, metafictionFormal: spatial grounding, language experimentation, intertextual density(An original 20th dimension — temporal clarity — was excluded after inter-rater reliability testing revealed a rubric polarity problem: one model read “high” as “timeline is clear” while the other read it as “time is fragmented.” These are nearly opposite interpretations. Rather than keep an ambiguous dimension, we dropped it.)Each dimension is scored 1–10 with an explicit rubric. For example, humor and irony = 1 means “completely serious”; = 10 means “pervasive humor, satire, or ironic play.” The rubric was designed before any model ran — we didn’t tune it to produce interesting results.We call the resulting 19-number profile of each chapter its narrative DNA.Figure 1 — Narrative DNA. Each row is a chapter; each column is a dimension. Red means high, blue means low. The expendable chapters (57–155) diversify dramatically — they are the laboratory of the novel. (Interactive version)As we noted in Part 1, Chapter 68 — the famous Gliglico chapter, written entirely in Cortázar’s invented language — served as our calibration test. The model scored it with language experimentation = 10 and love and desire = 8, while scoring spatial grounding = 1 and dialogue density = 1.The model’s justifications (which are LLM-generated paraphrases, not exact textual citations — about 54% of quoted spans match the source text verbatim) were revealing:Language experimentation (10): “The entire text is written in Gliglico, a private invented language with neologisms and no standard Spanish meaning.”Love and desire (8): “The context of the invented language in Rayuela is known to describe sexual intimacy, and phrases like ‘aproximara suavemente sus orfelunios’ suggest erotic contact.”Spatial grounding (1): “No clear physical setting is described; the text is abstract and focused on sensation.”Dialogue density (1): “No dialogue is present; the text is entirely narrative description.”A caveat worth repeating: the model may have encountered commentary about this famous chapter during training. Still, the scores align with how any careful reader would characterize the chapter, and they gave us confidence that the rubric was measuring something meaningful.The heatmap reveals structure that no human reader could hold in mind simultaneously.The three sections of the novel — Paris (“Del lado de allá”), Buenos Aires (“Del lado de acá”), and the expendable chapters (“De otros lados”) — differ in characteristic ways:Paris: dominated by Oliveira’s interiority, existential questioning, and La Maga’s presence. This is the philosophical and emotional core.Buenos Aires: similar emotional register but lower La Maga presence (she’s absent), more spatial grounding, more dialogue. The real world pressing in.Expendable chapters: break free of Oliveira’s dominance. Intertextual density rises; metafiction spikes; humor becomes more prevalent. This is where Cortázar experiments most freely.Figure 2 — Section Profiles. The dimensions that most differentiate the three sections are La Maga presence, character density, and dialogue density. (Interactive version)The dimensions also reveal a hidden grammar — which traits co-occur in Cortázar’s writing. Oliveira’s centrality and interiority are tightly linked (r ~ 0.7): when Oliveira dominates, the prose turns inward. Humor and existential questioning are surprisingly independent: Cortázar can be deeply philosophical and deeply funny at the same time.Figure 3 — Dimension Correlation Matrix. The “grammar” of Cortázar’s writing modes. (Interactive version)Each chapter’s 19-dimensional profile is a unique fingerprint. Compare a few:Figure 4 — Narrative Fingerprints. Each spoke is one of the 19 dimensions. Chapter 68 (Gliglico) concentrates all its energy in two dimensions. Chapter 1 is expansive. Chapter 93 (Morelli’s literary theory) lights up metafiction and intertextuality. (Interactive version)The visual difference between chapters is the difference the hopscotch path exploits. When Cortázar places Chapter 1 (Oliveira searching for La Maga) next to Chapter 93 (a philosophical meditation on love and language), the jump between those two fingerprints is what creates the collision. The reader’s mind has to bridge the gap. That bridging — that work — may be the hopscotch experience.Part 1 presented four scales. Here we explain why the two intermediate scales — A’ (content-free stylometrics) and B’ (LLM-perceived style) — exist, and what they reveal.Scale A’ (Stylometric) is our strongest methodological tool for disentangling form from content. It measures 26 features that are, by construction, largely immune to meaning: sentence length distribution (mean, median, standard deviation, maximum, coefficient of variation), vocabulary richness (MATTR with 50-word window, hapax legomena ratio), function word frequencies (articles, prepositions, conjunctions, pronouns per 1,000 words), punctuation profile (semicolons, em-dashes, ellipses, exclamation marks, question marks, parentheses, colons), syntactic complexity (dependency parse depth, subordination ratio via spaCy), code-switching frequency (French and English markers), and readability proxies (mean word length, syllable density, paragraph length). These are computed directly from the text using classical NLP — no neural network, no semantic representation, and minimal possibility of content leaking in (though some lexical features like function word frequencies can still correlate with topic).A’ serves as a control. If the holistic lens (Scale A) detects smoothness in the hopscotch ordering, A’ tells us whether that smoothness lives in form. The answer is ambiguous: A’ gives the hopscotch +1.1σ — a weak positive signal, not statistically significant after correction for multiple testing. The formal undertow is real but faint at the level of measurable surface features.But A’ is striking on the linear path: +3.9σ, meaning the linear ordering is smooth even when measured on content-free features alone. Cortázar didn’t just arrange chapters for thematic flow — he arranged them for formal flow. Sentence rhythms, punctuation habits, and vocabulary register transition gradually from chapter to chapter. This would be difficult to engineer consciously across 56 chapters, suggesting a deep consistency in Cortázar’s compositional process: chapters that are thematically adjacent were also written in adjacent registers.Scale B’ (LLM Stylistic) fills the gap between A’ and B. The same 27-billion-parameter model that scored narrative content (Scale B) also assessed each chapter on 12 dimensions of perceived style: sentence complexity, vocabulary register, punctuation expressiveness, prose rhythm, descriptive density, dialogue vs. narration balance, code-switching intensity, paragraph density, narrative distance, repetition patterns, typographic experimentation, and syntactic variety. These are the AI’s subjective impressions of how the prose reads — closer to a human critic’s stylistic commentary than to a feature count.B’ gives the hopscotch +1.3σ — again, suggestive but not significant after correction. The four-scale gradient for the hopscotch is the key finding:As measurement moves from holistic to explicit, the hopscotch signal fades. The coherence lives at the level of undifferentiated impression — what we call atmospheric coherence — and dissolves when you try to name its components. In Part 2’s more technical language, we might also call this form-content resonance: the quality that emerges from the interaction of formal and semantic features but belongs to neither alone.A single model run proves nothing. What if the scores depend on prompt phrasing or random variation?We ran the semantic analysis twice.Version 1 (zero-shot): The model scored each chapter cold, with only the rubric as guidance.Version 2 (few-shot with evidence): The model received three calibration examples from other Cortázar novels — a passage from 62: Modelo para armar anchoring interiority at 10, a passage from Un tal Lucas anchoring humor at 10, and a second passage from 62 anchoring emotional intensity at 10 and death at 9. We used external novels deliberately: calibrating with passages from Rayuela itself would risk circularity. The model also had to provide one sentence of textual evidence for each score — a justification for the rating.The results across 153 chapters (v2 missed two chapters that exceeded the model’s context window):83.6% of all 3,060 dimension-scores were within ±1 point between v1 and v295.6% within ±2 points45.9% were exact matches19 of 20 dimensions correlated above r = 0.85One dimension diverged: temporal clarity (r = 0.23). The two prompt versions interpreted it differently — v1 read it as “is the timeline clear?” while v2 read it as “is time fragmented?” This ambiguity was later confirmed by the inter-rater test (see below), leading us to exclude this dimension entirely.The mean shift was −0.48 points — v2 scored slightly lower across the board. The calibration examples, which all anchored high scores (8–10), appear to have shown the model what a “true high” looks like, reducing ceiling compression and shifting the scale downward slightly.The critical question: does the central finding survive? If the hopscotch path looked random under v1 but not under v2, our conclusion would collapse. We ran the permutation test on v2 scores. The finding survived both runs: the linear path remained extreme, the hopscotch remained near-random in semantic space. The conclusion is robust to prompt variation.Prompt sensitivity is one thing. But what if a completely different model sees the novel differently?We ran the full 19-dimension extraction a third time using an independent model: Llama-Nemotron 70B (a Llama 3.1 architecture, distinct from the Qwen 3.5 family). This is the standard inter-rater reliability test — the AI equivalent of asking two human critics to grade the same essays and checking whether they agree.They agreed substantially:Overall Spearman ρ = 0.844 (strong correlation)Mean weighted κ = 0.753 (“substantial agreement” on the standard scale)18 of 19 dimensions showed strong agreement (ρ ≥ 0.70)1 dimension moderate (language experimentation, ρ = 0.50)155/155 chapters scored successfully by both modelsThe one dimension that failed the inter-rater test — temporal clarity, with ρ = −0.30 (anti-correlated) — confirmed the v1/v2 sensitivity finding. The models weren’t just noisy on this dimension; they actively disagreed about what it meant. We excluded it from all subsequent analysis.This gives us confidence that the narrative DNA profiles are not artifacts of a particular model’s quirks. Two architecturally different LLMs, running independently, produced substantially the same portrait of each chapter.The v2 extraction produced 153 × 19 = 2,907 evidence sentences — one for each score. These are LLM-generated justifications: the model’s explanation of the textual basis for each rating. An important caveat: independent verification shows that only about 54% of quoted spans (3+ words) are exact substring matches in the source chapter. The rest are paraphrases or hallucinated phrasings. These are best understood as the model’s reasoning, not as precise textual citations.Here are selected evidence strings for Chapter 1 (Oliveira’s opening monologue about searching for La Maga):Existential questioning (8): “Oliveira reflects on the nature of chance encounters, the meaning of searching, and the ‘signs’ that govern his life, questioning the logic of existence.”Love and desire (9): “The entire chapter is an address to La Maga, exploring their relationship, intimacy, and the ‘terrible mirror’ of their love.”Spatial grounding (8): “Specific Parisian locations: Pont des Arts, Quai de Conti, Marais, boulevard de Sebastopol, Parc Montsouris, rue des Lombards.”Melancholy and nostalgia (8): “Deep nostalgia for Buenos Aires (shoes, tea, mother) and the lost moments with La Maga suffuse the text.”And for Chapter 93 (Oliveira’s meditation on love and language — the first chapter in the hopscotch order that “responds” to Chapter 1):Love and desire (10): “The entire chapter is a meditation on love, desire, and the impossibility of possession, addressing ‘Amor mio’ directly.”Metafiction (8): “Oliveira explicitly critiques the act of writing (‘artificios de escriba’, ‘fabricaciones’) and the limitations of language.”Intertextual density (9): “Dense allusions to Nashe, Octavio Paz, Puttenham, Morelli, Atala, and architectural figures like Wright and Le Corbusier.”These evidence strings do something rare in computational literary study: they make the model’s reasoning partially auditable. When the model says “love and desire = 9,” you can read its justification and decide whether you agree. The AI becomes a transparent interlocutor, not a black box — with the caveat that its “quotes” are often paraphrases rather than exact citations.They also open a curious possibility: if you know which textual elements drive each score, you could surgically replace them — swapping the cultural furniture of 1960s Paris with another time and place while preserving the narrative DNA.The most direct way to see the collision principle is to lay the entire novel out twice — once in linear order, once in hopscotch order — and look at the patterns.Figure 5 — Two Reading Orders, Same Data. Left: linear order shows smooth gradients — similar chapters adjacent. Right: hopscotch order shows rapid color alternation — markedly different chapters placed side by side. (Interactive version)The linear heatmap looks like a landscape: rolling hills, gradual transitions, coherent regions. The hopscotch heatmap alternates much more abruptly — starkly different profiles juxtaposed step after step. The data makes visible what readers have always felt.The most intriguing finding, to us, is not any single z-score — it’s the gradient.When we measure the hopscotch ordering through the holistic lens (Scale A, +2.8σ), there is clear intentional structure. When we decompose that measurement into content-free form (A’, +1.1σ) and perceived style (B’, +1.3σ), the signal weakens but persists as a trend. When we isolate explicit narrative content (B, −0.3σ), it vanishes.What does this mean? The holistic embedding captures something that the sum of its decomposed parts does not. This atmospheric coherence — the quality that emerges from the interaction of formal and semantic features but belongs to neither alone — is not sentence length, not theme, not vocabulary register. It is the way all of these elements combine into what a reader might call “atmosphere” or “voice” — a holistic quality that resists decomposition.The Mantel correlation matrix — which measures how well each scale’s pairwise distance structure predicts another’s — makes this concrete:(Each cell is a Mantel correlation: how well one scale’s distance matrix predicts another’s. Higher = more overlap in what the scales measure.)The style-focused scales correlate most with each other (A’↔B’: 0.61, B↔B’: 0.61). The holistic embedding is closest to the semantic scale (A↔B: 0.53) and farthest from the content-free stylometrics (A↔A’: 0.38) — confirming that the embedding model’s “gut impression” is dominated by meaning. Yet the holistic scale detects hopscotch structure that the semantic scale misses. The portion of holistic signal not explained by semantic content — and it’s substantial, given the moderate correlation — is where the atmospheric coherence lives.This gap is not a limitation of our methodology. It is the finding. The hopscotch ordering has a quality that resists decomposition — and that irreducibility may be part of what makes it feel literary.The methodology described here has four properties that, together, make the finding defensible:Convergence across four representations: The holistic lens (1,024-dimensional embeddings), the content-free stylometrics (26 surface features), the LLM stylistic lens (12 perceived-style dimensions), and the semantic lens (19 explicit narrative dimensions) use different feature spaces and levels of interpretability. Scales B and B’ share the same base model but perform different tasks. All four agree that the linear path is intentionally ordered (+3.2σ to +6.4σ, all surviving Bonferroni correction). They form a gradient on the hopscotch: signal fading from +2.8σ (holistic) through +1.1σ to +1.3σ (formal/stylistic) to −0.3σ (semantic). This convergent pattern is far more informative than any single measurement.Reproducibility: Running the semantic lens twice — with different prompts, different calibration strategies, and an independent evidence layer — produced correlations above 0.85 for 19 of 20 dimensions. Running it a third time with an entirely different model (Llama-Nemotron 70B) produced Spearman ρ = 0.844 across all dimensions. The finding survived all three runs.Statistical rigor: The permutation test compares each reading order against 5,000 random alternatives, with separate null distributions for each path (shuffled Ch.1–56 for linear; shuffled all 155 for hopscotch). Bonferroni correction at α = 0.05 for 8 primary smoothness tests yields a threshold of approximately 2.5σ. All linear z-scores survive. The hopscotch result at +2.8σ on Scale A survives, but the three remaining hopscotch scores do not. We report this gradient transparently rather than highlighting only the strongest result.Methodological controls: The four-scale design functions as its own control. Scale A’ shows that the linear path’s smoothness is partly formal (+3.9σ on content-free features), not just semantic. The curvature analysis shows the hopscotch is not merely neutral but actively jagged (−4.7σ on Scale B). The gradient across scales constrains interpretation: the hopscotch ordering cannot be dismissed as meaningless noise (the holistic signal is real) nor elevated to deliberate thematic design (the semantic signal is absent).What the methodology cannot do is tell us what Cortázar intended. It can show that the hopscotch order is anti-smooth in its explicit thematic transitions but intentionally coherent in its holistic impression — suggesting a craft that operates below the level of nameable narrative dimensions. The interpretation — that this gap between semantic collision and atmospheric coherence is the design — is ours. But the statistical foundation is as solid as we know how to build.All interactive visualizations: carloscrespomacaya.com/rayuela. Code: github.com/macayaven/rayuela.Methodology note: Four scales — A: 1024-dim embeddings (multilingual-e5-large-instruct); A’: 26 content-free stylometric features (via spaCy es_core_news_lg + regex); B’: 12 LLM-perceived style dimensions (Qwen 3.5 27B, zero-shot); B: 19 narrative-semantic dimensions (Qwen 3.5 27B, v1 zero-shot + v2 few-shot with evidence; temporal clarity excluded after inter-rater failure). Inter-rater reliability: Llama-Nemotron 70B vs Qwen 3.5 27B — overall ρ = 0.844, mean κw = 0.753, 18/19 dims ρ ≥ 0.70. Scale B v1-v2 agreement: 83.6% within ±1, 95.6% within ±2, 19/20 dims r > 0.85. Smoothness z-scores: Linear +3.2σ to +6.4σ (all survive Bonferroni at α = 0.05, threshold ≈ 2.50σ); Hopscotch +2.8σ (A), +1.3σ (B’), +1.1σ (A’), −0.3σ (B). Curvature z-scores (positive = gentler): Linear +1.3σ to +1.7σ; Hopscotch −1.9σ (A’), −4.1σ (A, d=1024 caveat), −4.7σ (B). Cross-scale Mantel correlations: A↔B 0.53, A’↔B’ 0.61, B↔B’ 0.61, A’↔B 0.42, A↔B’ 0.44, A↔A’ 0.38. Permutation tests use separate null distributions per path; z-score magnitudes not directly comparable across paths (different lengths, different chapter pools). Evidence strings: ~54% span-level fidelity (LLM paraphrases, not citations). 153/155 chapters scored in v2 (2 exceeded 24,576-token context window). Analysis on NVIDIA DGX Spark (ARM64, GB10 GPU, 128 GB unified memory).Originally published at https://github.com.How Do You Teach a Machine to Read Like a Critic? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.