Skip to content

Swap US and metric tablespoons/teaspoons #756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 17, 2025
Merged

Conversation

denehoffman
Copy link
Contributor

As discussed here, the units "tbsp" and "tsp" and their aliases often refer to the US customary unit in many recipes, even in those which use metric units for ingredient weights. It's further confusing because standard baking units like "cups" do not get converted to even numbers of tablespoons and teaspoons in the current implementation. This PR proposes switching the syntax such that the un-prefixed "tablespoon" and "teaspoon" refer to the US customary units while "metric_tablespoon" and "metric_teaspoon" (and their aliases) refer to the metric units:

  • tbsp -> metric_tbsp
  • tablespoon -> metric_tablespoon
  • tablespoons -> metric_tablespoons
  • tsp -> metric_tsp
  • teaspoon -> metric_teaspoon
  • teaspoons -> metric_teaspoons
  • US_tbsp -> tbsp
  • US_tablespoon -> tablespoon
  • US_tablespoons -> tablespoons
  • US_tsp -> tsp
  • US_teaspoon -> teaspoon
  • US_teaspoons -> teaspoons

@Goju-Ryu Goju-Ryu merged commit 7bf4c8c into sharkdp:master Jul 17, 2025
17 checks passed
@Goju-Ryu
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants