Psychosonic Lab · Experiment 10
How often is a study card right?
Bibliome 1.9.1 writes study cards from a page range of any PDF in the library, with a small model that runs on the Mac. A study card is only useful if it is right, because you are going to memorize it. So we let it write cards from 300 documents in one real library. It kept 3,538, and every one was checked against the passage it came from. The script below lets you do the same with a deck of your own.
The question
What is being asked
When Bibliome writes study cards from a document, what share of the cards it keeps give a true answer, going by the document itself?
Why it matters
A wrong card is worse than no card, because studying it teaches the mistake. Before release the cards were checked on seven chapters, and 98% of the kept cards were right. That is a small sample of what people keep in a library.
What counts as right
A card is right when its back is a true and complete answer to its front, judged against the passage the card was written from, not against what the grader knows from elsewhere. When the passage does not settle it, the card counts as wrong.
Method
The library
311 documents drawn at random from the developer's own Bibliome library, which indexes about nine thousand documents, spread across 22 kinds of document by folder: manuals, magazines, books, papers, tax publications, catalogs and more. Each needed at least 30 indexed pages. Four were left out afterwards because they are confidential.
The pages
From each document, a five page window starting about a quarter of the way in, moved on when those pages were mostly not text. Taking the middle kept the cards from all coming out of introductions.
Writing the cards
Bibliome's own card code, the code that ships in 1.9.1, with its bundled Qwen3.5 4B, on the same Mac and the same text the app's index holds, called by a script instead of the app. It writes more cards than it keeps and drops the rest itself. Both piles were graded.
Grading every card
GLM 5.3 on Z.ai graded all 4,184 cards, one passage at a time, without being told which cards the app had kept. For each card it answered three questions: is it right, does the card's own quote show the answer, and is it worth memorizing. Its prompt is published below.
Checking the grader
Claude then graded 118 kept cards on its own, one from each of 118 documents picked at random, without seeing GLM's grades. Where the two disagreed the passage was read again, and twice it was Claude's grade that changed.
Materials
The script
One file of Python, 132 lines, standard library only. It walks you through a deck you export from Bibliome and asks you the three questions the graders answered. It is shown in full below with its checksum. It is not the code that made our cards, which is Bibliome's own and not open source.
The grader's prompt
grader-prompt.txt is the exact instruction GLM was given with every passage.
The data
cards.csv has one row per card written: the document as a number, its kind, the card type, whether the app kept it, and every grade. documents.csv has one row per document. The cards and passages themselves are not published, because they quote the books they came from, and the documents are numbered, not named.
Show the script in full
#!/usr/bin/env python3
"""Grade a Bibliome study deck yourself, and get the share of its cards that are right.
Psychosonic Lab, Experiment 10: https://psychosonicconsulting.com/lab/study-cards
1. In Bibliome on the Mac, make study cards from a chapter you know well.
2. In the deck, choose Export, then CSV. The file has five columns:
front, back, type, page, quote.
3. Run: python3 study-cards-check.py "My Deck.csv"
Cards come up in a random order. For each one you see the front first, so you can
answer it in your head, then the back, the quote it was written from, and its page.
Open the PDF at that page when you are unsure. Then answer three questions, the same
three this Lab's graders answered:
right? Is the back a true and complete answer to the front, going by the book?
quote? Does the quote under the card, on its own, show that answer?
worth it? Would you want to memorize this card?
Your answers go to "<deck>.graded.csv" after every card, so you can stop with q and
pick up later where you left off. At the end it prints the share right, with a 95%
interval, which is how wide the doubt is for that many cards.
Options:
--sample N grade N random cards instead of the whole deck
--seed S the order to use (default 10), so a second run asks in the same order
Standard library only. It reads your CSV and writes one file beside it, nothing else.
"""
import argparse
import csv
import math
import os
import random
import sys
def wilson(k, n, z=1.96):
"""A 95% interval for k right out of n. Wider when n is small."""
if n == 0:
return 0.0, 0.0
p = k / n
d = 1 + z * z / n
c = (p + z * z / (2 * n)) / d
w = z * math.sqrt(p * (1 - p) / n + z * z / (4 * n * n)) / d
return max(0.0, c - w), min(1.0, c + w)
def read_deck(path):
with open(path, newline="", encoding="utf-8-sig") as f:
rows = list(csv.reader(f))
if not rows:
sys.exit("The file is empty.")
# The first row is the header Bibliome writes, in the app's language. Columns are
# read by position, so any language works.
cards = []
for i, r in enumerate(rows[1:], 1):
if len(r) < 5:
sys.exit(f"Row {i + 1} has {len(r)} columns; a Bibliome CSV export has 5. Is this the right file?")
cards.append({"id": str(i), "front": r[0], "back": r[1], "type": r[2], "page": r[3], "quote": r[4]})
return cards
def ask(prompt):
while True:
a = input(prompt).strip().lower()
if a in ("y", "n", "s", "q"):
return a
print(" y for yes, n for no, s to skip this card, q to stop for now")
def main():
ap = argparse.ArgumentParser(description="Grade a Bibliome study deck yourself.")
ap.add_argument("deck", help="the CSV file Bibliome exported")
ap.add_argument("--sample", type=int, default=0, help="grade this many random cards")
ap.add_argument("--seed", type=int, default=10, help="the random order to use")
a = ap.parse_args()
cards = read_deck(a.deck)
random.Random(a.seed).shuffle(cards)
if a.sample:
cards = cards[: a.sample]
out = os.path.splitext(a.deck)[0] + ".graded.csv"
fields = ["card", "type", "page", "right", "quote_shows_it", "worth_it"]
done = {}
if os.path.exists(out):
with open(out, newline="", encoding="utf-8") as f:
done = {r["card"]: r for r in csv.DictReader(f)}
print(f"Picking up from {out}: {len(done)} cards already graded.")
todo = [c for c in cards if c["id"] not in done]
for i, c in enumerate(todo, 1):
print(f"\n--- card {len(done) + 1} of {len(cards)} ({c['type']}, page {c['page']}) ---")
print(f"FRONT {c['front']}")
input(" (Enter to show the answer) ")
print(f"BACK {c['back']}")
print(f"QUOTE {c['quote']}")
answers = []
for q in ("right? ", "quote? ", "worth it? "):
r = ask(f" {q}[y/n/s/q] ")
if r in ("s", "q"):
break
answers.append(r)
if r == "q":
break
if r == "s":
continue
done[c["id"]] = {"card": c["id"], "type": c["type"], "page": c["page"], "right": answers[0],
"quote_shows_it": answers[1], "worth_it": answers[2]}
with open(out, "w", newline="", encoding="utf-8") as f:
w = csv.DictWriter(f, fieldnames=fields)
w.writeheader()
w.writerows(done.values())
graded = list(done.values())
n = len(graded)
print(f"\n{n} cards graded, saved in {out}")
if not n:
return
for key, label in (("right", "right"), ("quote_shows_it", "quote shows it"), ("worth_it", "worth memorizing")):
k = sum(1 for g in graded if g[key] == "y")
lo, hi = wilson(k, n)
print(f" {label:17s} {k} of {n} = {100 * k / n:.0f}% (95% interval {100 * lo:.0f}% to {100 * hi:.0f}%)")
print("\nThe Lab's figures, for comparison: psychosonicconsulting.com/lab/study-cards")
if __name__ == "__main__":
try:
main()
except (KeyboardInterrupt, EOFError):
print("\nStopped. Your answers so far are saved.")
Results
Every card, graded by GLM
| Cards | Right | Quote shows it | Worth memorizing | |
|---|---|---|---|---|
| Kept by the app | 3,538 | 92.0% | 88.4% | 92.4% |
| Thrown away by the app | 646 | 74.6% | 72.8% | 80.2% |
4,184 cards from 300 documents that gave at least one kept card, out of 307 after the confidential ones were left out. 81.1% of kept cards were right, shown by their own quote and worth memorizing, all three at once.
Claude's blind sample
| Kept cards | Right | 95% interval | Quote shows it | Worth memorizing |
|---|---|---|---|---|
| 118 | 105 (89.0%) | 82% to 93% | 85.6% | 88.1% |
GLM against the sample
| Cards | |
|---|---|
| Both say right | 103 |
| Both say wrong | 10 |
| GLM says right, Claude says wrong | 3 |
| GLM says wrong, Claude says right | 2 |
They agreed on 113 of 118. Two of the disagreements were settled in GLM's favour when the passage was read again: a card that applied a rule for ordinary diodes to LEDs, and a card that answered a question about a novel's narrator with a sentence about another character.
How the sampled wrong cards went wrong
| Kind | Cards |
|---|---|
| Joined two sentences into a claim the passage does not make | 3 |
| Answered about a neighbouring subject | 3 |
| Added a detail or an item the passage does not give | 3 |
| Misread a condition or turned a rule around | 2 |
| Answered a question the text asks and never answers | 1 |
| Took a list as complete when it goes on | 1 |
By card type
| Type | Kept cards | Right |
|---|---|---|
| Question and answer | 2,894 | 90.3% |
| Fill in the blank | 644 | 99.7% |
A fill in the blank card is built in code from a real sentence of the passage, so its answer is the word that was there: GLM called 99.7% of them right. What can go wrong with one is whether it is worth memorizing, and 86% were.
By kind of document
| Kind of document | Documents | Kept cards | Right |
|---|---|---|---|
| DIY | 6 | 67 | 79% |
| Other | 6 | 85 | 89% |
| Recording Gear | 17 | 227 | 89% |
| Vintage Electronics | 23 | 233 | 89% |
| HiFi | 14 | 190 | 90% |
| Product Manuals | 11 | 111 | 90% |
| Photography | 13 | 141 | 91% |
| Acoustic Research Papers | 12 | 148 | 92% |
| Art Books | 19 | 226 | 92% |
| Occult | 23 | 246 | 92% |
| Tax Law Library | 13 | 236 | 92% |
| Books | 16 | 206 | 93% |
| How To Guides | 14 | 150 | 93% |
| Video Game Music | 9 | 96 | 93% |
| Vinyl and Turntables | 15 | 234 | 93% |
| Audio Magazines | 18 | 298 | 94% |
| Eurorack | 13 | 131 | 94% |
| Music Software | 26 | 201 | 94% |
| Synthesizers | 17 | 201 | 95% |
| Audio Engineering | 13 | 88 | 98% |
Kinds with at least 60 kept cards, from 79% to 98%. Two smaller kinds are in cards.csv. The low end is small numbers as much as anything: a kind with 60 cards moves about two points for every card.
The cards for one five page window took a median of 31 seconds on this Mac.
What this shows
About nine in ten
GLM graded 92% of the kept cards right. Claude's blind sample of 118 gave 89%. Both say about nine cards in ten.
The grader and the sample agree
On the sampled cards GLM and Claude agreed 113 times out of 118, and their few disagreements ran both ways, so GLM's figure over every card is not tilted to one side.
A wider library scores lower than the first test
The seven chapters checked before release gave 98%. A random spread of real documents gives less. That is the reason for running it again on more than a few chapters.
The app's own filter helps
Of the cards the app threw away itself, 25% were wrong, against 8% of those it kept. It also throws away some good ones.
How the wrong ones go wrong
In the sample, a wrong card most often joined two sentences into a claim the passage does not make, answered about a neighbouring subject, or added a detail the passage does not give. Section 04 counts each kind.
What this does not show
One library
Every document came from one person's library, heavy on audio, electronics and old magazines. A library of case law or medical texts could do better or worse.
Right by the passage, not by the world
A card is graded against the passage it came from. When the book is wrong, a card that repeats it counts as right.
Models grading a model
Neither grader is a person. Their agreement says the figure is consistent, not that an expert in each subject would give the same. Claude's sample of 118 has a 95% interval of 82% to 93%.
Five pages, not a chapter
A student picks a chapter they are studying. Each window here is five pages from the middle of a document, chosen by a script, so some are tables, ads or price lists that nobody would study.
Not whether the cards help you learn
This counts right answers. It does not measure whether studying the cards helps anyone remember, or whether they cover what matters most in a chapter.
One Mac, one model
The cards were written on one Mac with the model Bibliome bundles, which is the model it always uses for cards. Times on a smaller Mac can be longer.
Run it yourself
Make a deck you can judge
Pick a chapter you know well. In Bibliome on the Mac, make study cards from it, open the deck and export it as CSV.
Grade it
python3 study-cards-check.py "My Deck.csv"Cards come up in a random order, front first. For a long deck,
--sample 50 grades fifty random cards. Stop with q and run it again to carry on.Read the interval
The script prints the share right with a 95% interval. With fifty cards and nine in ten right, the interval runs from 79% to 96%, so a deck of your own will not match ours to the point.
If yours differs
Send your .graded.csv to info@psychosonicconsulting.com and we will look.
The Lab
Bibliome is made by Psychosonic Consulting. Qwen is Alibaba's, GLM is Z.ai's and Claude is Anthropic's. None of them is affiliated with or endorses this page.
The Signal
A short note on building privacy-first software, plus the day each new app ships. No spam, unsubscribe anytime.
Free · ~1 email a week · your address stays yours · RSS feed