Dilemma - Third-Party Notices and Attributions
================================================

Dilemma's own source code is released under the MIT License (see LICENSE).

The data artifacts that Dilemma builds and distributes - the SQLite lookup
database, the trained character-level model, the corpus-frequency tables, and
the lemma/form corpus-attestation databases - are DERIVED from the third-party
sources listed below and remain subject to their respective licenses. They are
not covered by the MIT license that applies to the code.

Public-domain texts, and faithful digitizations of public-domain texts, are
credited here for scholarship and provenance; the digitization itself is not
treated as a separately licensable layer.

Each entry gives, where applicable: title, author/maintainer, source link, and
license. "Derived/extracted" means Dilemma uses data computed from the source
(e.g. form-to-lemma pairs, headword lists, token statistics) rather than
redistributing the source verbatim.


Lexica and dictionaries
-----------------------

- English Wiktionary and Greek Wiktionary (Wikimedia community).
  https://en.wiktionary.org/ , https://el.wiktionary.org/
  Obtained as JSONL via kaikki.org (https://kaikki.org/).
  License: CC BY-SA 3.0  (https://creativecommons.org/licenses/by-sa/3.0/).
  Glosses and inflection data are extracted and transformed.

  The optional verb_subjects.json table extracts explicitly labeled usage
  restrictions from both editions via Kaikki/Wiktextract. It preserves source
  links, sense identifiers, labels, and snapshot hashes. The extracted and
  transformed table is distributed under CC BY-SA 4.0
  (https://creativecommons.org/licenses/by-sa/4.0/), matching the current
  Wiktionary text license. Its license is separate from the MIT source code.

- A Greek-English Lexicon (LSJ), H.G. Liddell, R. Scott, H.S. Jones,
  9th ed. (Oxford, 1940). Public domain. Headwords, forms, and POS via the
  LSJ9 processed exports (https://github.com/ciscoriordan/lsj9).

- Greek Lexicon of the Roman and Byzantine Periods, E.A. Sophocles.
  Public domain. TEI via Ionian University / Internet Archive
  (https://archive.org/details/pateres).

- Perseus Digital Library lexica - Lewis & Short, Pape, Bailly (headword
  filter only). https://www.perseus.tufts.edu/

- Diccionario Griego-Espanol (DGE), CSIC (headwords only).
  http://dge.cchs.csic.es/

- Lexicon of Greek Personal Names (LGPN), University of Oxford (proper names
  only). https://www.lgpn.ox.ac.uk/

- Dictionary of Standard Modern Greek (Triantafyllidis), Institute for Modern
  Greek Studies, via the Greek Language Portal and the glossAPI/EELLAK export
  on Mozilla Data Collective.
  https://www.greek-language.gr/greekLang/modern_greek/tools/lexica/triantafyllides/
  https://mozilladatacollective.com/datasets/cmo1sklpo00d0mk07taoepe1a
  The dataset listing declares CC BY-NC-ND 4.0 for the packaged export.
  Dilemma reads and ships only the factual bare headword strings from its
  `lemma` column; it does not read or redistribute definitions, examples,
  pronunciation, grammatical information, etymology, or source-page content.

- A Lexicon of the Homeric Dialect, R.J. Cunliffe. Public domain. Headwords
  and grammatical information expanded into paradigms with Wiktionary's
  grc-decl and grc-conj modules.

- Vocabolario della Lingua Greca (F. Montanari), Words in Progress
  (Aristarchus; F. Montanari, S. Perrone), and A Greek-English Lexicon,
  10th ed. (Liddell, Scott, Jones): bare headword strings only, used as
  lookup self-maps. Definitions and other dictionary content are not read
  or redistributed.

- A lexicon of Byzantine Greek (literary vocabulary of the 9th-12th c.):
  bare headword strings and genders only. The headwords are lookup
  self-maps, and their paradigms are generated with Wiktionary's grc-decl and
  grc-conj modules (build/expand_lbg.py). An -ος headword without an article
  is an adjective there, and Dilemma declines it by its own rule
  (dilemma/grc_os_gaps.py). Definitions and other lexicon content are not
  read or redistributed.

- Nestle 1904 Greek New Testament, lowfat syntax trees. License: CC BY 4.0.
  Koine form-lemma pairs, lookup gap-fill only.

data/lookup_sources.json maps every input of lookup.db to the sources above
and their licenses; each lookup.db row names its source (see docs/usage.md).
Where pinned records tell the layers of a merged file apart, a row names the
layer: Wiktionary's own tables, the paradigms generated from LSJ, Sophocles
and Cunliffe headwords, or Modern Greek forms generated by rule.


Treebanks and annotated corpora
-------------------------------

- GLAUx, Alek Keersmaekers (2021).
  https://github.com/alekkeersmaekers/glaux
  License: CC BY-SA 4.0 for most texts; some source texts are more restrictive
  (e.g. CC BY-NC), with the per-text license recorded in GLAUx's metadata.
  GLAUx aggregates the dependency treebanks listed below.

- The Ancient Greek Dependency Treebanks (AGDT / Perseus), Perseus Project
  (G. Crane et al.). https://github.com/PerseusDL/treebank_data
  License: CC BY-SA 3.0 US. Dilemma extracts form-lemma pairs from this
  openly licensed original, NOT from the Universal Dependencies release
  (UD_Ancient_Greek-Perseus), which is CC BY-NC-SA 3.0.

- PROIEL Treebank, the PROIEL project.
  https://github.com/UniversalDependencies/UD_Ancient_Greek-PROIEL
  License: CC BY-NC-SA 3.0  (NonCommercial) - NOT used by Dilemma; excluded
  as NonCommercial (GLAUx independently re-annotates some of the same
  texts under its own CC BY-SA 4.0 license, which Dilemma does use).

- Gorman Treebanks, Vanessa Gorman.
  https://github.com/perseids-publications/gorman-trees
  License: CC BY-SA 4.0  (the authoritative TREEBANK_LICENSE).
  NOT ingested into any shipped artifact: held out as the project's
  evaluation gold corpus (eval/eval_gorman_gold.py).

- Pedalion Trees. https://github.com/perseids-publications/pedalion-trees
  License: CC BY-SA 4.0. Consumed via the Open Greek Corpus standardized
  export (cog export pedalion-v1) for lookup gap-fill, treebank POS edges,
  and lemma attestation. cog drops the re-exported PROIEL (PRO1/PRO2) rows;
  Dilemma additionally skips the Gorman-provenance rows (held-out gold) and
  keeps the constructed example-sentence collections out of attestation.

- Harrington Trees. https://github.com/perseids-publications/harrington-trees
  License: CC BY-SA 4.0.

- UD_Ancient_Greek-PTNK (Septuagint: Genesis, Ruth, per Codex Alexandrinus).
  https://github.com/UniversalDependencies/UD_Ancient_Greek-PTNK
  License: CC BY-SA 4.0. Manual native lemma + morphology (syntax projected
  from the parallel Ancient Hebrew treebank, not PROIEL). Consumed via the
  Open Greek Corpus standardized export (cog export ptnk-v1) for lookup
  gap-fill and treebank POS edges; only the train split is ingested (dev +
  test are held out for eval/eval_ptnk.py).

- STEPBible TAGNT (Translators Amalgamated Greek New Testament).
  Tyndale House Cambridge / STEP Bible -> https://www.STEPBible.org
  https://github.com/STEPBible/STEPBible-Data
  License: CC BY 4.0. Consumed via the Open Greek Corpus standardized export
  (cog export tagnt-v1) for lookup gap-fill only (NT variant spellings and
  proper nouns); its Robinson tagset is not used for POS edges.

- The Diorisis Ancient Greek Corpus, A. Vatri and B. McGillivray (2018).
  https://figshare.com/articles/dataset/The_Diorisis_Ancient_Greek_Corpus/6187256
  License: CC BY 4.0  (per the figshare record).

- Opera Graeca Adnotata (OGA) v0.2.0, Giuseppe G. A. Celano.
  https://github.com/OperaGraecaAdnotata/OGA
  Data: https://doi.org/10.5281/zenodo.14206061 (version DOI).
  License: CC BY-SA 4.0. All annotation is automatic (Trankit + GreTa).
  Consumed via the Open Greek Corpus standardized export (cog export
  oga-v1); the one NonCommercial PTA file (pta0036) and all works
  annotated by the Gorman treebanks are excluded.

- First1KGreek, Open Greek and Latin.
  https://github.com/OpenGreekAndLatin/First1KGreek
  License: CC BY-SA 4.0.

- Patristic Text Archive (PTA).
  https://github.com/PatristicTextArchive/pta_data
  License: per-file Creative Commons licenses, recorded in each file's header.

- Patrologia Graeca (Migne). Public domain. Used via the Open Greek Corpus's
  corrected text (below), which derives from the Calfa OCR
  (https://github.com/calfa-co/Patrologia-Graeca, CC BY 4.0).

- Byzantine vernacular corpus, Francisco Riordan.
  https://github.com/ciscoriordan/byzantine-vernacular-corpus
  Now maintained as the `byzantine` source inside the Open Greek Corpus.

- Open Greek Corpus.
  https://github.com/open-greek/open-greek-corpus
  License: CC BY-SA 4.0, with per-work source and license recorded in its
  corpus_editions.json. Supplies the corrected Patrologia Graeca text and
  OCR'd editions read by the form-attestation pass, and the public_lexicon.tsv
  open-text frequency rollup (First1KGreek, corrected Patrologia Graeca,
  Perseus canonical-greekLit, byzantium.gr, Byzantine vernacular) merged into
  corpus_freq.json.


Modern Greek text corpora (monotonic next-word model and word list)
------------------------------------------------------------------

The monotonic Modern Greek next-word model and word list are derived from the
openly licensed corpora below. Each is pinned (revision, size, sha256) in
data/el_lm_corpora.json, which also records the excluded corpora and why;
extract_el_monotonic_lm.py refuses NonCommercial and NoDerivatives licenses.
"Derived" means n-gram and word counts computed from normalized, tokenized
sentences. The keyboard bundle distributes counts rather than sentences.
For reproducible builds, data/el_lm_inputs/ on the public ciscoriordan/dilemma
Hub repository also preserves the original Tatoeba export and unmodified
Wiktionary usage examples under their source licenses below. Its provenance.json
records attribution, original source pins and checksums; document ids and groups
are preserved. Those archived source documents are separate from the bundle.

- Greek Parliament Proceedings 1989-2020 (tell_all.csv), Konstantina Dritsa,
  Kaiti Thoma, John Pavlopoulos, Panagiotis Louridas. A Greek Parliament
  Proceedings Dataset for Computational Linguistics and Political Analysis.
  Zenodo, 2022. https://doi.org/10.5281/zenodo.7005201
  License: CC BY 4.0.

- OpenGov Greek Public Deliberations (citizen comments), glossAPI and GFOSS
  (Open Technologies Alliance), from opengov.gr.
  https://huggingface.co/datasets/glossAPI/OpenGov_Deliberations
  License: CC BY 4.0.

- Greek Wikipedia (2023-11-01 dump), Wikipedia contributors, via the
  Wikimedia Foundation dataset wikimedia/wikipedia.
  https://huggingface.co/datasets/wikimedia/wikipedia
  License: CC BY-SA 4.0 (older revisions CC BY-SA 3.0).

- Greek data of the European Parliament (documents, amendments, written
  questions), glossAPI and GFOSS; source: European Parliament Open Data
  Portal. https://huggingface.co/datasets/glossAPI/ellinika_dedomena_europaikou_koinovouliou
  License: CC BY-SA 4.0.

- EELLAK network articles, glossAPI; articles of the ellak.gr site network.
  https://huggingface.co/datasets/glossAPI/eellak-articles
  License: CC BY-SA 4.0.

- Greek Wikisource, monotonic modern texts, Wikisource contributors, via the
  glossAPI dataset Wikisource_Greek_texts (listed under Frequencies below).
  License: CC BY-SA 3.0 (most texts are in the public domain).

- Tatoeba, Modern Greek sentences, Tatoeba contributors.
  https://tatoeba.org/ (per-language export of 2026-10-31)
  License: CC BY 2.0 FR (some sentences CC0 1.0).

- Common Voice sentence collection, Greek, Mozilla Common Voice contributors.
  https://github.com/common-voice/common-voice (server/data/el)
  License: CC0 1.0.

- Wiktionary usage examples of Modern Greek entries (Greek and English
  editions), Wiktionary contributors, extracted by kaikki.org (Wiktextract).
  License: CC BY-SA 4.0 (older revisions CC BY-SA 3.0).


Evaluation data
---------------

- HNC Golden Corpus, CLARIN:EL. License: openUnderPSI.
  https://inventory.clarin.gr/corpus/870
  Its gold Modern Greek form-lemma pairs also fill gaps in the lookup.

- DBBE datasets, Swaelens et al. License: CC BY 4.0.
  https://github.com/coswaele/ByzantineGreekDatasets

- Greek spelling dictionary of LibreOffice (el_GR 0.9, elspell), pinned to
  commit 74d8e826359dbf38224fac1b9c02254b7fe0186a of
  https://github.com/LibreOffice/dictionaries (el_GR/).
  License: MPL 1.1, GPL 2.0 or LGPL 2.1. eval/eval_el_monotonic.py downloads
  it into data/raw/elspell/ (ignored by git) to cross-check the monotonic
  word list. It never admits a word, and none of its content is shipped.


Frequencies and assets
----------------------

- glossAPI / Wikisource Greek texts.
  https://huggingface.co/datasets/glossAPI/Wikisource_Greek_texts

- FrequencyWords, Hermit Dave, Modern Greek full word list (el_full.txt,
  1.49M forms), built from the OpenSubtitles2018 corpus of OPUS.
  https://github.com/hermitdave/FrequencyWords
  Source corpus: http://opus.nlpl.eu/OpenSubtitles2018.php
  License: CC BY-SA 4.0 for the word lists (the repository's code is MIT).
  Stored as data/mg_freq.txt, sha256
  7cad3ec81acd202137b6aa997e642b9456e353c3f27b29b6deffdad22ea5d6f5.
  Only the word counts are used, for frequency ranks of word forms; no
  subtitle text is read or distributed.

- Flag icons, svg-flags. https://github.com/ciscoriordan/svg-flags


A note on source licensing
--------------------------

Every source of copyright-bearing text or annotation in Dilemma's shipped data
and models is openly licensed: no NonCommercial text, dictionary entries, or
treebank annotation is included. The Triantafyllidis reference inventory above
is limited to factual bare headword strings; the source's CC BY-NC-ND packaged
dictionary content is not ingested. The PROIEL treebank (CC BY-NC-SA, with no
permissive release) is excluded entirely. The Ancient Greek Dependency
Treebank is taken from the Perseus AGDT original (CC BY-SA 3.0 US), not the
NonCommercial Universal Dependencies repackaging (UD_Ancient_Greek-Perseus).
Diorisis is CC BY 4.0; the Gorman treebanks (CC BY-SA 4.0) are deliberately
never ingested - they are the held-out evaluation gold corpus, and the GLAUx
sentences whose manual trees were sourced from Gorman are skipped for the same
reason. The 25 GLAUx works whose treebank annotations derive from the PROIEL
treebank (CC BY-NC-SA: the New Testament books and Herodotus) are excluded
entirely. The handful of NonCommercial
source texts within GLAUx, and the per-file NonCommercial texts within the
Patristic Text Archive, are filtered out at build time (see build/nc_filter.py).
What Dilemma extracts from any treebank is factual form-to-lemma annotation and
aggregate token statistics, not the syntactic apparatus.

The shipped Modern Greek POS / dependency tagger is trained on UD_Greek-GUD
(CC BY-SA 4.0) plus the CC BY-SA dialect treebanks, NOT on UD_Greek-GDT, which
is CC BY-NC-SA. The Modern Greek lemmatizer model is built from Wiktionary and
the HNC Golden Corpus; the Triantafyllidis headwords affect convention
validation/remapping and give a listed headword its own lookup key, and do
not train that model.
