Skip to content

Commit f3dd906

Browse files
authored
Merge pull request #14 from isrl-research/add/core-extension-log
Add/core extension log for metadata core/extension + slightly revise tone for other systems log
2 parents 3b3bef3 + fa79c02 commit f3dd906

2 files changed

Lines changed: 108 additions & 5 deletions

logs/2026-03-log-t2-how_international_system_regulate_ingredient_names.qmd

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ Many countries maintain official "Ingredient Dictionaries" or "Common Name Lists
1717

1818
While National Nutrition Databases (like the USDA's FoodData Central) focus on what's inside the food (vitamins, minerals), Regulatory Identity Lists — often part of a country's food law — define what the ingredient must be called.
1919

20-
Here are the most prominent official systems used to make ingredient identity consistent.
21-
2220
---
2321

2422
## Canada: The "Common Names" List
2523

2624
Canada is perhaps the most explicit. The Canadian Food Inspection Agency (CFIA) maintains a document called "Common Names for Ingredients and Components." It acts as a mandatory thesaurus for food labels.
2725

28-
**The goal:** To prevent vague or deceptive labeling.
26+
**The goal:** To ensure ingredient groupings and generic names are applied consistently.
2927

3028
**Example:** If a manufacturer uses a mix of butter, cream, and skim milk, they are legally allowed — and sometimes required — to group them under the official common name "Milk Ingredients" to simplify the label for the consumer.
3129

@@ -67,10 +65,10 @@ FSANZ maintains Schedules within their Food Standards Code that act as the sourc
6765

6866
## Why these lists exist
6967

70-
Without official lists, ingredient identity would be inconsistent. These databases address three structural problems:
68+
Without official lists, ingredient identity would be a mess. These databases address three structural problems:
7169

7270
- **Allergen transparency:** Ensuring that "Casein" is clearly identified as a milk derivative.
73-
- **Fraud prevention:** Preventing a manufacturer from calling "High Fructose Corn Syrup" simply "Natural Sweetener."
71+
- **Name standardisation:** Establishing which name a substance must carry — so "High Fructose Corn Syrup," for example, appears under its regulated name and not under an informal descriptor.
7472
- **Data interoperability:** Allowing systems to understand that "Zucker," "Sucre," and "Sugar" all refer to the same substance.
7573

7674
---
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
---
2+
title: "Core and Extension: A Design Principle for IFID Taxonomy"
3+
description: "IFID taxonomy distinguishes between a fixed core and an open extension surface. The core holds what every use requires; the extension surface lets downstream users attach their own metadata without altering it."
4+
date: 2026-04-05
5+
author:
6+
- name: Lalitha A R
7+
affiliation: iSRL
8+
orcid: 0009-0001-7466-3531
9+
email: lalithaar.research@gmail.com
10+
corresponding: true
11+
categories: [design-principles, taxonomy, ifid]
12+
tags: [core-extension, ifid, taxonomy-design]
13+
status: draft
14+
license: "CC BY 4.0"
15+
citation: true
16+
---
17+
18+
## The principle
19+
20+
IFID taxonomy has two layers: a fixed core and an open extension surface.
21+
22+
The core holds what every use of the taxonomy requires — the minimum shared
23+
vocabulary that makes ingredient identity consistent across labels, datasets,
24+
and analyses. The extension surface lets anyone attach additional metadata
25+
suited to their specific question, without altering the core.
26+
27+
## What this looks like in practice
28+
29+
A diabetes foundation needs to know which ingredients contribute free sugars.
30+
A hospital canteen needs to flag high-sodium items. A sports nutrition brand
31+
needs to track protein-to-carbohydrate ratios. None of these needs are in
32+
scope for IFID, but all of them depend on stable ingredient identity before
33+
they can attach their own metadata.
34+
35+
The core gives them that stable identity. They bring their own layer on top.
36+
37+
## What belongs in the core
38+
39+
The core covers what is legally required or necessary for ingredient identity
40+
to hold at all:
41+
42+
- Ingredient identity (canonical name, variant strings, source)
43+
- Legal declarations required under FSSAI (allergen status, veg/non-veg
44+
marking, source qualifiers where mandated)
45+
- Classification fields that the taxonomy uses to distinguish one ingredient
46+
from another
47+
48+
What specific values, tags, or categories the lab recognises within each of
49+
these fields — for example, which tags are valid under veg/non-veg declarations
50+
— is a separate question. That will be documented as each category is analysed.
51+
52+
## What belongs in extensions
53+
54+
Extensions are metadata that a specific use case adds to the core. They are not
55+
part of IFID and do not need to be. They only need to be compatible with it —
56+
attachable to a stable ingredient identity without redefining what that identity is.
57+
58+
Examples of extension metadata a downstream user might add:
59+
60+
- Glycaemic index values (diabetes nutrition)
61+
- Sodium content per standard serving (clinical dietary programmes)
62+
- Fermentation pathway (food technology research)
63+
- Carbon intensity estimates (sustainability reporting)
64+
65+
IFID does not maintain these. The design only requires that the core is stable
66+
enough for others to attach to it.
67+
68+
## Why the core must be bounded
69+
70+
If the core tries to account for every possible use, it becomes unusable for
71+
any of them. A taxonomy that carries clinical, environmental, religious, and
72+
sports-nutrition metadata simultaneously has no coherent identity.
73+
74+
The boundary also protects downstream users. If the extension surface is open
75+
and documented, a research group can add their layer without waiting for IFID
76+
to expand. The taxonomy does not become their bottleneck.
77+
78+
## What this log does not settle
79+
80+
Which fields belong in the core and which are extensions is not determined here.
81+
That requires working through each category — veg/non-veg declarations, allergen
82+
status, source qualifiers — and establishing what the legal minimum requires and
83+
what goes beyond it. Those analyses will be recorded as separate logs.
84+
85+
This log records only the design principle: the taxonomy distinguishes between
86+
core fields and extension fields, and the extension surface is open by design.
87+
88+
::: {.column-margin}
89+
**A parallel from web development**
90+
91+
Web frameworks separate built-in features from optional add-ons using the same
92+
pattern. React ships with component rendering and state management; everything
93+
else — routing, form handling, data fetching — is a plugin you bring in.
94+
Django's ORM and URL routing are core; authentication backends, payment
95+
integrations, and admin themes are installed as apps. WordPress's post/page/taxonomy
96+
model is core; anything else is a plugin.
97+
98+
The shared logic: the framework defines a stable object (a component, a model,
99+
a post) and leaves the surface open for extension. Downstream developers attach
100+
to that surface without modifying the object itself.
101+
102+
IFID follows the same pattern. The ingredient record is the stable object.
103+
The extension surface is open. Third parties attach their metadata to the record
104+
— they do not redefine what the record is.
105+
:::

0 commit comments

Comments
 (0)