<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,3 +11,4 @@ examples/test_data/accidents.dat
 examples/test_data/chess.dat
 examples/test_data/kosarak.dat
 examples/test_data/retail.dat
+ext/apriori/src/apriori</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -29,7 +29,7 @@ From Christian Borgelt's Apriori:http://www.borgelt.net/apriori.html documentati
   certain other items (bought certain other products, chose certain other options
   etc.).
 
-This ruby library provides a convenient way to use this algorithm from Ruby.
+This Ruby library provides a convenient way to use this algorithm from Ruby.
 
 Original Apriori C code by Christian Borgelt. 
 
@@ -67,6 +67,15 @@ This document is not an introduction to the Apriori algorithm. To find out more
 
   puts rules.join(&quot;\n&quot;)
 
+  # Results: 
+  # doritos &lt;- beer (33.3/2, 100.0)
+  # beer &lt;- doritos (50.0/3, 66.7)
+  # apple &lt;- doritos (50.0/3, 33.3)
+  # doritos &lt;- apple (66.7/4, 25.0)
+  # apple &lt;- cheese (50.0/3, 100.0)
+  # cheese &lt;- apple (66.7/4, 75.0)
+
+  # NOTE:
   # doritos &lt;- beer (33.3/2, 100.0)
   # means: 
   # * beer appears in 33.3% (2 total) of the transactions (the support)</diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,10 @@
 * make a ruby gem
 * deal with association rules that only have 1 item
 
+* newgem thoughts:
+  * Ability for README.txt and website to be the same thing
+  * syntax highlighting on website
+
 == 0.0.1 2008-09-02
 
 + Clean up documentation</diff>
      <filename>TODO.txt</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,8 @@
 namespace :apriori do
   desc &quot;Download the example data&quot;
   task :get_example_data do
-    puts &lt;&lt;-EOF &quot;Sorry! This isn't implemented in a portable way just yet.
+    puts &lt;&lt;-EOF 
+Sorry! This isn't implemented in a portable way just yet.
 If you're on a *nix system try: 
 
 curl -0 http://fimi.cs.helsinki.fi/data/kosarak.dat &gt; examples/test_data/kosarak.dat
@@ -9,9 +10,11 @@ curl -0 http://fimi.cs.helsinki.fi/data/retail.dat &gt; examples/test_data/retail.d
 
 Patches welcome! (http://github.com/jashmenn/apriori/tree/master)
 EOF
+
       # open(&quot;http://www.ruby-lang.org/&quot;) {|f|
       #       f.each_line {|line| p line}
       #         }
       # }
+
   end
 end</diff>
      <filename>tasks/apriori.rake</filename>
    </modified>
    <modified>
      <diff>@@ -33,81 +33,137 @@
     &lt;h1&gt;apriori&lt;/h1&gt;
     &lt;div id=&quot;version&quot; class=&quot;clickable&quot; onclick='document.location = &quot;http://rubyforge.org/projects/apriori&quot;; return false'&gt;
       &lt;p&gt;Get Version&lt;/p&gt;
-      &lt;a href=&quot;http://rubyforge.org/projects/apriori&quot; class=&quot;numbers&quot;&gt;0.0.1&lt;/a&gt;
+      &lt;a href=&quot;http://rubyforge.org/projects/apriori&quot; class=&quot;numbers&quot;&gt;0.1.0&lt;/a&gt;
     &lt;/div&gt;
-    &lt;h1&gt;&amp;#x2192; &amp;#8216;apriori&amp;#8217;&lt;/h1&gt;
+    &lt;h1&gt;&amp;#x2192; &amp;#8216;find item associations&amp;#8217;&lt;/h1&gt;
 
 
 	&lt;h2&gt;What&lt;/h2&gt;
 
 
-	&lt;h2&gt;Installing&lt;/h2&gt;
-
-
-	&lt;p&gt;&lt;pre class='syntax'&gt;&lt;span class=&quot;ident&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;apriori&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
+	&lt;p&gt;Ruby Apriori is a library to efficiently find item association rules within
+large sets of transactions. This library provides a Ruby interface to Christian
+Borgelt&amp;#8217;s C implementation of this algorithm.&lt;/p&gt;
 
 
-	&lt;h2&gt;The basics&lt;/h2&gt;
+	&lt;p&gt;From Christian Borgelt&amp;#8217;s Apriori:http://www.borgelt.net/apriori.html documentation:&lt;/p&gt;
 
 
-	&lt;h2&gt;Demonstration of usage&lt;/h2&gt;
+	&lt;blockquote&gt;
+		&lt;p&gt;Association rule induction is a powerful method for so-called market basket
+    analysis, which aims at finding regularities in the shopping behavior of
+    customers.&lt;/p&gt;
+	&lt;/blockquote&gt;
 
 
-	&lt;h2&gt;Forum&lt;/h2&gt;
+	&lt;blockquote&gt;
+		&lt;p&gt;With the induction of association rules one tries to find sets of
+    products that are frequently bought together, so that from the presence of
+    certain products in a shopping cart one can infer (with a high probability)
+    that certain other products are present.&lt;/p&gt;
+	&lt;/blockquote&gt;
 
 
-	&lt;p&gt;&lt;a href=&quot;http://groups.google.com/group/apriori&quot;&gt;http://groups.google.com/group/apriori&lt;/a&gt;&lt;/p&gt;
+	&lt;blockquote&gt;
+		&lt;p&gt;An association rule is a rule like &amp;#8220;If a customer buys wine and bread, he often
+    buys cheese, too.&amp;#8221;&lt;/p&gt;
+	&lt;/blockquote&gt;
 
 
-	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;TODO&lt;/span&gt; &amp;#8211; create Google Group &amp;#8211; apriori&lt;/p&gt;
+	&lt;blockquote&gt;
+		&lt;p&gt;An association rule states that if we pick a customer at random and find out
+    that he selected certain items (bought certain products, chose certain options
+    etc.), we can be confident, quantified by a percentage, that he also selected
+    certain other items (bought certain other products, chose certain other options
+    etc.).&lt;/p&gt;
+	&lt;/blockquote&gt;
 
 
-	&lt;h2&gt;How to submit patches&lt;/h2&gt;
+	&lt;p&gt;This Ruby library provides a convenient way to use this algorithm from Ruby.&lt;/p&gt;
 
 
-	&lt;p&gt;Read the &lt;a href=&quot;http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/&quot;&gt;8 steps for fixing other people&amp;#8217;s code&lt;/a&gt; and for section &lt;a href=&quot;http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups&quot;&gt;8b: Submit patch to Google Groups&lt;/a&gt;, use the Google Group above.&lt;/p&gt;
+	&lt;p&gt;Original Apriori C code by Christian Borgelt.&lt;/p&gt;
 
 
-	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;TODO&lt;/span&gt; &amp;#8211; pick &lt;span class=&quot;caps&quot;&gt;SVN&lt;/span&gt; or Git instructions&lt;/p&gt;
+	&lt;h2&gt;Installing&lt;/h2&gt;
 
 
-	&lt;p&gt;The trunk repository is &lt;code&gt;svn://rubyforge.org/var/svn/apriori/trunk&lt;/code&gt; for anonymous access.&lt;/p&gt;
+	&lt;p&gt;&lt;pre class='syntax'&gt;&lt;span class=&quot;ident&quot;&gt;sudo&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;gem&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;install&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;apriori&lt;/span&gt;&lt;/pre&gt;&lt;/p&gt;
 
 
-	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;OOOORRRR&lt;/span&gt;&lt;/p&gt;
+	&lt;h2&gt;The Algorithm:&lt;/h2&gt;
 
 
-	&lt;p&gt;You can fetch the source from either:&lt;/p&gt;
+	&lt;p&gt;This document is not an introduction to the Apriori algorithm. To find out more about Apriori see:&lt;/p&gt;
 
 
 	&lt;ul&gt;
-	&lt;li&gt;rubyforge: &lt;span class=&quot;caps&quot;&gt;MISSING IN ACTION&lt;/span&gt;&lt;/li&gt;
+	&lt;li&gt;http://www.borgelt.net/papers/cstat_02.pdf&lt;/li&gt;
+		&lt;li&gt;http://www.borgelt.net/papers/fimi_03.pdf&lt;/li&gt;
+		&lt;li&gt;http://www.borgelt.net/apriori.html&lt;/li&gt;
+		&lt;li&gt;http://en.wikipedia.org/wiki/Apriori_algorithm&lt;/li&gt;
 	&lt;/ul&gt;
 
 
-	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;TODO&lt;/span&gt; &amp;#8211; You can not created a RubyForge project, OR have not run &lt;code&gt;rubyforge config&lt;/code&gt;
-yet to refresh your local rubyforge data with this projects&amp;#8217; id information.&lt;/p&gt;
+	&lt;h2&gt;Demonstration of usage&lt;/h2&gt;
+
 
+	&lt;p&gt;&lt;pre class='syntax'&gt;
+  &lt;span class=&quot;ident&quot;&gt;require&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;apriori&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;'&lt;/span&gt;
 
-	&lt;p&gt;When you do this, this message will magically disappear!&lt;/p&gt;
+  &lt;span class=&quot;ident&quot;&gt;transactions&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;[&lt;/span&gt;  &lt;span class=&quot;punct&quot;&gt;%w{&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;beer doritos&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;},&lt;/span&gt;
+                    &lt;span class=&quot;punct&quot;&gt;%w{&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;apple cheese&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;},&lt;/span&gt; 
+                    &lt;span class=&quot;punct&quot;&gt;%w{&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;beer doritos&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;},&lt;/span&gt; 
+                    &lt;span class=&quot;punct&quot;&gt;%w{&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;apple cheese&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;},&lt;/span&gt; 
+                    &lt;span class=&quot;punct&quot;&gt;%w{&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;apple cheese&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;},&lt;/span&gt; 
+                    &lt;span class=&quot;punct&quot;&gt;%w{&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;apple doritos&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;]&lt;/span&gt;
 
+  &lt;span class=&quot;ident&quot;&gt;rules&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;constant&quot;&gt;Apriori&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;find_association_rules&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;transactions&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;,&lt;/span&gt;
+                            &lt;span class=&quot;symbol&quot;&gt;:min_items&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;number&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;,&lt;/span&gt;
+                            &lt;span class=&quot;symbol&quot;&gt;:max_items&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;number&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;,&lt;/span&gt;
+                            &lt;span class=&quot;symbol&quot;&gt;:min_support&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;number&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;,&lt;/span&gt; 
+                            &lt;span class=&quot;symbol&quot;&gt;:max_support&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;number&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;,&lt;/span&gt; 
+                            &lt;span class=&quot;symbol&quot;&gt;:min_confidence&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;number&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;)&lt;/span&gt;
 
-	&lt;p&gt;Or you can hack website/index.txt and make it all go away!!&lt;/p&gt;
+  &lt;span class=&quot;ident&quot;&gt;puts&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;rules&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&amp;quot;&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;&lt;span class=&quot;escape&quot;&gt;\n&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;&amp;quot;)&lt;/span&gt;
 
+  &lt;span class=&quot;comment&quot;&gt;# Results: &lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# doritos &amp;lt;- beer (33.3/2, 100.0)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# beer &amp;lt;- doritos (50.0/3, 66.7)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# apple &amp;lt;- doritos (50.0/3, 33.3)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# doritos &amp;lt;- apple (66.7/4, 25.0)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# apple &amp;lt;- cheese (50.0/3, 100.0)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# cheese &amp;lt;- apple (66.7/4, 75.0)&lt;/span&gt;
 
-	&lt;ul&gt;
-	&lt;li&gt;github: &lt;a href=&quot;http://github.com/jashmenn/apriori/tree/master&quot;&gt;http://github.com/jashmenn/apriori/tree/master&lt;/a&gt;&lt;/li&gt;
-	&lt;/ul&gt;
+  &lt;span class=&quot;comment&quot;&gt;# NOTE:&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# doritos &amp;lt;- beer (33.3/2, 100.0)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# means: &lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# * beer appears in 33.3% (2 total) of the transactions (the support)&lt;/span&gt;
+  &lt;span class=&quot;comment&quot;&gt;# * beer implies doritos 100% of the time (the confidence)&lt;/span&gt;
+&lt;/pre&gt;&lt;/p&gt;
 
 
-&lt;pre&gt;git clone git://github.com/jashmenn/apriori.git&lt;/pre&gt;
+	&lt;p&gt;See the &lt;ins&gt;examples&lt;/ins&gt; directory for more examples of usage.&lt;/p&gt;
+
+
+	&lt;h2&gt;Forum&lt;/h2&gt;
+
+
+	&lt;p&gt;&lt;a href=&quot;http://groups.google.com/group/apriori&quot;&gt;http://groups.google.com/group/apriori&lt;/a&gt;&lt;/p&gt;
+
+
+	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;TODO&lt;/span&gt; &amp;#8211; create Google Group &amp;#8211; apriori&lt;/p&gt;
+
+
+	&lt;h2&gt;How to submit patches&lt;/h2&gt;
+
 
 	&lt;ul&gt;
-	&lt;li&gt;gitorious: &lt;a href=&quot;git://gitorious.org/apriori/mainline.git&quot;&gt;git://gitorious.org/apriori/mainline.git&lt;/a&gt;&lt;/li&gt;
+	&lt;li&gt;github: &lt;a href=&quot;http://github.com/jashmenn/apriori/tree/master&quot;&gt;http://github.com/jashmenn/apriori/tree/master&lt;/a&gt;&lt;/li&gt;
 	&lt;/ul&gt;
 
 
-&lt;pre&gt;git clone git://gitorious.org/apriori/mainline.git&lt;/pre&gt;
+&lt;pre&gt;git clone git://github.com/jashmenn/apriori.git&lt;/pre&gt;
 
 	&lt;h3&gt;Build and test instructions&lt;/h3&gt;
 
@@ -119,7 +175,45 @@ rake install_gem&lt;/pre&gt;
 	&lt;h2&gt;License&lt;/h2&gt;
 
 
-	&lt;p&gt;This code is free to use under the terms of the &lt;span class=&quot;caps&quot;&gt;MIT&lt;/span&gt; license.&lt;/p&gt;
+	&lt;h3&gt;Apriori C code&lt;/h3&gt;
+
+
+	&lt;p&gt;Copyright&amp;#169; Christian Borgelt&lt;/p&gt;
+
+
+	&lt;p&gt;Modified and under the &lt;span class=&quot;caps&quot;&gt;LGPL&lt;/span&gt; license. 
+See &lt;pre&gt;ext/apriori/doc/copying&lt;/pre&gt; for details.&lt;/p&gt;
+
+
+	&lt;h3&gt;Ruby Apriori Extension&lt;/h3&gt;
+
+
+	&lt;p&gt;(The &lt;span class=&quot;caps&quot;&gt;MIT&lt;/span&gt; License)&lt;/p&gt;
+
+
+	&lt;p&gt;Copyright&amp;#169; 2008 Nate Murray&lt;/p&gt;
+
+
+	&lt;p&gt;Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+&amp;#8216;Software&amp;#8217;), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:&lt;/p&gt;
+
+
+	&lt;p&gt;The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.&lt;/p&gt;
+
+
+	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;THE SOFTWARE IS PROVIDED&lt;/span&gt; &amp;#8216;AS IS&amp;#8217;, &lt;span class=&quot;caps&quot;&gt;WITHOUT WARRANTY OF ANY KIND&lt;/span&gt;,
+&lt;span class=&quot;caps&quot;&gt;EXPRESS OR IMPLIED&lt;/span&gt;, INCLUDING &lt;span class=&quot;caps&quot;&gt;BUT NOT LIMITED TO THE WARRANTIES OF&lt;/span&gt;
+&lt;span class=&quot;caps&quot;&gt;MERCHANTABILITY&lt;/span&gt;, FITNESS &lt;span class=&quot;caps&quot;&gt;FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT&lt;/span&gt;.
+&lt;span class=&quot;caps&quot;&gt;IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY&lt;/span&gt;
+&lt;span class=&quot;caps&quot;&gt;CLAIM&lt;/span&gt;, DAMAGES &lt;span class=&quot;caps&quot;&gt;OR OTHER LIABILITY&lt;/span&gt;, WHETHER &lt;span class=&quot;caps&quot;&gt;IN AN ACTION OF CONTRACT&lt;/span&gt;,
+&lt;span class=&quot;caps&quot;&gt;TORT OR OTHERWISE&lt;/span&gt;, ARISING &lt;span class=&quot;caps&quot;&gt;FROM&lt;/span&gt;, OUT &lt;span class=&quot;caps&quot;&gt;OF OR IN CONNECTION WITH THE&lt;/span&gt;
+&lt;span class=&quot;caps&quot;&gt;SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE&lt;/span&gt;.&lt;/p&gt;
 
 
 	&lt;h2&gt;Contact&lt;/h2&gt;
@@ -127,7 +221,7 @@ rake install_gem&lt;/pre&gt;
 
 	&lt;p&gt;Comments are welcome. Send an email to &lt;a href=&quot;mailto:nate@natemurray.com&quot;&gt;Nate Murray&lt;/a&gt; via the &lt;a href=&quot;http://groups.google.com/group/apriori&quot;&gt;forum&lt;/a&gt;&lt;/p&gt;
     &lt;p class=&quot;coda&quot;&gt;
-      &lt;a href=&quot;nate@natemurray.com&quot;&gt;Nate Murray&lt;/a&gt;, 30th August 2008&lt;br&gt;
+      &lt;a href=&quot;nate@natemurray.com&quot;&gt;Nate Murray&lt;/a&gt;, 4th September 2008&lt;br&gt;
       Theme extended from &lt;a href=&quot;http://rb2js.rubyforge.org/&quot;&gt;Paul Battley&lt;/a&gt;
     &lt;/p&gt;
 &lt;/div&gt;</diff>
      <filename>website/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -1,79 +1,140 @@
 h1. apriori
 
-h1. &amp;#x2192; 'apriori'
+h1. &amp;#x2192; 'find item associations'
 
 
 h2. What
 
+Ruby Apriori is a library to efficiently find item association rules within
+large sets of transactions. This library provides a Ruby interface to Christian
+Borgelt's C implementation of this algorithm.
 
-h2. Installing
-
-&lt;pre syntax=&quot;ruby&quot;&gt;sudo gem install apriori&lt;/pre&gt;
-
-h2. The basics
+From Christian Borgelt's Apriori:http://www.borgelt.net/apriori.html documentation: 
 
+bq. Association rule induction is a powerful method for so-called market basket
+    analysis, which aims at finding regularities in the shopping behavior of
+    customers.
 
-h2. Demonstration of usage
-
+bq. With the induction of association rules one tries to find sets of
+    products that are frequently bought together, so that from the presence of
+    certain products in a shopping cart one can infer (with a high probability)
+    that certain other products are present. 
 
+bq. An association rule is a rule like &quot;If a customer buys wine and bread, he often
+    buys cheese, too.&quot;
 
-h2. Forum
-
-&quot;http://groups.google.com/group/apriori&quot;:http://groups.google.com/group/apriori
+bq. An association rule states that if we pick a customer at random and find out
+    that he selected certain items (bought certain products, chose certain options
+    etc.), we can be confident, quantified by a percentage, that he also selected
+    certain other items (bought certain other products, chose certain other options
+    etc.).
 
-TODO - create Google Group - apriori
+This Ruby library provides a convenient way to use this algorithm from Ruby.
 
-h2. How to submit patches
+Original Apriori C code by Christian Borgelt. 
 
-Read the &quot;8 steps for fixing other people's code&quot;:http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section &quot;8b: Submit patch to Google Groups&quot;:http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
+h2. Installing
 
-TODO - pick SVN or Git instructions
+&lt;pre syntax=&quot;ruby&quot;&gt;sudo gem install apriori&lt;/pre&gt;
 
-The trunk repository is &lt;code&gt;svn://rubyforge.org/var/svn/apriori/trunk&lt;/code&gt; for anonymous access.
+h2. The Algorithm:
 
-OOOORRRR
+This document is not an introduction to the Apriori algorithm. To find out more about Apriori see:
 
-You can fetch the source from either:
+* http://www.borgelt.net/papers/cstat_02.pdf
+* http://www.borgelt.net/papers/fimi_03.pdf
+* http://www.borgelt.net/apriori.html
+* http://en.wikipedia.org/wiki/Apriori_algorithm
 
-&lt;% if rubyforge_project_id %&gt;
+h2. Demonstration of usage
 
-* rubyforge: &quot;http://rubyforge.org/scm/?group_id=&lt;%= rubyforge_project_id %&gt;&quot;:http://rubyforge.org/scm/?group_id=&lt;%= rubyforge_project_id %&gt;
+&lt;pre syntax=&quot;ruby&quot;&gt;
+  require 'apriori'
+
+  transactions = [  %w{beer doritos},
+                    %w{apple cheese}, 
+                    %w{beer doritos}, 
+                    %w{apple cheese}, 
+                    %w{apple cheese}, 
+                    %w{apple doritos} ]
+
+  rules = Apriori.find_association_rules(transactions,
+                            :min_items =&gt; 2,
+                            :max_items =&gt; 5,
+                            :min_support =&gt; 1, 
+                            :max_support =&gt; 100, 
+                            :min_confidence =&gt; 20)
+
+  puts rules.join(&quot;\n&quot;)
+
+  # Results: 
+  # doritos &lt;- beer (33.3/2, 100.0)
+  # beer &lt;- doritos (50.0/3, 66.7)
+  # apple &lt;- doritos (50.0/3, 33.3)
+  # doritos &lt;- apple (66.7/4, 25.0)
+  # apple &lt;- cheese (50.0/3, 100.0)
+  # cheese &lt;- apple (66.7/4, 75.0)
+
+  # NOTE:
+  # doritos &lt;- beer (33.3/2, 100.0)
+  # means: 
+  # * beer appears in 33.3% (2 total) of the transactions (the support)
+  # * beer implies doritos 100% of the time (the confidence)
+&lt;/pre&gt;
+
+See the +examples+ directory for more examples of usage.
 
-&lt;pre&gt;git clone git://rubyforge.org/apriori.git&lt;/pre&gt;
+h2. Forum
 
-&lt;% else %&gt;
+&quot;http://groups.google.com/group/apriori&quot;:http://groups.google.com/group/apriori
 
-* rubyforge: MISSING IN ACTION
+TODO - create Google Group - apriori
 
-TODO - You can not created a RubyForge project, OR have not run &lt;code&gt;rubyforge config&lt;/code&gt;
-yet to refresh your local rubyforge data with this projects' id information.
+h2. How to submit patches
 
-When you do this, this message will magically disappear!
+* github: &quot;http://github.com/jashmenn/apriori/tree/master&quot;:http://github.com/jashmenn/apriori/tree/master
 
-Or you can hack website/index.txt and make it all go away!!
+&lt;pre&gt;git clone git://github.com/jashmenn/apriori.git&lt;/pre&gt;
 
-&lt;% end %&gt;
+h3. Build and test instructions
 
-* github: &quot;http://github.com/jashmenn/apriori/tree/master&quot;:http://github.com/jashmenn/apriori/tree/master
+&lt;pre&gt;cd apriori
+rake test
+rake install_gem&lt;/pre&gt;
 
-&lt;pre&gt;git clone git://github.com/jashmenn/apriori.git&lt;/pre&gt;
+h2. License
 
+h3. Apriori C code
 
+Copyright (c) Christian Borgelt
 
-* gitorious: &quot;git://gitorious.org/apriori/mainline.git&quot;:git://gitorious.org/apriori/mainline.git
+Modified and under the LGPL license. 
+See &lt;pre&gt;ext/apriori/doc/copying&lt;/pre&gt; for details.
 
-&lt;pre&gt;git clone git://gitorious.org/apriori/mainline.git&lt;/pre&gt;
+h3. Ruby Apriori Extension
 
-h3. Build and test instructions
+(The MIT License)
 
-&lt;pre&gt;cd apriori
-rake test
-rake install_gem&lt;/pre&gt;
+Copyright (c) 2008 Nate Murray
 
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
 
-h2. License
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
 
-This code is free to use under the terms of the MIT license. 
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
 h2. Contact
 </diff>
      <filename>website/index.txt</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>12ee61262885a7d9db2d8951e647e95a38e0a7de</id>
    </parent>
  </parents>
  <author>
    <name>Nate Murray</name>
    <email>nate@natemurray.com</email>
  </author>
  <url>http://github.com/jashmenn/apriori/commit/9cd905d0513fb9fabccac8f3573004b19b0efa3c</url>
  <id>9cd905d0513fb9fabccac8f3573004b19b0efa3c</id>
  <committed-date>2008-09-04T08:43:33-07:00</committed-date>
  <authored-date>2008-09-04T08:43:33-07:00</authored-date>
  <message>working on website</message>
  <tree>1247a7ba0f242361138a2a24df0e63a24a715519</tree>
  <committer>
    <name>Nate Murray</name>
    <email>nate@natemurray.com</email>
  </committer>
</commit>
