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

Add multi-lingual inflectors and pluralize/singularize methods #170

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hipsterjazzbo
Copy link

@hipsterjazzbo hipsterjazzbo commented Oct 9, 2017

There are several issues that have been opened about these methods, and then closed with the concern that they wouldn't be able to be multi-lingual.

I hope this approach will work. It is multi-lingual, new languages are easy to add (as long as one speaks the language and a bit of regex), and could be added on a project basis without needing to register anything with Stringy.

I have set up, to start, Inflectors for English, Spanish, French, Norwegian Bokmal, Portuguese and Turkish.

This still needs tests, but I just wanted to have a discussion first before I do those :)

For the record, I'd also be happy to update documentation before merging, both in terms of the methods and how to write/add a new inflector.

Needs tests, but needs discussion first.
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

Successfully merging this pull request may close these issues.

1 participant