I would like to have a function like
std::string toPlural(const std::string&), that converts a given noun to plural form, like form->forms, vertex->vertices, etc. I'm interested in English only.
I understand that it is relatively easy to write, but
- Writing code is actually a worst thing I can do as a software developer
- I'm not a native English speaker, so it would require some research
- English has many exceptions for plurals, like tooth->teeth, mouse->mice, etc. Don't want to hard-code them, don't want to add a new resource with these to the program, don't want to unit-test all of them, you know.
Is there some 3rd-party library I can use?