Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added inflections

  • Loading branch information...
commit 589d29ff4399c6bc827db35191fb3ff109f94321 1 parent ed0d52e
@parolkar authored
Showing with 5 additions and 4 deletions.
  1. +2 −2 README
  2. +3 −2 lib/inflections.rb
View
4 README
@@ -10,8 +10,8 @@ Example
With this plugin installed in your rails app, you will be able to perform operations on strings this way...
"create".to_past_tense => "created"
- "buy".to_past_tense => "baught"
- "fight".to_past_tense => "faught"
+ "buy".to_past_tense => "bought"
+ "fight".to_past_tense => "fought"
"market".to_past_tense => "marketed"
"animate".to_past_tense => "animated"
"fluctuate".to_past_tense => "fluctuated"
View
5 lib/inflections.rb
@@ -5,13 +5,14 @@
inflect.past_tense /e$/,'ed'
inflect.past_tense /t$/,'ted'
inflect.past_tense /g$/,'gged'
- inflect.past_tense /ight$/,'aught'
- inflect.past_tense "buy",'baught'
+ inflect.past_tense /ight$/,'ought'
+ inflect.past_tense "buy",'bought'
inflect.past_tense "sell",'sold'
inflect.past_tense "is",'was'
inflect.past_tense "are",'were'
inflect.past_tense "teach",'taught'
inflect.past_tense "feel",'felt'
+ inflect.past_tense "light",'lit'
Please sign in to comment.
Something went wrong with that request. Please try again.