repogen icon indicating copy to clipboard operation
repogen copied to clipboard

feat: add package pluralize to check plural words

Open nurcahyaari opened this issue 3 years ago • 0 comments

Motivation

some people and me. sometimes we defined the databases tables using the plural name. like products, users, students, etc., and when we're using repogen to generate our repo and its model it's weird when the repogen defined our table as productsList for the plural variable. as the person who used plural names for the tables. I use product for the product model and products for the array of the product model. so, when the user's tables name uses plural name rather than the products is used for singular data and productsList for plural data. I suggest product for singular data, and productList for plural data

before I proposed my solution Screen Shot 2022-01-02 at 20 01 03

after I proposed the solution Screen Shot 2022-01-02 at 19 53 04

nurcahyaari avatar Jan 02 '22 13:01 nurcahyaari