rmartindotco/WordPress-Custom-Post-Helper — pull request #2 by danielbgriffin (2012-07-23 22:33:40+00:00)
Title: Pluralize

I added a small snippet to the pluralize function to take the character preceding the "y" into account when pluralizing.

Strings that end in "ey," "ay," etc., will now correctly convert to "eys," "ays," etc.

Strings that end in "ty," etc., etc., will still correctly convert to "ties," etc., etc.

Small addition, but this will allow the plurals that display in the admin menus and on the front-end to behave in a more grammatically correct way.