Skip to content
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

Implement pluralize() #154

Closed
tmaly1980 opened this issue Jan 26, 2017 · 2 comments
Closed

Implement pluralize() #154

tmaly1980 opened this issue Jan 26, 2017 · 2 comments

Comments

@tmaly1980
Copy link

Having a way to pluralize words would be nice. Currently using Stringy with Laravel, and it already has a str_plural(), but I'm using Stringy for the OO chaining approach.

@danielstjules
Copy link
Owner

danielstjules commented Mar 2, 2017

I'd rather keep inflector classes out of stringy, since it'd be quite a lot of work to create one that's multilingual, and many are english-only. For example, both Laravel and its underlying Inflector are english-only:

Maybe it'd be worth extending Stringy in your project, adding any pluralize/singularize methods to the child class? :)

@hipsterjazzbo
Copy link

Had a go, see #170 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants