-
Notifications
You must be signed in to change notification settings - Fork 163
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
Use Pluralize
to give correct pluralization in many GAP library methods
#4050
Conversation
This comment has been minimized.
This comment has been minimized.
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.
Thank you -- this is a good idea.
4bbb231
to
488746b
Compare
488746b
to
347ec7f
Compare
@wilfwilson I merged in Circle, LAGUNA and Wedderga - will try to make releases after switching them to GitHub actions for CI. |
41cedad
to
a53288a
Compare
33dfc9f
to
c1e8d0a
Compare
The inspiration for this was to avoid many occurrences of the phrase "1 generators", which is incorrect pluralisation (it should be "1 generator").
With the switch to the new package distro, we can merge this! (Well, ideally, we'd first run all package tests against this, using either the CI @wilfwilson set up at https://github.com/gap-infra/integration or the ones at https://github.com/gap-system/PackageDistro . But we don't have the tooling for that set up yet... but hopefully soon! |
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.
Indeed, all checkboxes for GAP packages are now ticked.
@wilfwilson this PR still has a "do not merge" label. Can it be removed? |
Yes 🙂 |
Unfortunately this broke the QPA tests, see https://github.com/gap-system/PackageDistro/runs/7161848758?check_suite_focus=true -- on the positive, side, it only broke those. Reported at gap-packages/qpa#71 |
I'm amazed it broke so little! Thank you for reporting that @fingolfin. |
This PR was originally part of #3992, so it has already been discussed there.
This PR uses the
Pluralize
function in many locations in the GAP library, so that GAP produces more grammatically correct strings - such as<magma with 1 generator>
rather than<magma with 1 generators>
. There is also a follow-up PR #4343.This PR affects the
ViewString
of many objects, and so this will cause the tests/manual examples for many packages to fail. Therefore this cannot be merged until those tests/examples are adjusted, and new package versions are released. I will use this description to keep track of what needs to be done for that, initially copied from #3992 (comment).Open PRs
None.
Pending release
None.
Resolved
.tex
filedoc2/ambigfus.xml
, and the relevant test does not appear in a test file. So I don't think that merging this will cause its tests to fail.tst/testall.g
with this PR)Pluralize
in the future<matrix group with 1 generators>
but it seems to be done manually and not tested