<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -100,12 +100,12 @@ class Name
   end
   
   def Name.extract_last_name_at_end(names)
-    # Hack to deal with a specific person who has two last names that aren't hyphenated
-    if names.size &gt;= 2 &amp;&amp; names[-2].downcase == &quot;stott&quot; &amp;&amp; names[-1].downcase == &quot;despoja&quot;
-      last = names[-2..-1].join(' ')
-      names.pop
-      names.pop
-      last
+    # First try matching the last name to one of the special ones that consist of multiple words
+    multiword = multi_word_last_names.find do |m|
+      names.size &gt;= m.size &amp;&amp; names[-(m.size)..-1].map{|t| t.downcase} == m
+    end
+    if multiword
+      names.slice!(-(multiword.size)..-1).join(' ')
     elsif names.size &gt;= 1
       names.pop
     end</diff>
      <filename>lib/name.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f3b3641ba39719e13f68bc4940c3215055038f8c</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Landauer</name>
    <email>matthew@openaustralia.org</email>
  </author>
  <url>http://github.com/openaustralia/openaustralia-parser/commit/db4a52b1a17e7d19896b348e5a4cf5cecf2e599d</url>
  <id>db4a52b1a17e7d19896b348e5a4cf5cecf2e599d</id>
  <committed-date>2009-11-07T19:15:20-08:00</committed-date>
  <authored-date>2009-11-07T19:15:20-08:00</authored-date>
  <message>Using multi_word_last_names in other method</message>
  <tree>c05f4d840297a0cd1d85141d9c87b565497cd9e7</tree>
  <committer>
    <name>Matthew Landauer</name>
    <email>matthew@openaustralia.org</email>
  </committer>
</commit>
