Skip to content

Commit

Permalink
Adds clarifying language around pluralize and singularize
Browse files Browse the repository at this point in the history
Adds a note to clarify that pluralize and singularize while in general will work with most English nouns, it is possible for them to have issues around singularizing a singular noun and same with pluralizing a plural noun.

Related CakePHP Core Issue that brought forth this change: cakephp/cakephp#6236 (comment)
  • Loading branch information
justinyost committed Apr 1, 2015
1 parent b575ad9 commit c74f022
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions en/core-libraries/inflector.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,16 @@ customize the rules used::
// Apples
echo Inflector::pluralize('Apple');

.. note::

``pluralize()`` may not always correctly convert a noun that is already in it's plural form.

// Person
echo Inflector::singularize('People');

.. note::

``singularize()`` may not always correctly convert a noun that is already in it's singular form.

Creating CamelCase and under_scored Forms
=========================================
Expand Down

0 comments on commit c74f022

Please sign in to comment.