Skip to content

fix(dictionary): better handle conversion of hyphens to spaces - #417

Merged
david-allison merged 2 commits into
masterfrom
thie-veaghee
Aug 4, 2026
Merged

fix(dictionary): better handle conversion of hyphens to spaces#417
david-allison merged 2 commits into
masterfrom
thie-veaghee

Conversation

@david-allison

Copy link
Copy Markdown
Owner
  • collapse duplicate entries only differing by spaces: thie veaghee == thie-veaghee
    • also fix the timeline to include both entries

david-allison and others added 2 commits August 4, 2026 21:38
Cregeen prints 'thie veaghee'; the corpus says it once, as the Acts'
'thie-veaghee'. AttestationsOf already folded the two together, so the
word page listed the attestation while greying the headword unattested.
Attestation's phrase branch now asks the same folded count table before
falling back to the phrase scan.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The lemma table folds hyphens to spaces, but the timeline scanned each
form literally: 'thie veaghee' never matched the corpus token
'thie-veaghee' and showed an empty timeline, and 'cur my ner' counted
40 of ~1,880 uses because the Bible writes 'Cur-my-ner'. Scan each
form with IgnoreHyphens, keeping affix queries ('aa-*') literal so the
wildcard is not split off the hyphen, and collapse forms differing
only in joining ('thie veaghee' / 'thieveaghee') into one scan so the
same token is not counted under each spelling.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@david-allison david-allison changed the title fix(dictionary): better handling of conversion of hyphens to spaces fix(dictionary): better handle conversion of hyphens to spaces Aug 4, 2026
@david-allison
david-allison merged commit 6dd7c83 into master Aug 4, 2026
8 checks passed
@david-allison
david-allison deleted the thie-veaghee branch August 4, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant