repogen
repogen copied to clipboard
feat: add package pluralize to check plural words
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
after I proposed the solution