pluralize(0, 'people') error

pluralize(0, 'people') = 0 peoples

Just thought I'd let you guys know. I'm new here so I don't know if
this is in the right section, but ya.

That's because 'people' is already plural. From the api:

pluralize(count, singular, plural = nil)

Try this:
pluralize(0, 'person')

Aaron

Well, people can be singular or plural. It can be the plural of person or it can describe a single group. The most famous example of this is in Martin Luther King’s famous speech:
“…But I want you to know tonight, that we, as a people, will get to the Promised Land.”

Rails gets it right in either case. Clever rails.

-Nathan

P.S. Also try this:

“people”.singularize

Nathan :

Well, people can be singular or plural. It can be the plural of person
or it can describe a single group. The most famous example of this
is in Martin Luther King's famous speech:
"...But I want you to know tonight, that we, as a people, will get to the
Promised Land."

Rails gets it right in either case. Clever rails.

Is Rails the Promised Land ? :slight_smile:

   -- Jean-François.

Jean-François wrote:

Is Rails the Promised Land ? :slight_smile:

Rails _are_ the Promised Land...

(Now try to write a paper about it with a grammar checker, folks!)

Phlip wrote:

Jean-François wrote:

Is Rails the Promised Land ? :slight_smile:
    
Rails _are_ the Promised Land...

(Now try to write a paper about it with a grammar checker, folks!)

Shouldn't it be:
Rails are the Promised Lands

Try using pluralize(0, 'person'). Pluralize expects the singular as
the argument, not the plural.

Niels

0 peoples is actually correct plural for people, as in nation or ethnicity. :wink:

RSL