-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Add uncountable word from Laravel Framework #194
Conversation
@@ -149,6 +151,8 @@ private static function getDefault(): iterable | |||
yield new Pattern('progress'); | |||
yield new Pattern('rabies'); | |||
yield new Pattern('rain'); | |||
yield new Pattern('recommended'); | |||
yield new Pattern('related'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two aren't nouns, why are they being pluralized somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Laravel uses it, among other things, to determine the parameters name on a route, singularizing it, like: /images/{image}/, and table names for models, pluralizing it.
My guess is those are fairly common words to use in a URL, but to keep things consistent, maybe those should be handed there, and not here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That be the way to go in my opinion. Also please add tests for other 2 words that are to stay :)
Thanks @cesarep! |
Simply adds uncountable words from Laravel not presented here:
'cattle', 'kin', 'recommended', 'related'