Commits

Michael Granger committed f521914 Merge

Merge pull request #4 from ippeiukai/fix-issue8-past_tense_for_doubling_verbs

fix past tense for doubling verbs

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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.