<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,9 +19,7 @@ This software is made available under the MIT License, see LICENSE
 
 == SYNOPSIS:
 
- tagger = Brill::Tagger.new( File.join(File.dirname(__FILE__),&quot;LEXICON&quot;),
-                             File.join(File.dirname(__FILE__),&quot;LEXICALRULEFILE&quot;),
-                             File.join(File.dirname(__FILE__),&quot;CONTEXTUALRULEFILE&quot;) )
+ tagger = Brill::Tagger.new
 
 == INSTALL:
 </diff>
      <filename>README.txt</filename>
    </modified>
    <modified>
      <diff>@@ -18,10 +18,12 @@ module Brill
 
     # given a body of text return a list of adjectives
     def adjectives( text )
+      tag(text).select{|t| t.last == 'JJ' }
     end
 
     # given a body of text return a list of nouns
     def nouns( text )
+      tag(text).select{|t| t.last.match(/NN/) }
     end
 
     # returns similar results as tag, but further reduced by only selecting nouns
@@ -92,6 +94,7 @@ module Brill
     # returns an array like [[token,tag],[token,tag]...[token,tag]] 
     #
     def tag( text )
+      # XXX: the list of contractions is much larger then this... find'em
       text = text.gsub(/dont/,&quot;don't&quot;).gsub(/Dont/,&quot;Don't&quot;)
       text = text.gsub(/youre/,&quot;you're&quot;)
       tokens = Brill::Tagger.tokenize( text )</diff>
      <filename>lib/brill/tagger.rb</filename>
    </modified>
    <modified>
      <diff>@@ -139,6 +139,11 @@ TMZ.com: Britney celebrated getting overnights with her kids by going on a wild
     puts results.inspect
   end
 
+  def test_adjectives
+    results = tagger.adjectives(&quot;So happy i get to bring my baby boy home tomorrow. Hospital tv is horrible, ten channels no one watches&quot;)
+    assert_equal [[&quot;happy&quot;, &quot;JJ&quot;], [&quot;horrible&quot;, &quot;JJ&quot;]], results
+  end
+
 private
   def tagger
     $rtagger</diff>
      <filename>test/test_rule_tagger.rb</filename>
    </modified>
    <modified>
      <diff>@@ -175,9 +175,7 @@ gem install rbtagger
 &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;rbtagger&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;'&lt;/span&gt;
 
-&lt;span class=&quot;ident&quot;&gt;tagger&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;constant&quot;&gt;Brill&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;Tagger&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;constant&quot;&gt;File&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;(&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;dirname&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;__FILE__&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;),&amp;quot;&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;LEXICON&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;&amp;quot;),&lt;/span&gt;
-                            &lt;span class=&quot;constant&quot;&gt;File&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;(&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;dirname&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;__FILE__&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;),&amp;quot;&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;LEXICALRULEFILE&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;&amp;quot;),&lt;/span&gt;
-                            &lt;span class=&quot;constant&quot;&gt;File&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;(&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;dirname&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;__FILE__&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;),&amp;quot;&lt;/span&gt;&lt;span class=&quot;string&quot;&gt;CONTEXTUALRULEFILE&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;&amp;quot;)&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;)&lt;/span&gt;
+&lt;span class=&quot;ident&quot;&gt;tagger&lt;/span&gt; &lt;span class=&quot;punct&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;constant&quot;&gt;Brill&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;constant&quot;&gt;Tagger&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;new&lt;/span&gt;
 &lt;span class=&quot;ident&quot;&gt;docs&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;each&lt;/span&gt; &lt;span class=&quot;keyword&quot;&gt;do&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;doc&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;|&lt;/span&gt;
   &lt;span class=&quot;ident&quot;&gt;tagger&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;tag&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;constant&quot;&gt;File&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;ident&quot;&gt;read&lt;/span&gt;&lt;span class=&quot;punct&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;ident&quot;&gt;doc&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;keyword&quot;&gt;end&lt;/span&gt;
@@ -210,7 +208,7 @@ rake install_gem&lt;/pre&gt;
 &lt;h2&gt;Contact&lt;/h2&gt;
 &lt;p&gt;Comments are welcome. Send an email to &lt;a href=&quot;mailto:rb-brill-tagger@googlegroups.com&quot;&gt;Todd A. Fisher&lt;/a&gt; email via the &lt;a href=&quot;http://groups.google.com/group/rb-brill-tagger&quot;&gt;forum&lt;/a&gt;&lt;/p&gt;
     &lt;p class=&quot;coda&quot;&gt;
-      &lt;a href=&quot;http://xullicious.blogspot.com/&quot;&gt;Todd A. Fisher&lt;/a&gt;, 23rd June 2008&lt;br&gt;
+      &lt;a href=&quot;http://xullicious.blogspot.com/&quot;&gt;Todd A. Fisher&lt;/a&gt;, 21st May 2009&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>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7968881972ddbc5d285306cd1e1a88a5c2e50fb6</id>
    </parent>
  </parents>
  <author>
    <name>Todd Fisher</name>
    <email>todd.fisher@gmail.com</email>
  </author>
  <url>http://github.com/taf2/rb-brill-tagger/commit/7194f3f5736832feca66432d799ec830a8d52dc1</url>
  <id>7194f3f5736832feca66432d799ec830a8d52dc1</id>
  <committed-date>2009-05-21T19:41:11-07:00</committed-date>
  <authored-date>2009-05-21T19:41:11-07:00</authored-date>
  <message>easy extract nouns and adjectives</message>
  <tree>2cefc777f95a1ece6820d1c59491123cc01ffbf1</tree>
  <committer>
    <name>Todd Fisher</name>
    <email>todd.fisher@gmail.com</email>
  </committer>
</commit>
