Jeff Kaufman's Writing

Recipe Rescaler

Brief

The recipe rescaler on Jeff Kaufman's website (added 2026-06-28) scales ingredient quantities using simple rules, converting teaspoons to tablespoons to cups, handling numeric ranges like 3-4 cups and fractions (half of 1 1/4 C → 5/8 C). Implemented quickly with an LLM, it omits complex parenthetical alternatives and bolds scaled values for visibility.

Why it matters

On 2026-06-28 Jeff Kaufman added a recipe rescaler to his website that converts teaspoons to tablespoons to cups, handles numeric ranges like 3-4 cups, and correctly computes fractions (example: half of 1 1/4 C → 5/8 C).

Key details

  • Implemented quickly with help from an LLM, the tool is intentionally narrow: it ignores complex parenthetical alternatives (e.g., scales the '2 eggs' but not '2T flax and 5T water') and bolds scaled values so unscaled text stands out.
Source evidence

I keep my recipies on my
website , and like most of my website it grew over time instead of
being designed. A couple years ago I added some progressive
enhancement that puts checkboxes on
the ingredients , and today I added a rescaler: Here's tripling it: This is another project, like adding transposition to my solstice
songbook , where I wouldn't have put in the time if I couldn't
delegate to an LLM. It went very quickly, and the code seems reasonable. Implementation notes: As you go up and down it converts teaspoons to tablespoons to
cups. Yes, I still cook volumetrically. It handles numeric ranges, like "3-4 cups". It handles fractions: half of 1 1/4 C is 5/8 C. It doesn't handle everything. I wanted something simple and
reviewable that handles most cases, instead of trying to make
something exaustive (that would then have weird bugs). This means
with complex items like "2 eggs (or 2T flax and 5T water)" only the "2
eggs" is scaled. To make these failures graceful, all scaled values
are bolded, so unscaled values stick out visually. Comment via: facebook , lesswrong , mastodon , bluesky