Skip to content

Strings pluralizes nexus incorrectly #60235

@KorvinSzanto

Description

@KorvinSzanto

Symfony version(s) affected

7.x

Description

Nexus incorrectly maps to the "ends in 'us'" rule when pluralizing.

  • ->singularize('nexuses') = 'nexus'
  • ->singularize('nexi') = 'nexus'
  • ->pluralize('nexus') = 'nexi'

Both Oxford and Merriam Webster list "nexuses" as the proper pluralization

How to reproduce

<?php
require_once __DIR__.'/vendor/autoload.php';

$inflector = new \Symfony\Component\String\Inflector\EnglishInflector();
var_dump(
  $inflector->singularize('nexuses'),
  $inflector->singularize('nexi'),
  $inflector->pluralize('nexus'),
);

Possible Solution

nexus should be added as a specific case similar to hippocampus

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy