You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generator then creates a Java class called Establishmants.java with an a rather than an e in ments. Not a big issue as I can then do a global search and replace on the generated code, but it would be good to be able to turn it off.
The text was updated successfully, but these errors were encountered:
It looks like this is a bug in the inflector. We're trying to make a singular noun from the word 'establishments', and the result should clearly be 'establishment' but in fact this:
newInflector().singularize("establishments")
returns
"establishmants"
There's a rule in the inflector which turns 'men' into 'man' (e.g. the singular of 'postmen' is 'postman'). I expect the rule needs to be adjusted so that 'men/man' need to be found at the end of the word for that rule to apply. Or, if that's not possible, we can remove the men/man rule entirely.
Thanks for raising this. Unfortunately I can't think of a workaround at the moment.
The food ratings agency api (http://api.ratings.food.gov.uk/Help/Api/GET-Establishments-basic) generates JSON of the form:
The generator then creates a Java class called
Establishmants.java
with an a rather than an e in ments. Not a big issue as I can then do a global search and replace on the generated code, but it would be good to be able to turn it off.The text was updated successfully, but these errors were encountered: