Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inflecting singular form specimen #98

Closed
MaximMoinat opened this issue Jun 26, 2019 · 2 comments
Closed

Inflecting singular form specimen #98

MaximMoinat opened this issue Jun 26, 2019 · 2 comments

Comments

@MaximMoinat
Copy link

MaximMoinat commented Jun 26, 2019

I have a table called Specimen. When generating classes, this is inflected to the (incorrectly derived) singular form Speciman. It is solved by adding the --noinflect flag, but it did confuse me at first. Maybe something to give as feed back to the inflection package?

Edit: opened as issue in the jazzband/inflect repo

@MaximMoinat MaximMoinat changed the title Inflecting singular form Inflecting singular form specimen Jun 26, 2019
@ongopongo
Copy link

ongopongo commented May 9, 2020

Maybe something to give as feed back to the inflection package?

I agree. One way may be to have the tool print a message to STDERR whenever it comes up with a class name that differs from the table name. For example:

Notice: Derived singular class name `Addres` from plural table name `Address`
Notice: Derived singular class name `Speciman` from plural table name `Specimen`

Edit: oops! I misinterpreted the quoted statement to mean, "maybe show feedback to the user, related to the inflection package"... as opposed to, "maybe give feedback to the maintainers of the inflection package."

@agronholm
Copy link
Owner

As of ba08a71, inflection is disabled by default. Hopefully this resolves the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants