Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[String] EnglishInflector returns incorrect singular for plural zombies #43789

Copy link
Copy link
Closed
@acodispo

Description

@acodispo
Issue body actions

Symfony version(s) affected

5.4

Description

The EnglishInflector singularizes "zombies" to "zomby".

How to reproduce

use Symfony\Component\String\Inflector\EnglishInflector;

$inflector = new EnglishInflector();

$result = $inflector->singularize('zombies');   // ['zomby']

Possible Solution

// src/Symfony/Component/String/Inflector/EnglishInflector.php

private const PLURAL_MAP = [
   // [...]

   // add the following 

   // zombies (zombie)
   ['seibmoz', 7, true, true, 'zombie'],

   // [...]
];

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.