Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

"offensives".singularize

#6533

"offensive".pluralize returns "offensives" but "offensives".singularize returns "offensife"

I think it should return "offensive"

("offensife".pluralize does return "offensives", but I don't think "offensife" is a real word?)

Reported by Chuck · March 5th, 2011 @ 04:03 PM

State: wontfix
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Andrew White
    Andrew White
    • State changed from new to wontfix
    • Importance changed from to Low

    Edit your inflections.rb initializer to add any custom inflections required by your application, e.g:

    # config/initializers/inflections.rb
    ActiveSupport::Inflector.inflections do |inflect|
      inflect.irregular 'offensive', 'offensives'
    end
    

    Just out of interest what kind of app requires an Offensive model? Military history?

    March 5th, 2011 @ 06:13 PM

  2. Chuck
    Chuck

    @Andrew: Yes, I implemented a workaround using the inflections.rb file, but I thought I'd file a bug too. I'm writing an app to document/simulate the Decline and Fall of the Roman Empire :-)

    March 5th, 2011 @ 11:02 PM

  3. Andrew White
    Andrew White

    It's a long time policy not to accept any changes to the inflections list for backwards compatibility/performance reason - if all the exceptions reported as bugs were added to the default list it'd be at least twice as long.

    March 6th, 2011 @ 05:07 AM