jfilby / nexus

A Nim web framework with batteries included
Apache License 2.0
101 stars 3 forks source link

Use grammatically correct plurals for seqs of models #11

Open jfilby opened 2 years ago

jfilby commented 2 years ago

Right now the ORM generator code simply appends an 's' char. This can lead to grammatically incorrect plurals such as "propertys".

Give the user options for the plural logic:

  1. Use a Python module, but that requires Python to be installed.
  2. Prompt for the plural. A list of cases where 's' can be appended can be bundled to reduce the chance of prompting the user.
  3. Use a web-service?