// Small helpers shared by the draft importers for European national tables. // Calsa is for adults (C-23): infant and toddler foods are not part of the base. Table-specific group // codes are used where a table has them; this name check is the fallback for tables without a clean group. // "baby corn" and "baby leaf" are adult foods, so only "baby food" counts. const infantName = /\b(baby food|infant|toddler|follow-on|follow-up|growing-up)\b|\b(gruel|porridge) for children\b/i; export const isInfantFood = (name: string) => infantName.test(name); // Sizes are bounded because the input is an untrusted download. export const maxJsonBytes = 400 * 1024 * 1024;