# Question bank attribution

`bank.js` in this folder is generated data, not original work.

- **What it is:** multiple-choice trivia questions with a category and a difficulty level.
- **Source:** the [Open Trivia Database](https://opentdb.com), a free, community-contributed trivia database. Questions were downloaded through its public API by `tools/build-bank.mjs`.
- **Licence:** the Open Trivia Database states that "All data provided by the API is available under the Creative Commons Attribution-ShareAlike 4.0 International License."
  CC BY-SA 4.0: <https://creativecommons.org/licenses/by-sa/4.0/>

## Changes made

The data has been modified from the original:

- only four-option multiple-choice questions were kept (true/false questions were removed);
- questions were filtered for length, for answers such as "All of the above", for duplicates, and for content unsuitable for a family audience;
- text was lightly normalised (whitespace collapsed, curly quotes straightened);
- the original categories were merged into a smaller set of broad categories, and difficulty was mapped to 1 (easy), 2 (medium), 3 (hard).

## Share-alike

Because of the share-alike term, the data in `bank.js` (and any adapted version of it) remains under CC BY-SA 4.0: if you redistribute it, keep this attribution, say what you changed, and license the data under the same terms. This applies to the question data in `bank.js` only; it does not change the licence of the rest of this project's code or of the hand-written questions in `trivia.js`.

The Open Trivia Database and its contributors do not endorse this project.
