Browse files

some pre-defined malts

  • Loading branch information...
1 parent 7b10742 commit 9a6d514085d64b7077ea0e840ffdc3c52d27923c @codekitchen committed Mar 26, 2011
Showing with 498 additions and 0 deletions.
  1. +30 −0 Rakefile
  2. +468 −0 data/fermentables.xml
View
30 Rakefile
@@ -86,3 +86,33 @@ task :parse_styleguide, :file_name do |t, args|
end
puts Beerxml::Style.to_beerxml_collection(styles).to_s
end
+
+desc "Parse the HTML malt chart"
+task :parse_malt_chart do |t|
+ require 'open-uri'
+ require 'beerxml'
+ path = "http://www.homebrewtalk.com/wiki/index.php/Malts_Chart"
+ fermentables = []
+
+ root = Nokogiri::HTML(open(path)).root
+ root.css("table:first tr").each do |row|
+ tds = row.css("td")
+ next if tds.size < 5
+ f_name = tds[0].text.strip
+ f_yield = tds[2].text.to_f
+ f_srm = tds[3].text.to_f
+ f_mash = tds[4].text.strip == "X"
+
+ if f_yield > 0
+ fermentables << Beerxml::Fermentable.new({
+ :type => 'Grain',
+ :name => f_name,
+ :yield => f_yield,
+ :color => f_srm,
+ :recommend_mash => f_mash,
+ })
+ end
+ end
+
+ puts Beerxml::Fermentable.to_beerxml_collection(fermentables).to_s
+end
View
468 data/fermentables.xml
@@ -0,0 +1,468 @@
+(in /Users/bpalmer/Programming/beerxml)
+<?xml version="1.0"?>
+<FERMENTABLES>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>77.9</YIELD>
+ <COLOR>1.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>UK Pilsner 2-Row</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>1.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Malted Oats</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>2-Row Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>6-Row Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>77.9</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Belgian Pilsner 2-Row</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>German Pilsner 2-Row</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>82.2</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Lager Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Belgian Wheat</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>84.4</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>German Wheat</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>86.7</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>White Wheat</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>CaraPils</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>2.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Dextrine Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>58.4</YIELD>
+ <COLOR>3.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Acid Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>73.6</YIELD>
+ <COLOR>3.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Peated Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>82.2</YIELD>
+ <COLOR>3.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Maris Otter</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>4.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>English Mild</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>77.9</YIELD>
+ <COLOR>4.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Vienna Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>62.8</YIELD>
+ <COLOR>5.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Toasted Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>84.4</YIELD>
+ <COLOR>9.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Dark Wheat</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>9.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Munich Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>9.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Smoked Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>10.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 10</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>15.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Carastan 15</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>10.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Munich 10</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>20.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 20</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>20.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Munich 20</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>20.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>CaraRed</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>20.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Melanoidin Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>22.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Amber Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>73.6</YIELD>
+ <COLOR>22.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>CaraVienna</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>77.9</YIELD>
+ <COLOR>23.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Belgian Biscuit Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>23.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Brumalt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>80.0</YIELD>
+ <COLOR>25.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Gambrinus Honey Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>77.9</YIELD>
+ <COLOR>26.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Belgian Aromatic</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>73.6</YIELD>
+ <COLOR>28.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Victory Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>30.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 30</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>35.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Carastan 35</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>40.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 40</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>46.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Caramel Wheat Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>50.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Special Roast</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>56.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>CaraMunich</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>60.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 60</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>69.2</YIELD>
+ <COLOR>65.0</COLOR>
+ <RECOMMEND_MASH>true</RECOMMEND_MASH>
+ <NAME>Brown Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>80.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 80</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>90.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 90</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>120.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 120</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>130.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>CaraAroma</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>75.7</YIELD>
+ <COLOR>150.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Crystal 150</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>64.9</YIELD>
+ <COLOR>180.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Special B</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>67.1</YIELD>
+ <COLOR>250.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Chocolate Rye Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>54.1</YIELD>
+ <COLOR>300.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Roasted Barley</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>69.2</YIELD>
+ <COLOR>337.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Carafa I</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>73.6</YIELD>
+ <COLOR>350.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Chocolate Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>71.4</YIELD>
+ <COLOR>400.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Chocolate Wheat Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>69.2</YIELD>
+ <COLOR>412.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Carafa II</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>54.1</YIELD>
+ <COLOR>500.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Black Patent Malt</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>54.1</YIELD>
+ <COLOR>500.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Black Barley</NAME>
+ </FERMENTABLE>
+ <FERMENTABLE>
+ <TYPE>Grain</TYPE>
+ <ADD_AFTER_BOIL>false</ADD_AFTER_BOIL>
+ <YIELD>69.2</YIELD>
+ <COLOR>525.0</COLOR>
+ <RECOMMEND_MASH>false</RECOMMEND_MASH>
+ <NAME>Carafa III</NAME>
+ </FERMENTABLE>
+</FERMENTABLES>

0 comments on commit 9a6d514

Please sign in to comment.