From 9e8ce2b8085b93b5b946fb4654214c4f88d5a02f Mon Sep 17 00:00:00 2001 From: AmitMY Date: Thu, 1 Oct 2026 19:52:33 +0200 Subject: [PATCH 1/2] feat: add possessive apostrophe-s to English extras --- Dockerfile | 4 ++++ extensions/extras/README.md | 16 ++++++++++++++++ extensions/extras/en.xml | 23 +++++++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 extensions/extras/README.md create mode 100644 extensions/extras/en.xml diff --git a/Dockerfile b/Dockerfile index 7bd9f4e..5c493fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,10 @@ COPY extensions/wikidata-lexemes/output ./extensions/wikidata-lexemes/output COPY extensions/wikidata-lexemes/merge_extension.py ./extensions/wikidata-lexemes/merge_extension.py RUN python extensions/wikidata-lexemes/merge_extension.py extensions/wikidata-lexemes/output/*.xml +# Small dictionary additions maintained separately from generated Wikidata data. +COPY extensions/extras/ ./extensions/extras/ +RUN python extensions/wikidata-lexemes/merge_extension.py extensions/extras/*.xml + # Reviewed learner content is opt-in until the dictionary exposes AI attribution. ARG INSTALL_ENGLISH_LEARNER=false COPY extensions/english-learner/ ./extensions/english-learner/ diff --git a/extensions/extras/README.md b/extensions/extras/README.md new file mode 100644 index 0000000..553e34b --- /dev/null +++ b/extensions/extras/README.md @@ -0,0 +1,16 @@ +# Dictionary extras + +Small, manually maintained additions missing from the source lexicons. Keep +these separate from generated Wikidata output so regeneration preserves them. +Docker merges them into their base lexicon using the existing merge utility: + +```sh +python extensions/wikidata-lexemes/merge_extension.py extensions/extras/*.xml +``` + +The English extension adds possessive `'s` (also `’s`) as a particle, covering +possession and association, including independent uses such as “This is John's.” +It does not add the contractions of “is” or “has.” + +Its concept ID is `omw-en-extra-possessive-s-y`; dictionary sign links use the +short ID `extra-possessive-s-y`. These IDs must remain stable. diff --git a/extensions/extras/en.xml b/extensions/extras/en.xml new file mode 100644 index 0000000..363a875 --- /dev/null +++ b/extensions/extras/en.xml @@ -0,0 +1,23 @@ + + + + + + + +
+ + + + a marker added to a noun or noun phrase to show possession or association + The clinic specializes in women's health. + This is John's coat. + This coat is John's. + + + From 84f64dfacebd2cac18b9f3eb0910df2d4f932ed8 Mon Sep 17 00:00:00 2001 From: AmitMY Date: Thu, 1 Oct 2026 22:17:23 +0200 Subject: [PATCH 2/2] chore: prepare v1.9.2 dictionary extras release --- CHANGELOG.md | 12 ++++++++++++ wn/__init__.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed973cf..7ad02d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ ## [Unreleased][unreleased] +## [v1.9.2] + +**Release date: 2026-10-01** + +### Added + +* Possessive `'s` (also `’s`) as an English particle, with examples for + possession and association. Docker merges this dictionary extra into + `omw-en:1.4`. Its stable concept ID is `omw-en-extra-possessive-s-y`. + ([sign/wn#10](https://github.com/sign/wn/pull/10)) + + ## [v1.9.1] **Release date: 2026-10-01** diff --git a/wn/__init__.py b/wn/__init__.py index efc36b7..7ce15ec 100644 --- a/wn/__init__.py +++ b/wn/__init__.py @@ -37,7 +37,7 @@ "word", "words", ) -__version__ = "1.9.1" +__version__ = "1.9.2" from wn._add import add, add_lexical_resource, remove from wn._config import config # noqa: F401