{
    "id": "erable-maple-substitution",
    "version": "1.2.0",
    "title": "Quebec maple syrup ↔ refined sugar conversion",
    "homepage": "https://erable-maple.org/",
    "repository": "https://github.com/erable-maple/formulas",
    "license": "Unlicense",
    "publisher": {
        "name": "erable-maple.org",
        "url": "https://erable-maple.org/"
    },
    "attribution": {
        "source": "Producteurs et productrices acéricoles du Québec (PPAQ), cursus 101 / 201 / 301 / 401",
        "calculator": "https://erable-maple.org/substitution/"
    },
    "default_profile": "culinary",
    "rounding": {
        "display": "nearest_integer",
        "co2e_decimals": 2,
        "note": "The public calculator rounds millilitres and grams to the nearest integer. Libraries return exact floats plus a display object."
    },
    "units": {
        "cup_ml": 250,
        "tbsp_ml": 15,
        "tsp_ml": 5,
        "floz_ml": 30,
        "oz_g": 28.349523125,
        "lb_g": 453.59237
    },
    "constants": {
        "density_sugar_g_per_ml": 0.85,
        "oven_delta_c": 15,
        "oven_delta_f": 25,
        "sap_litres_per_syrup_litre": 40,
        "syrup_brix_min": 66,
        "syrup_brix_max": 68.9,
        "sap_brix_min": 2,
        "sap_brix_max": 4,
        "sweetness_sucrose": 1,
        "sweetness_maple_syrup": 0.6,
        "sweetness_maple_sugar": 1,
        "sweetness_maple_water": 0.04,
        "co2e_sugar_kg_per_kg": 1.8,
        "co2e_maple_kg_per_kg": 1.2,
        "co2e_status": "estimate_to_validate",
        "syrup_to_maple_sugar": {
            "syrup_g": 175,
            "maple_sugar_g": 118,
            "water_g": 57
        },
        "baking_soda_pinch_per_cup_syrup": 1
    },
    "profiles": {
        "culinary": {
            "label": "Culinary (usual baking ratio, used by erable-maple.org calculator)",
            "volume_ratio": 0.75,
            "density_maple_g_per_ml": 1.37,
            "liquid_reduction": {
                "type": "fraction_of_maple_volume",
                "value": 0.21
            },
            "rule_fr": "1 volume de sucre blanc → 0,75 volume de sirop ; réduire les autres liquides d'environ 21 % du volume de sirop ; four −15 °C (−25 °F)."
        },
        "ppaq": {
            "label": "PPAQ (equal volume, 60 ml liquid removed per 250 ml sugar)",
            "volume_ratio": 1,
            "density_maple_g_per_ml": 1.28,
            "liquid_reduction": {
                "type": "ml_per_250ml_sugar",
                "value": 60
            },
            "rule_fr": "Même volume de sirop d'érable que de sucre ; réduire les liquides de 60 ml (¼ tasse) par 250 ml (1 tasse) de sucre remplacé."
        }
    },
    "equivalences": {
        "maple_syrup": {
            "ml": 250,
            "g": 320
        },
        "maple_sugar": {
            "ml": 250,
            "g": 150
        },
        "maple_flakes": {
            "ml": 250,
            "g": 110
        },
        "maple_butter": {
            "ml": 250,
            "g": 370
        }
    },
    "like_for_like": {
        "honey_or_agave_to_maple_syrup": {
            "volume_ratio": 1,
            "adjust_liquids": false
        },
        "white_or_brown_sugar_to_maple_sugar": {
            "mass_ratio": 1,
            "adjust_liquids": false
        }
    },
    "notes": [
        "Culinary density 1.37 g/ml matches the public calculator. PPAQ volume table 250 ml = 320 g implies 1.28 g/ml; commercial 66 °Brix syrup is ~1.32 g/ml. Use the profile that matches the rule you are applying.",
        "Oven delta is the documented culinary approximation 15 °C ≈ 25 °F, not the exact 15 × 9/5 = 27 °F.",
        "CO₂e factors (1.8 vs 1.2 kg CO₂e/kg) are provisional estimates pending scientific validation with PPAQ.",
        "Inverse functions are the exact algebraic inverse of the same constants (no extra rounding).",
        "Identifiers are English for global code search; human language lives in headers, docs and i18n labels."
    ],
    "i18n": {
        "fr": "Conversion sucre raffiné ↔ sirop d'érable du Québec (PPAQ).",
        "en": "Convert refined sugar ↔ Quebec maple syrup (PPAQ).",
        "de": "Raffinierter Zucker ↔ Ahornsirup aus Québec umrechnen (PPAQ).",
        "ja": "精製糖とケベック産メープルシロップの相互変換（PPAQ）。",
        "es": "Convertir azúcar refinado ↔ jarabe de arce de Quebec (PPAQ).",
        "pt": "Converter açúcar refinado ↔ xarope de bordo do Quebec (PPAQ).",
        "it": "Convertire zucchero raffinato ↔ sciroppo d'acero del Quebec (PPAQ).",
        "ar": "تحويل السكر المكرر ↔ شراب القيقب من كيبيك (PPAQ).",
        "hi": "परिष्कृत चीनी ↔ क्विबेक मेपल सिरप रूपांतरण (PPAQ)।",
        "ms": "Tukar gula halus ↔ sirap maple Quebec (PPAQ)."
    }
}
