Skip to content

Commit 287f2cb

Browse files
committed
Merge pull request cakephp#2587 from jtyost2/patch-1
Adds clarifying language around pluralize and singularize
2 parents adf7d3b + 6519ac4 commit 287f2cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

en/core-utility-libraries/inflector.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ You can try out the inflections online at `inflector.cakephp.org <http://inflect
1515
* **Input:** Apple, Orange, Person, Man
1616
* **Output:** Apples, Oranges, People, Men
1717

18+
.. note::
19+
20+
``pluralize()`` may not always correctly convert a noun that is already in it's plural form.
21+
1822
.. php:staticmethod:: singularize($plural)
1923
2024
* **Input:** Apples, Oranges, People, Men
2125
* **Output:** Apple, Orange, Person, Man
2226

27+
.. note::
28+
29+
``singularize()`` may not always correctly convert a noun that is already in it's singular form.
30+
2331
.. php:staticmethod:: camelize($underscored)
2432
2533
* **Input:** Apple\_pie, some\_thing, people\_person

0 commit comments

Comments
 (0)