Description
Compare label token and language with source values exactly; serialize source, source language and token as a provenance key.
Food-safety records connect lots, samples, tests, labels and handling events. Consistent identifiers and reconciled quantities support record review, but do not establish safe food, complete traceability or valid regulatory approval.
Compare label token and language with source values exactly; serialize source, source language and token as a provenance key.
When to use this tool
Use Food Allergen Label Token Source Pair when you need a specified food-handling record or traceability diagnostic.
How to use the tool and how it works
- Enter token, language, source, sourceToken, sourceLanguage. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read tokenMatches, languageMatches, provenanceKey. Inspect tokenMatches, languageMatches before interpreting the associated values.
Compare label token and language with source values exactly; serialize source, source language and token as a provenance key.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| token | Token | Required. Text; maximum UTF-16 length 8192. |
| language | Language | Required. Text; maximum UTF-16 length 8192. |
| source | Caller-supplied source label; authenticity is not verified. | Required. Text; maximum UTF-16 length 8192. |
| sourceToken | Source Token | Required. Text; maximum UTF-16 length 8192. |
| sourceLanguage | Source Language | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| tokenMatches | Token Matches | Required. Boolean. |
| languageMatches | Language Matches | Required. Boolean. |
| provenanceKey | JSON-array record key, not authenticated provenance. | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"token": "milk",
"language": "en",
"source": "label-A",
"sourceToken": "milk",
"sourceLanguage": "en"
},
"output": {
"tokenMatches": true,
"languageMatches": true,
"provenanceKey": "[\"label-A\",\"en\",\"milk\"]"
}
} Limitations and assumptions
- No translation, allergen taxonomy, source authenticity or ingredient completeness is checked. A metadata match does not establish absence of allergens or safety to consume.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Review the complete controlled records, actual product condition and applicable validated procedures. Authenticate sources and approvals rather than treating one matching token or balance as a safety verdict.
References
Similar or alternative tools
- Allergen Source Label Count
Count requested-label occurrences and distinct matching source IDs separately.
- Food Lot Identity Gap
Count literal lot mismatches, product mismatches and records matching both.