metaist / inkfill

multi-document template engine
https://metaist.github.io/inkfill/
Other
0 stars 0 forks source link

add: plural / singular #21

Closed metaist closed 10 months ago

metaist commented 10 months ago

In the past, I've always handled singular/plurals by letting users provide both (which I'll still support), but I just realized that it might be easy to convert a plural back to its singular form.

https://en.wikipedia.org/wiki/English_plurals

metaist commented 10 months ago

One problem is knowing whether the original word ended in e and has an s tacked on or if it ends in a different sound (like o) and has an es tacked on.

metaist commented 10 months ago

So maybe this problem is just as hard as pluralizing. Need to think about this.