# Credits & data licenses

Rootle is built from openly licensed data. All sources below permit commercial use
(the games run ads). Where a license requires attribution and/or share-alike, this
file provides the attribution and the relevant data files are offered under the same
terms.

## Game data derived from Wiktionary (`growrel.js`, `digwords.js`, `words.js`,
## `mint-data.js`, `graft-data.js`, `branchgamma-data.js`)

Every game's word data is checked — and in most cases derived — from the **English
Wiktionary**, via the [kaikki.org](https://kaikki.org) machine-readable export of
Wiktionary (`tools/kaikki/*.jsonl`: English, Latin, Ancient Greek, Old French, Middle French, French,
Italian, Middle English, Old English, Arabic, Persian). Wiktionary text is licensed **CC BY-SA 4.0**
and GFDL. https://en.wiktionary.org

Each game carries per-answer provenance recorded at build time, and every answer in the
games links to the Wiktionary entry it rests on.

Because Wiktionary carries **share-alike** terms, the data files generated from it
(`growrel.js`, `digwords.js`, the `WORD_SETS` in `words.js`, `mint-data.js`,
`graft-data.js`, `branchgamma-data.js`) are offered under **CC BY-SA 4.0**. The game's
code and UI are our own, as is the hand-authored inventory of classical roots, prefixes
and combining forms.

## Legacy Trail dictionary (`hopdata.js`, `lex.js` — no longer shipped)

These files were removed when Graft replaced Trail; the attribution is kept because the
sources shaped the root inventory that survives in `graft-data.js`. Generated by
`tools/build_trail.py` from:

- **dwyl/english-words** (`words_alpha.txt`) — the public-domain word list used as the
  universe of real words. Released under the Unlicense (public domain). No obligations.
  https://github.com/dwyl/english-words

- **MorphyNet** — derivational + inflectional morphology, used to resolve each word to
  its base lemma (so *action/activate/reaction* connect via *act*) and to map inflected
  forms to their lemmas. Licensed **CC BY-SA 3.0**; itself derived from Wiktionary.
  https://github.com/kbatsuren/MorphyNet
  Batsuren, Bella & Giunchiglia, "MorphyNet: a Large Multilingual Database of
  Derivational and Inflectional Morphology", SIGMORPHON 2021.

- **English Wiktionary** — the upstream source of MorphyNet's morphology. Text licensed
  **CC BY-SA 4.0** and GFDL. https://en.wiktionary.org

- **en50k frequency list** — used only to *select* common words for the daily puzzle
  pool (a list of facts used for selection; not redistributed as content).

- **Our own classical root inventory** — the Latin/Greek roots, prefixes, suffixes, and
  combining forms in `tools/build_trail.py` are hand-authored by us from common
  knowledge of etymology, not copied from any database.

- **Princeton WordNet 3.1** — short definitions used for Trail's morpheme "meaning"
  hints. Licensed under the permissive WordNet license (commercial use permitted with
  the copyright notice retained). https://wordnet.princeton.edu
  Princeton University "About WordNet." WordNet. Princeton University. 2010.

MorphyNet (CC BY-SA 3.0) and Wiktionary (CC BY-SA 4.0) both carry **share-alike** terms,
so anything generated from them is offered under **CC BY-SA 4.0**.

## Grove (`grove-data.js`, `grove-boards/`, `grove-near/`)

Generated by `tools/build_grove.py`. Roots, word families and the literal notes shown
for each word come from Grow's Wiktionary-derived data (`growwords.js`), so Grove's
generated files are offered under **CC BY-SA 4.0** like the other game data. The script
also uses:

- **ConceptNet Numberbatch** 19.08 (English) — word vectors used to rank how close a
  wrong guess is in meaning, and to filter WordNet's synonym lists. Licensed
  **CC BY-SA 4.0**. https://github.com/commonsense/conceptnet-numberbatch
  Speer, Chin & Havasi, "ConceptNet 5.5: An Open Multilingual Graph of General
  Knowledge", AAAI 2017. ConceptNet includes data from Wiktionary, WordNet, Open
  Multilingual WordNet, OpenCyc and others (see conceptnet.io for its full credits).

- **Princeton WordNet 3.0** (via the NLTK data package) — synonyms, derived forms and
  irregular forms: with each root's meaning, the source of the answers that count as
  correct, and one of the checks on the extra answers below (see
  `tools/grove_accept_provenance.json`). WordNet license: commercial use permitted with this notice
  retained — *WordNet 3.0 Copyright 2006 by Princeton University. All rights reserved.
  THIS SOFTWARE AND DATABASE IS PROVIDED "AS IS" AND PRINCETON UNIVERSITY MAKES NO
  REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED.* https://wordnet.princeton.edu

- Extra answers (`tools/grove_lexsub.json`, written by `tools/grove_lexsub.py`): a word
  counts only when all of these agree that it means the same as the root's meaning
  (*seat* for "to sit", *ruler* for "master, lord"):
  - **RoBERTa-large** (Facebook AI) — a language model run only at build time, never
    shipped: it checks that the word fits the root's own notes in the same sense.
    Licensed **MIT**. https://huggingface.co/FacebookAI/roberta-large
    Liu et al., "RoBERTa: A Robustly Optimized BERT Pretraining Approach", 2019.
  - **Counter-fitted word vectors** — a synonym score that keeps opposites apart.
    Licensed **Apache 2.0**. https://github.com/nmrksic/counter-fitting
    Mrkšić et al., "Counter-fitting Word Vectors to Linguistic Constraints",
    NAACL-HLT 2016. Built from Paragram-SL999 vectors (Wieting et al. 2015), which start
    from GloVe (Pennington et al. 2014, Public Domain Dedication) and PPDB 2.0
    (CC BY 3.0).
  - **Moby Thesaurus** (Grady Ward) — public domain ("use, sell, rework, excerpt and use
    in any way"), via the `moby` npm package's `words.txt`.
    https://www.npmjs.com/package/moby
  - Method after Zhou et al., "BERT-based Lexical Substitution", ACL 2019.

- **wordfreq** (Robyn Speer) — word frequencies, used only to *select* everyday words, the
  vocabulary of the closeness lists, and which held Grow words get a review card
  (`tools/en_common.txt`, the top 75,000; not redistributed as content). Code Apache 2.0;
  data **CC BY-SA 4.0**. https://github.com/rspeer/wordfreq

- The **LDNOOBW** list below keeps slurs and obscenities out of the closeness lists.

## Content filtering

- **LDNOOBW — "List of Dirty, Naughty, Obscene, and Otherwise Bad Words"** (English),
  used to filter slurs/obscenities out of the recognition set. Licensed **CC BY 4.0**.
  https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words

## Field-guide map (`map.js`)

- **johan/world.geo.json** — public-domain world GeoJSON, used to draw the strata map.
  https://github.com/johan/world.geo.json
