Skip to content

fix: tighten substitute replacement-map generation#47

Merged
lipikaramaswamy merged 3 commits into
mainfrom
lipikaramaswamy/fix/substitute-workflow-tightening
Mar 16, 2026
Merged

fix: tighten substitute replacement-map generation#47
lipikaramaswamy merged 3 commits into
mainfrom
lipikaramaswamy/fix/substitute-workflow-tightening

Conversation

@lipikaramaswamy
Copy link
Copy Markdown
Collaborator

Summary

This fixes a substitute() inconsistency where rows could show unchanged replaced text alongside a hallucinated non-empty replacement map. We tighten the substitute() workflow so replacement maps are only generated for rows with actual entities to replace. This prevents bogus replacement-map entries from appearing when _entities_by_value is empty and keeps substitute output consistent with the detected entity set.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactoring

Testing

  • Tests pass locally
  • Added/updated tests for changes

@lipikaramaswamy lipikaramaswamy requested a review from a team as a code owner March 16, 2026 07:56
@lipikaramaswamy lipikaramaswamy merged commit 029a9c8 into main Mar 16, 2026
5 checks passed
@lipikaramaswamy lipikaramaswamy deleted the lipikaramaswamy/fix/substitute-workflow-tightening branch March 16, 2026 19:34
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.

2 participants