PHP Inflector, ported from Rails