Skip to content

symfony/string EnglishInflector spelling mistakes in a coupla plurals #58797

Closed
@adamcameron

Description

@adamcameron

Symfony version(s) affected

7.1

Description

See https://github.com/symfony/string/blob/7.1/Inflector/EnglishInflector.php#L361

There is no such word "matricies", as per "appendix", it should be "appendices" ("es", not "ies").

Same just above with "indicies"... it should be "indices".

Refs:

Great lib though, thanks for yer hard work!

How to reproduce

public function testPluraliseNonStandardPlural()
{
    $inflector = new EnglishInflector();
    $plurals = $inflector->pluralize('matrix');

    $this->assertEquals('matrices', $plurals[0]);
}

Possible Solution

No response

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