galaxykate / tracery

Tracery: a story-grammar generation library for javascript
Apache License 2.0
2.11k stars 246 forks source link

Plural for specific cases? #51

Open SeiferTim opened 3 years ago

SeiferTim commented 3 years ago

I'm not sure how exactly you would do this, but words like "wolf", "elf", "dwarf", "knife", and "ninja" (to name a few) are not given the proper plural form with .s: "wolfs", "elfs", "dwarfs", "knifes", "ninjas"

dpritchett commented 3 years ago

Here’s a good starter list of pluralizing regexen from Rails: https://github.com/rails/rails/blob/92f567ab30f240a1de152061a6eee76ca6c4da86/activesupport/lib/active_support/inflections.rb

On Wed, Feb 10, 2021 at 7:29 PM Tim I Hely notifications@github.com wrote:

I'm not sure how exactly you would do this, but words like "wolf", "elf", "dwarf", "knife", and "ninja" (to name a few) are not given the proper plural form with .s: "wolfs", "elfs", "dwarfs", "knifes", "ninjas"

β€” You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/galaxykate/tracery/issues/51, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABEEDOVDXORSQNSVB5DIRTS6MXHPANCNFSM4XN7Y6UQ .

--


Daniel Pritchett

πŸ“¨ daniel@dpritchett.net |πŸ“± 901-871-0139 | ✍🏻 dpritchett.net | 🐦 @dpritchett https://dpritchett.net/