Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[String] [EnglishInflector] Fix words ending with le, e.g., articles #57899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 3, 2024

Conversation

aleho
Copy link
Contributor

@aleho aleho commented Aug 1, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
License MIT

The English inflector incorrectly singularizes words ending in "les", e.g., "articles":

[
  0 => "articl",
  1 => "article"
]

As far as I'm aware "articl" is not a valid singular form for "articles". ;)

After this PR:

[
  0 => "article"
]

I'm not entirely sure whether the map entry is correct this way, but at least the tests don't break.

@carsonbot carsonbot added this to the 5.4 milestone Aug 1, 2024
@carsonbot carsonbot changed the title [String][EnglishInflector] Fix words ending in 'le', e.g., articles [String] [EnglishInflector] Fix words ending in 'le', e.g., articles Aug 1, 2024
@OskarStark OskarStark changed the title [String] [EnglishInflector] Fix words ending in 'le', e.g., articles [String] [EnglishInflector] Fix words ending with le, e.g., articles Aug 2, 2024
@fabpot
Copy link
Member

fabpot commented Aug 3, 2024

Thank you @aleho.

@fabpot fabpot merged commit a91d20d into symfony:5.4 Aug 3, 2024
10 of 12 checks passed
This was referenced Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants