Update inflector.php

Update inflector class to correctly pluralize words that are already plural and singularize words that are already singular.