-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Temporary fix for plural endings error. #6982
Conversation
So the test uses They all seem to be compounds of |
/** | ||
* @param s trimmed string | ||
* @param word trimmed string | ||
* @return Pair of singular string + boolean whether it was plural | ||
*/ | ||
@SuppressWarnings("null") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it'd be nice to move this to a noinspection if feasible
Co-authored-by: sovdee <[email protected]>
Description
Some plural word endings are incorrectly detected, e.g.
-us
->-i
picks up "gui" as being a plural of (the well known word) "guus", and-fe
->-ves
picks up "objectives" as being a plural of "objectife".This PR patches these two cases for now (by adding an alternative first) and I've moved to a queue and a helper class rather than a fixed-size array to make the follow-up API a little easier: you should be able to add stuff to the beginning or end of the queue without trouble.
I'd like to follow up with a proper system for doing this a little more effectively, and the ability for addons to fix any of their own problematic cases by registering plural overrides.
That's probably out of scope for a patch version so it will likely be a 2.10 feature, maybe using some registrations stuff?
Target Minecraft Versions: any
Requirements: none
Related Issues: fixes #6981, fixes #5879