Skip to content

Hold glossary usage notes and head nouns in corpus adopt - #581

Merged
tamnd merged 1 commit into
mainfrom
hold-usage-terms
Nov 5, 2026
Merged

tamnd merged 1 commit into
mainfrom
hold-usage-terms

Conversation

@tamnd

@tamnd tamnd commented Nov 5, 2026

Copy link
Copy Markdown
Owner

This change holds more glossary terms that are not full term names. It holds an entry when the definition starts with a usage note such as "The word", "Named after" or "An alternative term for".
It holds an entry when the definition says "called NAME", "said to NAME" or "is NAME if", because then the name is an adjective or a verb.
It holds a one-word entry when the second word of the definition is the name and the first word is not, because then the name is a head noun such as "hull" in "An injective hull".
It also matches a name with a hyphen to a definition that writes the word without the hyphen, and it holds a name that is the first part of a hyphenated word.

Refs #308.

Tests: go test ./importer/wikipedia/ passes. TestModifierEntry has 12 new cases that wait and 3 new cases that do not wait.

@tamnd tamnd added type: feature Adds a new function or command. area: corpus The corpus programme labels Nov 5, 2026
@tamnd
tamnd merged commit 18def09 into main Nov 5, 2026
11 of 12 checks passed
@tamnd
tamnd deleted the hold-usage-terms branch November 5, 2026 09:15
@tamnd tamnd mentioned this pull request Nov 5, 2026
4 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: corpus The corpus programme type: feature Adds a new function or command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant