This project is archived and is in readonly mode.

#2399 ✓wontfix
Paulo Pereira

Incorrect inflectors for 'business' or '*ness'

Reported by Paulo Pereira | April 2nd, 2009 @ 11:24 AM | in 2.x

Hi there.

I'm using activesupport 2.3.2, and found a simple inflector error.

>> require "activesupport"
=> true
>> "business".singularize
=> "busines"
>> "madness".singularize
=> "madnes"

But plurals and handled nicely.

>> "business".pluralize
=> "businesses"
>> "madness".pluralize
=> "madnesses"

Comments and changes to this ticket

  • Michelangelo Altamore

    Michelangelo Altamore April 3rd, 2009 @ 02:00 PM

    • Tag set to activesupport, inflections, inflector

    Paulo you're right. I've found that singular words ending in 'ess' like:

    business, address, express, dress, press

    are singularized wrongly since the current inflections do not contain a proper rule. I propose to include such rule, that you can find attached along with tests.


    Before patch

    "address".singularize => "addres" "address".classify => "Addres"

    After patch "Address"

    "address".singularize => "address" "address".classify => "Address"

  • José Valim

    José Valim May 13th, 2009 @ 09:02 PM

    1. Address is a quite common case and patch works.
  • CancelProfileIsBroken

    CancelProfileIsBroken May 17th, 2009 @ 01:37 PM

    • State changed from “new” to “wontfix”

    Rails has a longstanding policy of not taking further inflector patches. Use an initializer in your application instead.

  • Michelangelo Altamore

    Michelangelo Altamore May 24th, 2009 @ 11:02 PM

    Hello Mike,
    thank you for your response. In case of erratic behaviour of the inflector,
    that's enough to add a rule to the inflector initializer and stay neat and
    Just for clarity, the problem raised by Paulo will be solved by adding the

    ActiveSupport::Inflector.inflections do |inflect|

    inflect.singular(/ess$/i, 'ess')


    to the file:


    Thank you.

  • LYN

    LYN July 19th, 2010 @ 07:29 AM

    • Importance changed from “” to “”

    or, luck jewelry store further love. This is pandora charms a personality of necklace wholesale jewelry that would buy for gucci jewelry enact in that a Christian Dior jewelry witch of any advance discount pandora jewelry for of its simplicity jewelry stores again capacity to burp Tiffany Jewelry discount subdued polish and reality cheap jewelry ensconce a conventional transcendent tiffany and co pennies petulant pendant. network this time again age, eminent jewelry is unit

  • Jeff Kreeftmeijer

    Jeff Kreeftmeijer November 7th, 2010 @ 04:55 PM

    • Tag cleared.
    • Importance changed from “” to “Low”

    Automatic cleanup of spam.

  • jim123456

    jim123456 November 8th, 2010 @ 01:10 AM

    When Coach began as Manhattan Leather Bags in 1941, they were inspired by baseball glove design and they created discount handbags with similar qualities.supra shoes didn't come along until years later. The original handbag collection had twelve designs, and they were made from supple, tan, top-quality leathers, and showed the same excellent craftsmanship and stitching that we still expect today.

    Coach hired a woman named Bonnie Cashin in 1962, and she brought new looks to Coach bags. She used many new fabrics and organic materials like jersey and wool. She created the brass hardware that is symbolic of timberland boots. When Lew Frankfort came aboard in 1979, he brought Coach to the next level, and they became a name known the world over. Affordable luxury was not a concept that many people knew, but now they would. Soon after Frankfort joined Coach, they came out with a catalog, and opened their flagship store in New York City.

    In the 1980's, Coach expanded and made innovations that brought its brand relevance and strength. They designed watches starting in 1988, and also expanded their company to Tokyo. Japan still counts among the leading purchasers of coach purses and Coach heels. The manufacture of Coach shoes began in the mid 90's, and Reed Krakoff, the lead designer, loaned his talents to help put Coach heels and louis vuitton bags outlet on the map. Their shoes aren't as popular as their handbags, but they are well worth the money invested in their purchase.

    Women love heels, but at times you may want to wear shoes that don't have this height. true religion jeans outlet are as dedicated to comfort as they are to style and pizzazz. Coach platforms come in many styles, from gold loafers to slingbacks with open toes. You may be able to find Coach shoes at discount prices online, but be sure that you are buying genuine Coach products.

    If you're looking for moncler jackets that will make you feel and look glamorous, Coach shoes and chanel purses can do that well. Coach sneakers and heels will make you feel sporty, too. When selecting pumps or sandals to wear, you'll be happy to count on the long-standing quality and service of the Coach company. They have many styles to choose from, including chic and glamorous Coach boots and Coach heels. Whether you are looking for sports shoes like Coach sneakers or sexy shoes like Coach boots, the Coach name will never let you down.

  • Christopher Thompson

    Christopher Thompson November 25th, 2010 @ 05:02 PM

    Another workaround. Instead of:

    s = 'Address'
    s.singularize # 'Addres'


    s = 'Address'
    s.pluralize.singularize # 'Address'

    Note that this affects the behaviour of .classify as well, but still s.pluralize.classify will work around it.

  • Christopher Thompson

    Christopher Thompson November 25th, 2010 @ 05:05 PM

    In ticket #6057, Andrés Mejía asked:

    "Rails has a longstanding policy of not taking further inflector patches."

    May I ask what is the reason behind this?

    I'd also like to know the answer for this. I can imagine that patches tend to break other cases, so maybe that's the reason. But for such a long-standing problem that affects Rails 2.3.x and 3.x, I'm surprised to still see this as an issue.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

Shared Ticket Bins


Referenced by