Skip to content

Automatic Flavour profile display #615

Description

@ljouhault

Checklist

  • I have checked that this feature is not already requested
  • I have checked that this feature does not already exist in the project

Is your feature request related to a problem? Please describe.
The server already support ingredients profile ( % acidity, %sweetness, ABV ) but does nothing with it.

Describe the solution you'd like
Under each recipe, add a flavor profile graph of the cocktail (either 2-3 bar range visualizer, or a single 2d flavor profile map).

Additional context
This is not as easy as displaying the total % acidity, sweetness and alcohol, as the different component balance each other (perceived acidity depends on real acidity, but also on sweetness).
One would need to calculate:

  1. the sweet to sour balance : $$\frac{Sweet}{Acid + \epsilon}$$
  2. the Acid/Sugar Masking Index : $$\ln(1 + Acid) \cdot \left( \frac{1}{1 + 0.04 \cdot Sweet} \right)$$
  3. "Perceived Booziness" : $$ABV \cdot \exp\left( - \big( 0.025 \cdot Sweet + 0.05 \cdot Acid \big) \right)$$

and maybe other stuff too (even the formulas are guidelines and not ground trough, i'm far from an expert).

Metadata

Metadata

Assignees

No one assigned

    Labels

    featNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions