Liking cljdoc? Tell your friends :D

brew-bot.core

Beer recipe generators

Beer recipe generators
raw docstring

ingredients->cbf-recipe-templateclj/s

(ingredients->cbf-recipe-template selected-fermentables
                                  selected-hops
                                  selected-yeasts)

Given a common-beer-format normalized collection of selected-fermentables, selected-hops, and selected-yeasts, return a normalized template recipe.

Given a common-beer-format normalized collection of `selected-fermentables`, `selected-hops`, and `selected-yeasts`,
return a normalized template recipe.
sourceraw docstring

select-fermentablesclj/s

(select-fermentables)
(select-fermentables strategy)
(select-fermentables strategy opts)

Select common-beer-format fermentables. This function may optionally be called with a strategy and an options map as such: (select-fermentables) (select-fermentables :random) (select-fermentables :weighted {:count-cutoff 5})

The current strategies are:

  • :random : A fully random selection of ingredients
  • :weighted : Each ingredient selection is made with a weighted probability passed to the function

The following options are supported:

  • amount-cutoff : The maximum weight, in kilograms, of fermentable ingredients to select. Defaults to 2.26796 kilograms (5 pounds)
  • count-cutoff : The maximum number of unique ingredients to allow.
  • selection-weights : A map from ingredient names to probability weights. e.g. {:amber-liquid-extract 5.0 :biscuit-malt 15.0 ...}. Only applicable for the :weighted strategy
  • default-weight : A probability weight to fall back to for ingredients not specified in selection-weights. Only applicable for the :weighted strategy
  • include-adjuncts? : A boolean switch to include adjuncts in the list of selectable ingredients. Defaults to true
  • include-dry-extracts? : A boolean switch to include dry extracts in the list of selectable ingredients. Defaults to true
  • include-extracts? : A boolean switch to include extracts in the list of selectable ingredients. Defaults to true
  • include-grains? : A boolean switch to include grains in the list of selectable ingredients. Defaults to true
  • include-sugars? : A boolean switch to include sugars in the list of selectable ingredients. Defaults to true
Select common-beer-format fermentables.
This function may optionally be called with a strategy and an options map as such:
`(select-fermentables)`
`(select-fermentables :random)`
`(select-fermentables :weighted {:count-cutoff 5})`

The current strategies are:
- :random   : A fully random selection of ingredients
- :weighted : Each ingredient selection is made with a weighted probability passed to the function

The following options are supported:
- amount-cutoff         : The maximum weight, in kilograms, of fermentable ingredients to select. Defaults to 2.26796 kilograms (5 pounds)
- count-cutoff          : The maximum number of unique ingredients to allow.
- selection-weights     : A map from ingredient names to probability weights. e.g. {:amber-liquid-extract 5.0 :biscuit-malt 15.0 ...}. Only applicable for the :weighted strategy
- default-weight        : A probability weight to fall back to for ingredients not specified in selection-weights. Only applicable for the :weighted strategy
- include-adjuncts?     : A boolean switch to include adjuncts in the list of selectable ingredients. Defaults to true
- include-dry-extracts? : A boolean switch to include dry extracts in the list of selectable ingredients. Defaults to true
- include-extracts?     : A boolean switch to include extracts in the list of selectable ingredients. Defaults to true
- include-grains?       : A boolean switch to include grains in the list of selectable ingredients. Defaults to true
- include-sugars?       : A boolean switch to include sugars in the list of selectable ingredients. Defaults to true
sourceraw docstring

select-hopsclj/s

(select-hops)
(select-hops strategy)
(select-hops strategy opts)

Select common-beer-format hops. This function may optionally be called with a strategy and an options map as such: (select-hops) (select-hops :random) (select-hops :weighted {:count-cutoff 5 :timing-strategy :inferred})

The current strategies are:

  • :random : A fully random selection of ingredients
  • :weighted : Each ingredient selection is made with a weighted probability passed to the function

The following options are supported:

  • amount-cutoff : The maximum weight, in kilograms, of the hops to select. Defaults to 2.26796 kilograms (5 pounds)
  • count-cutoff : The maximum number of unique ingredients to allow.
  • selection-weights : A map from ingredient names to probability weights. e.g. {:galaxy 20.0 ...}. Only applicable for the :weighted strategy
  • default-weight : A probability weight to fall back to for ingredients not specified in selection-weights. Only applicable for the :weighted strategy
  • timing-strategy : A keyword from the set #{:random :weighted :inferred} to determine how hop timings and uses should be selected. Defaults to :random
  • use-weights : A map from hop use names to weights. e.g. {"boil" 60 ...}
  • time-weights : A map from hop addition times to weights. e.g. {120 60.0 45 15.0 ...}
  • include-aroma? : A boolean switch to include aromatic hops. Defaults to true
  • include-bittering? : A boolean switch to include bittering hops. Defaults to true
  • include-both? : A boolean switch to include dual-purpose hops. Defaults to true
Select common-beer-format hops.
This function may optionally be called with a strategy and an options map as such:
`(select-hops)`
`(select-hops :random)`
`(select-hops :weighted {:count-cutoff 5 :timing-strategy :inferred})`

The current strategies are:
- :random   : A fully random selection of ingredients
- :weighted : Each ingredient selection is made with a weighted probability passed to the function

The following options are supported:
- amount-cutoff      : The maximum weight, in kilograms, of the hops to select. Defaults to 2.26796 kilograms (5 pounds)
- count-cutoff       : The maximum number of unique ingredients to allow.
- selection-weights  : A map from ingredient names to probability weights. e.g. {:galaxy 20.0 ...}. Only applicable for the :weighted strategy
- default-weight     : A probability weight to fall back to for ingredients not specified in selection-weights. Only applicable for the :weighted strategy
- timing-strategy    : A keyword from the set #{:random :weighted :inferred} to determine how hop timings and uses should be selected. Defaults to :random
- use-weights        : A map from hop use names to weights. e.g. {"boil" 60 ...}
- time-weights       : A map from hop addition times to weights. e.g. {120 60.0 45 15.0 ...}
- include-aroma?     : A boolean switch to include aromatic hops. Defaults to true
- include-bittering? : A boolean switch to include bittering hops. Defaults to true
- include-both?      : A boolean switch to include dual-purpose hops. Defaults to true
sourceraw docstring

select-ingredientsclj/s

(select-ingredients ingredients)
(select-ingredients ingredients strategy)
(select-ingredients ingredients strategy options)
source

select-yeastsclj/s

(select-yeasts)
(select-yeasts strategy)
(select-yeasts strategy opts)

Select common-beer-format yeasts. This function may optionally be called with a strategy and an options map as such: (select-yeasts) (select-yeasts :random) (select-yeasts :weighted {:count-cutoff 5})

The current strategies are:

  • :random : A fully random selection of ingredients
  • :weighted : Each ingredient selection is made with a weighted probability passed to the function

The following options are supported:

  • amount-cutoff : The maximum weight, in kilograms, of the yeast to select. Defaults to 2.26796 kilograms (5 pounds)
  • count-cutoff : The maximum number of unique ingredients to allow.
  • selection-weights : A map from ingredient names to probability weights. e.g. {:s-04-safale-english-ale 20.0 ...}. Only applicable for the :weighted strategy
  • default-weight : A probability weight to fall back to for ingredients not specified in selection-weights. Only applicable for the :weighted strategy
  • include-brewtek? : A boolean switch to include yeasts from Brewtek. Defaults to true
  • include-dcl-fermentis? : A boolean switch to include yeasts from DCL Fermentis. Defaults to true
  • include-lallemand? : A boolean switch to include yeasts from Lallemand. Defaults to true
  • include-white-labs? : A boolean switch to include yeasts from White Labs. Defaults to true
  • include-wyeast? : A boolean switch to include yeasts from Wyeast. Defaults to true
Select common-beer-format yeasts.
This function may optionally be called with a strategy and an options map as such:
`(select-yeasts)`
`(select-yeasts :random)`
`(select-yeasts :weighted {:count-cutoff 5})`

The current strategies are:
- :random   : A fully random selection of ingredients
- :weighted : Each ingredient selection is made with a weighted probability passed to the function

The following options are supported:
- amount-cutoff          : The maximum weight, in kilograms, of the yeast to select. Defaults to 2.26796 kilograms (5 pounds)
- count-cutoff           : The maximum number of unique ingredients to allow.
- selection-weights      : A map from ingredient names to probability weights. e.g. {:s-04-safale-english-ale 20.0 ...}. Only applicable for the :weighted strategy
- default-weight         : A probability weight to fall back to for ingredients not specified in selection-weights. Only applicable for the :weighted strategy
- include-brewtek?       : A boolean switch to include yeasts from Brewtek. Defaults to true
- include-dcl-fermentis? : A boolean switch to include yeasts from DCL Fermentis. Defaults to true
- include-lallemand?     : A boolean switch to include yeasts from Lallemand. Defaults to true
- include-white-labs?    : A boolean switch to include yeasts from White Labs. Defaults to true
- include-wyeast?        : A boolean switch to include yeasts from Wyeast. Defaults to true
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close