Skip to content

Apply insertion and deletion weights to empty strings - #69

Merged
tdebatty merged 1 commit into
tdebatty:masterfrom
PHJ2000:fix-empty-string-edit-costs
Nov 18, 2026
Merged

tdebatty merged 1 commit into
tdebatty:masterfrom
PHJ2000:fix-empty-string-edit-costs

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Sum the configured insertion or deletion costs when either input is empty. Add regression tests for both directions and both overloads.

Validation: mvn -Dgpg.skip=true verify on Java 11 passed (28 tests, no failures, errors or skips). Artifact signing was skipped because no local GPG signing key is configured.

Fixes #68.

@tdebatty
tdebatty merged commit e3741f3 into tdebatty:master Nov 18, 2026
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.

WeightedLevenshtein ignores custom costs for empty inputs

2 participants