Skip to content

Apply insertion and deletion weights to empty strings - #69

Open
PHJ2000 wants to merge 1 commit into
tdebatty:masterfrom
PHJ2000:fix-empty-string-edit-costs
Open

PHJ2000 wants to merge 1 commit into
tdebatty:masterfrom
PHJ2000:fix-empty-string-edit-costs

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 5, 2026

Copy link
Copy Markdown

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.

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

1 participant