Encode a food description as a FoodEx2 code
encodeTurn one English food description (a food, drink, dish or meal) into a FoodEx2 code from the EFSA MTX catalogue: base term, facet descriptors for stated attributes the term does not imply, and labelled free text for what the code cannot express. Returns a short explanation of how the code was reached. Takes a few seconds for a direct name match, typically 15–25 seconds when the catalogue must be walked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | Yes | The food description, e.g. 'fried rice with chicken' (at most 300 characters) |