Psychosonic Lab · Experiment 10

How often is a study card right?

Thousands of cards from one library, each checked against the passage it came from

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.

Cards written 2026-11-08, graded 2026-11-09 · macOS 27.2 · MacBook Pro, Apple M3 Pro, 36 GB · Bibliome 1.9.1 card code · Qwen3.5 4B, 4-bit, MLX, bundled with Bibliome
Bibliome: psychosonicconsulting.com/bibliome

01

The question

01.1

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?

01.2

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.

01.3

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.

02

Method

02.1

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.

02.2

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.

02.3

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.

02.4

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.

02.5

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.

03

Materials

03.1

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.

03.2

The grader's prompt

grader-prompt.txt is the exact instruction GLM was given with every passage.

03.3

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.

study-cards-check.py 132 lines · sha256 b7e19e8ea4e9e265d0402b005f8274acc816715ee66d055eb24c8dc55557248c
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.")
04

Results

Cards written 2026-11-08, graded 2026-11-09 · macOS 27.2 · MacBook Pro, Apple M3 Pro, 36 GB · Bibliome 1.9.1 card code · Qwen3.5 4B, 4-bit, MLX, bundled with Bibliome

Every card, graded by GLM

CardsRightQuote shows itWorth memorizing
Kept by the app3,53892.0%88.4%92.4%
Thrown away by the app64674.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 cardsRight95% intervalQuote shows itWorth memorizing
118105 (89.0%)82% to 93%85.6%88.1%

GLM against the sample

Cards
Both say right103
Both say wrong10
GLM says right, Claude says wrong3
GLM says wrong, Claude says right2

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

KindCards
Joined two sentences into a claim the passage does not make3
Answered about a neighbouring subject3
Added a detail or an item the passage does not give3
Misread a condition or turned a rule around2
Answered a question the text asks and never answers1
Took a list as complete when it goes on1

By card type

TypeKept cardsRight
Question and answer2,89490.3%
Fill in the blank64499.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 documentDocumentsKept cardsRight
DIY66779%
Other68589%
Recording Gear1722789%
Vintage Electronics2323389%
HiFi1419090%
Product Manuals1111190%
Photography1314191%
Acoustic Research Papers1214892%
Art Books1922692%
Occult2324692%
Tax Law Library1323692%
Books1620693%
How To Guides1415093%
Video Game Music99693%
Vinyl and Turntables1523493%
Audio Magazines1829894%
Eurorack1313194%
Music Software2620194%
Synthesizers1720195%
Audio Engineering138898%

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.

05

What this shows

05.1

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.

05.2

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.

05.3

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.

05.4

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.

05.5

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.

06

What this does not show

06.1

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.

06.2

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.

06.3

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%.

06.4

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.

06.5

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.

06.6

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.

07

Run it yourself

07.1

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.

07.2

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.

07.3

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.

07.4

If yours differs

Send your .graded.csv to info@psychosonicconsulting.com and we will look.

The Signal

One signal a week. No noise.

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