omegabytes / askTheDM

Alexa skill: Get basic info about DND spells, items, and rules
Other
15 stars 10 forks source link

Handle plurals #108

Open omegabytes opened 6 years ago

omegabytes commented 6 years ago

Current output: "10 gold piece" Optimal output: "10 gold" or "10 gold pieces"

Eldres commented 6 years ago

has this been resolved?

omegabytes commented 6 years ago

No, we need to add both single and plural forms of words to the dictionary. For example: candle, candles. Probably the best way to do this is by adding a plural/singular key/val pair to the item object in the json, like: "candle" : { "plural" : "candles", ... }