Commits

ippeiukai committed e3211dc

fix past tense for doubling verbs

  • Participants
  • Parent commits 47e042f

Comments (0)

Files changed (2)

lib/linguistics/en/conjugation.rb

 			return verb[ 0..-1 ] + 'ied'
 		else
 			if DOUBLING_VERBS.include?( verb )
-				verb = verb[ -2..-1 ] + 'ed'
+				verb = verb + verb[ -1 ] + 'ed'
 			else
 				return verb + 'ed'
 			end

spec/linguistics/en/conjugation_spec.rb

 		"spoonfeed".en.past_tense.should == 'spoonfed'
 	end
 
+	it "conjugates 'spot' as 'spotted'" do
+		"spot".en.past_tense.should == 'spotted'
+	end
+
 	it "conjugates 'spread' as 'spread'" do
 		"spread".en.past_tense.should == 'spread'
 	end