Substitutes for old materials
suggest_substitutesFinds the discontinued or scarce materials in a recipe and the modern ones that replace them, then suggests amounts that keep the unity formula as near as the materials allow, as the Glazecalc app does. report.closeness says how near the new unity formula comes to the old, oxide by oxide, as match_from_materials does. Test any suggestion before using it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The recipe's base materials (not colorants), at most 40 lines. | |
| region | No | Where the potter buys materials, so suggestions are ones sold there: US, UK, EU or AU. Leave it out for any. | |
| language | No | The language for any sentences in the answer, as a BCP 47 tag such as "en", "de" or "ja". Languages Glazecalc does not offer are answered in English. | |
| allowLead | No | Whether materials with lead may be suggested. Off by default. | |
| allowMore | No | Materials whose suggested cap to lift, as report.capped names them: raw clay is held to 20% of the batch (or the recipe's own share) where that costs the match little. |