# Word list sources and licences

Rebuilt with `tools/dicts/build_dicts.py` (see its header for the exact commands).

| Language | Main list (`data/dicts/<lang>.txt`) | Rare tier (`data/rare/<lang>-<n>.txt`) |
|---|---|---|
| en | validity list ordered by OpenSubtitles 2018 frequency (unchanged) | Letterpress word list (CC0) minus the main list |
| es | Letterpress validity list ordered by OpenSubtitles 2018 frequency, accents restored from Hunspell `es` (RLA-ES) and the subtitles' own spellings; matched accent-insensitively | Letterpress + every Hunspell `es` form, minus the main list |
| fr, de | validity list (Letterpress, CC0) ordered by OpenSubtitles 2018 frequency, foreign proper names removed | Letterpress word list (CC0) minus the main list |
| it | OpenSubtitles 2018 words (≥ 8 occurrences) accepted by Hunspell `it` | every form Hunspell `it` accepts (affix expansion, enclitics included) |
| pt | same, accepted by Hunspell `pt` (Brazil) or `pt-PT` | every form either dictionary accepts |
| nl, pl, sv, tr | same, accepted by Hunspell `nl` / `pl` / `sv` / `tr` | every form the dictionary accepts |

Plus `data/dicts/<lang>.rescue`: frequent words the spell-checker misses, reviewed by hand (for pt this
includes pre-1990 European spellings such as *acção*, *director*). `data/dicts/<lang>.exclude` removes slurs
and hard profanity from both tiers.

Matching: es, fr, it and pt are accent-insensitive (Scrabble tiles carry no accents; Portuguese keeps Ç as its own tile),
so the lists keep the real spelling while typed tiles without accents still find the words.

## Licences of the sources

- Frequency order: [hermitdave/FrequencyWords](https://github.com/hermitdave/FrequencyWords), OpenSubtitles 2018 — CC BY-SA 4.0.
- [lorenbrichter/Words](https://github.com/lorenbrichter/Words) (Letterpress) — CC0 1.0.
- Hunspell dictionaries via [wooorm/dictionaries](https://github.com/wooorm/dictionaries):
  - es — GPL-3.0, LGPL-3.0 or MPL-1.1 (RLA-ES: Santiago Bosio, Ricardo Berlasso and contributors)
  - it — GPL-3.0 (Andrea Pescetti and contributors)
  - pt (Brazil) — LGPL-3.0 or MPL-2.0 (VERO / Raimundo Moura)
  - pt-PT — GPL-2.0, LGPL-2.1 or MPL-1.1 (Natura project, Universidade do Minho)
  - nl — BSD-3-Clause or CC BY 3.0 (OpenTaal)
  - pl — GPL-3.0, LGPL-3.0 or MPL-2.0 (sjp.pl / Polish OpenOffice project)
  - sv — LGPL-3.0 (Göran Andersson)
  - tr — MIT (Harun Reşit Zafer)

Also used only to spot proper names (nothing from them is published): Hunspell en (MIT/BSD), fr (Grammalecte, MPL-2.0), de (igerman98, GPL-2.0/3.0).

The word lists derived from these dictionaries are distributed under the same licences as their sources.
