Skip to content

feat(bindings): add use_common_names for ingredient list normalization#91

Merged
dubadub merged 1 commit intomainfrom
feat/bindings-use-common-names
Feb 24, 2026
Merged

feat(bindings): add use_common_names for ingredient list normalization#91
dubadub merged 1 commit intomainfrom
feat/bindings-use-common-names

Conversation

@dubadub
Copy link
Member

@dubadub dubadub commented Feb 24, 2026

Summary

  • Add use_common_names(list, aisle) exported function that replaces ingredient aliases with their canonical common names from aisle configuration
  • Add common_name_for() method on AisleConf for case-insensitive common name lookup
  • Build a common_names cache during parse_aisle_config for efficient lookups

Test plan

  • Unit test verifying alias resolution ("apples" → "apple gala", "eggs" → "egg")
  • Test passthrough for ingredients not in aisle config
  • All 13 existing bindings tests still pass

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 24, 2026

commit: 242ddae

Expose common name resolution from aisle configuration in the bindings,
allowing consumers to replace ingredient aliases (e.g. "apples") with
their canonical common names (e.g. "apple gala") after combining.
@dubadub dubadub force-pushed the feat/bindings-use-common-names branch from f7f44d7 to 242ddae Compare February 24, 2026 11:35
@dubadub dubadub merged commit 3f66190 into main Feb 24, 2026
6 checks passed
@dubadub dubadub deleted the feat/bindings-use-common-names branch February 24, 2026 11:37
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