Case Study 2 — Moving the Notes Generator to Women's Cricket: Pakistan v South Africa, T20 World Cup 2026
Setup
The notes generator in Chapter 37 was built and tested on the IPL. Kavya's outlet also covers the ICC Women's T20 World Cup 2026, held in England, and her editor wants the same automatic first draft for every match. The question for this case: what has to change when a generator moves to a new competition?
The test match is Pakistan v South Africa at Edgbaston on 17 June 2026 (Cricsheet id 1490687). Pakistan won the toss and batted. They collapsed to 50/8 in the 11th over: M Kapp took the first three wickets and three batters were run out. Then Fatima Sana and Tuba Hassan added a stand that carried Pakistan to 126/9, with Fatima Sana 55 not out off 38. South Africa chased 127 and won by 2 wickets with 19 balls to spare, 127/8 in 16.5 overs. A Dercksen made 52 off 35 and was player of the match.
Three things change when the generator moves, and this case works through each:
- The comparison pool. Do you compare with all women's T20Is in the data, or only matches between full members?
- The win-probability model. WP v0 must be refitted on women's chases. A men's table would be badly wrong; Chapter 9 showed that 54 needed off 30 with 8 wickets in hand is about 0.65 on the men's table and about 0.26 on the women's.
- The fact families. This match's best story belongs to a family the IPL generator did not have.
The data
From code/case_study_02.py:
Pool 'all women's T20Is': 2,037 matches before 17 June 2026
Pool 'full member v full member': 667 matches before 17 June 2026
WP v0 fitted on 2,593 women's T20 chases; comparison set 605 full-member T20I chases
Start of chase (target 127): South Africa WP 0.470
Pakistan's lowest WP in their innings: 0.085 at 50/8 after 64 legal balls; at the break: 0.530
The WP model is Chapter 9's WP v0 fitted on 2,593 women's T20 chases (T20Is, WPL and WBBL), with this match left out. The first-innings line is worth reading twice. At 50/8 after 10.4 overs, Pakistan's win probability was 8.5%. By the innings break, at 126/9, it was 53%. The rescue was worth about 45 percentage points before South Africa faced a ball.
Analysis
Step 1: the pool changes the verdict
The script runs storytelling.match_facts against both pools:
=== Facts against pool: all women's T20Is ===
[1.11] losing_hand 149 of 1,927 women's T20I defeats
[0.91] spell 1,901 of 15,392 women's T20I spells (18+ legal balls)
[0.60] aggregate 485 of 1,938 women's T20I matches
[0.51] comeback 185 of 601 chases (WP v0): winner's lowest WP
[0.50] pom (match record)
[0.47] swing 202 of 601 chases (WP v0): biggest one-ball swing
[0.47] fast_fifty 399 of 1,179 women's T20I 50+ innings
=== Facts against pool: full member v full member ===
[1.17] spell 358 of 5,351 women's T20I spells (18+ legal balls)
[0.80] losing_hand 98 of 619 women's T20I defeats
[0.51] comeback 185 of 601 chases (WP v0): winner's lowest WP
[0.50] pom (match record)
[0.47] swing 202 of 601 chases (WP v0): biggest one-ball swing
[0.40] fast_fifty 240 of 606 women's T20I 50+ innings
[0.30] aggregate 315 of 624 women's T20I matches
(The WP facts use full-member chases in both runs, so their lines are identical.)
Two facts swap places. Against all women's T20Is, Fatima Sana's 55 as the losing side's top score is the most notable fact (1.11, about 1 in 13). Against full-member matches it falls to 0.80 (about 1 in 6), and S Ismail’s 4–0–15–1 rises to the top (1.17). The match aggregate of 253 runs drops from 0.60 to 0.30.
Why? The all-T20I pool is dominated by associate matches; it contains three times as many games. In those matches, losing sides' top scores are typically lower and spells more often unbalanced, so a 55 in a defeat looks rarer than it is among the leading teams. Neither pool is wrong. They make different claims. "Among all women's T20Is" is true and invites a misleading comparison. "Among matches between full members" matches the claim a World Cup audience assumes. Kavya's newsroom rule: for a World Cup, use the full-member pool and say so in the evidence line.
Step 2: the WP facts are honest, and dull
With the women's model, South Africa's lowest point in the chase was 39%, after S Luus was bowled by Fatima Sana in the second over. That was the biggest single swing of the chase (16 points). Both facts score about 0.5: in the full-member comparison set, 185 of 601 earlier chase winners had fallen that low and 202 of 601 had a ball that big. Correctly, the generator treats South Africa's chase as unremarkable. The drama of this match was in the first innings, and the T20 generator's WP facts only look at the chase.

📊 Figure (described): Pakistan's win probability through the match under WP v0 fitted on women's T20 chases. The long climb from about 8% to 53% across overs 11–20 of Pakistan's innings is the story of the night, the Sana–Tuba Hassan stand. It contains no single dramatic ball, so the "biggest swings" labeller marks only chase wickets: Luus, Wolvaardt, Dercksen and Tryon. A swing-based labeller cannot see a story made of many small gains.
This is an important limit of the chapter's WP-swing machinery. A partnership is a story made of many small swings, none of which is big enough to be labelled. The worm shows it as a slope. The labeller, built to find cliffs, misses it.
Step 3: the missing fact family
So the script adds one: the lower-order rescue partnership. It uses Chapter 7's charts.partnership_table on every innings in each pool and keeps the ninth-wicket stand:
Pakistan's partnerships:
wicket batter_a batter_b runs balls runs_a runs_b
...
8 Fatima Sana Nashra Sandhu 5 4 5 0
9 Tuba Hassan Fatima Sana 71 54 23 45
10 Fatima Sana Sadia Iqbal 5 2 4 0
9th-wicket stands of 71+ in the pool 'all women's T20Is': 0 of 1,370 innings with a 9th-wicket stand (notability 3.14)
9th-wicket stands of 71+ in the pool 'full member v full member': 0 of 372 innings with a 9th-wicket stand (notability 2.57)
No earlier ninth-wicket stand in women's T20Is in the data had reached 71, whether in 372 full-member innings or 1,370 overall. Fatima Sana made 45 of the 71 and Tuba Hassan 23 (the other 3 were extras). With the new family added, the notes (full-member pool, cut-off 0.7) read:
1. South Africa 127/8 (16.5 ov) beat Pakistan 126/9 by 2 wickets with 19 balls to spare.
2. Fatima Sana and Tuba Hassan added 71 off 54 balls for the ninth wicket after Pakistan were 50/8; no earlier
ninth-wicket stand between full members in the data had reached 71 (0 of 372).
3. S Ismail took 1 for 15 in 4 overs (economy 3.75) while the rest of the match went at 7.25 an over. Only 358
of 5,351 earlier women's T20I spells of 3+ overs were as far below the rest of their match (0.52 times its
rate).
4. Fatima Sana's 55 off 38 was the top score for Pakistan; the losing side's best innings reached 55 in 98 of
619 earlier women's T20I defeats.
An editor would make one more improvement by hand, and it is the kind of edit the generator should learn next. Combine the record with the model: "From 50/8, Fatima Sana and Tuba Hassan added 71, the highest ninth-wicket stand in women's T20Is in the data, and took Pakistan from an 8% chance to 53% at the break." That sentence answers all three of the chapter's questions. It says what happened, compares it with every earlier ninth-wicket stand, and uses the WP model to say how much it mattered, without any single ball having to be dramatic.
What it means (and doesn't)
It means the generator transfers, but three settings have to be re-chosen for every competition: the pool, the model and the fact families. Each choice changes what the notes say, so each belongs in the evidence line.
It means women's cricket rewards this kind of analysis. A ninth-wicket record stand at a World Cup is exactly the kind of story that goes unremarked when coverage is thin and no one runs the numbers. It is also why this book uses real women's data throughout instead of treating the women's game as a footnote.
It doesn't mean "a world record". The claim is bounded by the data: women's T20Is that Cricsheet holds up to this match. Cricsheet's coverage of women's internationals is broad but not guaranteed complete, especially for early and associate matches. The right phrasing is "the highest ninth-wicket stand in women's T20Is in the data". A producer can upgrade it to "a record" only after checking an official record source.
It doesn’t mean the run-outs were bad luck or bad running. Four Pakistan batters were run out, and the data records that they were and who effected them. It cannot say why. That belongs to the commentator and the eye test.
Discussion questions
- Should a World Cup's notes compare women's matches with women's history only, or also with men's (for example, "a stand that would rank N-th in men's T20Is")? What does each choice imply for the reader?
- The labeller missed the partnership because no single ball swung much. Propose a "WP gained by a partnership" fact: the sum of the batting side's swings while the pair was together. How would you choose its comparison pool?
- The full-member pool has 667 matches; the IPL pool in the chapter had about 1,150. How does a smaller pool limit the highest notability a fact can reach, and does that matter for ranking?
- Fatima Sana's 55 not out is described as the "top score for Pakistan" in a defeat. Was she on the losing side's best performance by WPA too? Sketch how you would check with
impact.wpa_table.
Your turn
Pick another match from the 2026 Women's T20 World Cup. The 2026 knockouts listed in Chapter 7's outputs are a good place to start, for example the final, England 150/4 v Australia 153/3. Then:
- Run the generator with both pools and list the facts whose rank changes.
- Add one new fact family that the match needs (partnerships, a bowling haul, a powerplay collapse) with its own pool and k of n.
- Publish a square (1:1) graphic of the single most notable fact using
storytelling.canvas("square")andtype_scale, and write its caption with the denominator in it.