Find the additives named on a label
analyze_labelFind the additives named on a label (same as HTTP POST /v1/labels/analyze). Splits the additive section into tokens and returns, per token, the substances it resolves to (SubstanceSummary: facts on their own axis), plus known interactions between the detected substances.
Cutting the additive section out of the label is the caller's job; sending the whole ingredient section is allowed. Matching is exact against the alias vocabulary in scope: a token with matches: [] is unresolved, which (open world) does not distinguish "not an additive" from "an additive not known here".
axis and lang must be one of the accepted pairs: JP+ja, US+en, EU+nl, EU+fr, EU+de, EU+es, EU+pl, EU+el, EU+bg.
Not a safety judgement: every record is a draft and needs verification.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | Yes | Regulatory axis the label or name belongs to: JP, EU or US. | |
| lang | Yes | Language of the name or label text (ISO 639-1), e.g. ja, en, de, fr. | |
| text | Yes | The additive (or whole ingredient) section of one label: one raw string (split at 、 , , / for Japanese and , ; . : for Latin script, at bracket depth zero; whitespace is not a separator), or an array of already-split items (tokens[i] corresponds to item i). |