doctrine/inflector

brewery singularized becomes breweryie

ChrisThompsonTLDR opened this issue · 3 comments

return $this->singularizer->inflect($word);

brewery singularized comes out as breweryie when it should stay brewery

brewery is already singular, as the plural is breweries. IIRC, passing singular words to singularize is not supported. @jwage probably knows better than me though.

We pass thousands of singular words through the singular inflector and never see them get mangled.

We do the same with pluralize.

Nevertheless:

Be aware that passing a word that is already singular to the singularize method (and vice-versa) is not supported and can yield weird results. That's not a use-case cover.