|
| 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