Attested human-choice ranker This is a non-generative statistical model. It ranks a lexical substitution using the selected word, its sentence context, and historical choices made by human annotators. It does not retrieve sources, establish interchangeability, supply quotations, or verify the truth of a rewritten sentence. The source filters and the quotation checks in the application are separate. Data attribution Gerhard Kremer, Katrin Erk, Sebastian Padó and Stefan Thater (2014), What Substitutes Tell Us – Analysis of an “All-Words” Lexical Substitution Corpus. Proceedings of EACL. https://aclanthology.org/E14-1057/ CoInCo includes human replacement suggestions in sentences drawn from the Manually Annotated Sub-Corpus of the Open American National Corpus, Nancy Ide and the MASC project. Both annotations and MASC text are licensed under Creative Commons Attribution 3.0 US. https://www.ims.uni-stuttgart.de/en/research/resources/corpora/coinco/ https://www.ims.uni-stuttgart.de/documents/ressourcen/korpora/coinco/coinco.xml.gz https://www.ims.uni-stuttgart.de/documents/ressourcen/korpora/coinco/README.txt https://anc.org/data/masc/ https://creativecommons.org/licenses/by/3.0/us/ The Attested adaptation trains coefficient weights using the app's filtered CoInCo index and the original XML's document and token boundaries. The existing CoInCo distribution and its inflection data are credited in coinco/NOTICE.txt. Semantic features also use Attested's 36-dimensional word vectors. The source credits and construction method for those vectors appear in collections/meaning-NOTICE.txt. Training and evaluation The model fits symmetric, weighted pairwise logistic regression on relative human vote counts for two candidate substitutes for the same target in the same context. Each training occurrence receives equal total weight. The features include similarity of target and substitute vectors, similarity to left and right context, candidate phrase length, historical vote share, and vote share after weighting human examples by contextual resemblance. The lower-reliability transfer model omits features that require an annotated target–substitute pair. A strength weight for the historical-vote feature is selected on separate development documents. Document folds use SHA-256 and join documents sharing an identical normalized sentence. Development takes fold 0, test takes fold 2, and model fitting uses the remaining folds. Example profiles exclude the sentence being scored and exclude development and test documents. The transfer model additionally excludes a lemma fold from training and tests only on targets from this fold. Candidate slates include human-proposed options. This evaluates the ability to order alternatives, not the ability to discover or cite them. On 1,091 previously unseen document occurrences with training examples for the lemma (44,890 pair comparisons), mean per-occurrence preference accuracy of the fitted coefficients was 58.6%, against 55.6% using historical votes alone. On 239 occurrences also holding out the target lemma (5,798 comparisons), the transfer model reached 52.1%, against 49.7% using target cosine alone. These figures apply to the two coefficient models on the described candidate slates, not to end-to-end passage editing, confidence calibration, or the quality of every individual suggestion. The runtime uses the complete historical example index when scoring a new passage. Human annotations have limited sense and genre coverage. A candidate historically chosen for one meaning may fail in another. Unseen substitutions receive low relative weight, unknown vocabulary and unsupported multi-head edits yield no vote. Reproduction With Python 3, NumPy 2.3.5 and scikit-learn 1.8.0: OPENBLAS_NUM_THREADS=1 python scripts/train-choice-ranker.py PATH_TO_PUBLIC PATH_TO_COINCO_XML_GZ OUTPUT_DIR The script produces choice-weights.js and evaluation.json with the SHA-256 hashes of inputs, document split, development setting and full metrics.