DEV Community

Daniel Pertu
Daniel Pertu

Posted on

31 of our 39 free question sets contain exactly 34 questions, and 29 of those split 12/12/10

Our site publishes 39 free question sets. Nobody generated them, there is no admin interface, and no database is involved: each set is a const array in the page component that renders it, and the pages are prerendered at build time.

Content written by hand over three months, with no schema enforcing anything, tends to develop a shape anyway. I parsed all 39 with the TypeScript compiler rather than with a regex, pulled out the arrays, and counted what the shape is.

34

Questions in the set Number of sets
24 1
30 2
32 1
33 1
34 31
37 1
47 1
60 1

31 of 39 sets contain exactly 34 questions. Nothing in the code requires that. There is no test asserting a count, no type carrying a length, and the number is not a round one. It is the output of a habit: three difficulty bands, twelve easy, twelve medium, ten hard, because the hard ones take longer to write and a host running a third round wants fewer of them.

The group shapes mostly confirm it. 29 of the 39 sets are split exactly 12/12/10, and 29 sets use the three headings "Easy", "Medium" and "Hard" and nothing else. Those are not the same 29: only 25 sets do both. Four sets carry the three standard headings over a different split, including the main Christmas set at 16/17/14, and four sets hit 12/12/10 under headings of their own. Two sets reach 34 questions by another route entirely, one at 12/13/9 and the anagram set at 7/7/7/7/6.

The other ten sets are where the subject refused the template. The true or false set is 24 in two groups called "True" and "False". The anagram set is five groups of seven, seven, seven, seven and six. The tie-breakers run four groups of nearest-wins questions. The review of the year is 60 questions in six groups of ten, because it is written as a whole quiz rather than as a round. Across all 39 sets there are 122 groups and 37 distinct group headings, 34 of which appear exactly once: a strong standard template with a long tail of one-offs, which is what a content library looks like when one person writes all of it and the template is in their head rather than in the types.

The questions themselves

1,347 questions, 99,053 characters of question and answer text.

Measure Question Answer
shortest 4 characters 1 character
median 57 10
90th percentile 94 29
longest 148 119

The answer column is the interesting one. 553 of the 1,347 answers, 41 per cent, are a single word. The median answer is ten characters. This is a library written to be read aloud by somebody standing on a chair in a pub, and a correct answer that needs a sentence is a correct answer the room will argue about.

Openings are similarly uniform. 1,117 of the 1,347 questions, 83 per cent, start with one of five words:

Opener Questions
Which 468
What 270
In 180
Who 109
How 90

1,246 of the 1,347 end in a question mark. The 101 that do not are the true or false statements and the anagrams, which are instructions rather than questions.

No duplicates, and the pair that comes closest

With 1,347 hand-written questions across 39 files and no index, the obvious risk is writing the same question twice. Normalising case and punctuation, exact duplicate questions across the whole library: zero.

Answers repeat, which they must: 1,232 distinct answers for 1,347 questions, and 60 answers used more than once. The most reused are "true" (10), "false" (8), "six" (7), "four" (7), "five" (6) and "red" (6). A number or a colour is not a collision, it is the alphabet of quiz answers.

I also ran a four-word shingle comparison over all 741 pairs of sets. The highest overlap of any pair is 19 shared four-word sequences, between the general knowledge set and the hard set, which are the two sets with no subject of their own and therefore the two most likely to drift into each other. Every other pair is lower. The newest pair, a British Christmas set and an American one written to cover the same festival for a different market, shares 7.

The helper with no callers

The component that renders a set exports this:

/** Total across every group, for the page to quote in its own words. */
export function countQuestions(groups: readonly QuestionGroup[]): number {
    return groups.reduce((total, group) => total + group.questions.length, 0)
}
Enter fullscreen mode Exit fullscreen mode

Call sites across the whole repository: zero.

Meanwhile, 13 of the question pages open their meta description by typing the number out: "34 free general knowledge questions with answers", "30 free hard quiz questions", "24 free true or false questions". I checked every one of those 13 against the arrays they describe. All 13 are correct, which is a happier result than the exercise deserved.

The hub is the one that gives itself room. Its description says "over 1,200 free pub quiz questions with answers across 38 sets". The cluster actually holds 1,314 questions across 38 sets, so the claim is true and 114 questions pessimistic, because it was written when the number was smaller and nothing recomputes it. The function that would recompute it is right there, unused, two directories away.

That is the whole argument for the helper in one paragraph: a hand-typed count is correct on the day it is typed, and a derived count is correct every day. The 13 page-level numbers are fine because each page's array sits in the same file as its description's subject. The hub's number went stale because it describes 38 files it cannot see.

What the markup does and does not claim

Two structural decisions that the census makes visible.

Answers are rendered in the open, not behind a <details> toggle. The reader of these pages is a host deciding whether a question is any good, not a player avoiding spoilers, and a page whose substance is inside collapsed elements is a page a crawler has to guess about.

There is no per-question structured data. FAQPage is the obvious-looking fit and would be a misrepresentation: these are not questions anybody asked us about the product, and marking them up as if they were is how sites earn manual actions. The pages carry Article markup for what they are, a written piece with a list in it, which is the same decision I audited across the whole site in October and have not had cause to revisit.

What a census cannot see

Whether any of them are good questions. Every number above is about shape: counts, lengths, openers, overlaps. None of it distinguishes a question a room enjoys from one that kills a round, and the only test for that is reading one out to eight people with drinks in front of them.

It also cannot see the thing I would most like to know, which is whether 34 is right. Thirty-one sets say 34 because thirty-one sets were written after the first one that did, not because anybody measured a round. The honest description of the number at the top of this post is not a standard, it is a habit that nothing in the codebase has ever asked to justify itself.

If you want the shape rather than the numbers, the general knowledge set is the template: 12, 12, 10, three headings, answers in the open, and a button that turns it into four sheets of A4.

Top comments (0)