Problem/Motivation
The taxonomy terms used in the Recipe Category vocabulary are all singular:

This is ok for tagging, but when that tag is used to generate a list page, the tag being singular is odd because we're listing things.

If we updated the terms in this vocabulary to be plural - Main Courses, Desserts etc, it would still make sense from a tagging point of view, but the listing pages would make more sense.
Proposed resolution
Update all the terms in this vocabulary to be plural.
Remaining tasks
All the things.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
lolcode commentedAttaching a basic patch that pluralises these terms.
#DrupalNorth2018
Comment #3
lolcode commentedComment #4
lolcode commentedComment #5
eli-tPatch reviewed manually and installed vi simplytest.me. Does exactly as suggested.
Therefore RTBC.
Comment #6
alexpottThis feels like a very debatable thing in terms of how the taxonomy is used. Obviously it looks much better on the taxonomy page but on each recipe it is displayed like

And here it is more like a facet or recipe type where having a plural doesn't really work.
Comment #7
eli-t@alexpott can you expand on why you think the plural doesn't work on a recipe page? To me, Recipe category: Main course and Recipe category: Main courses are equally valid, and we had consensus on the weekly OOTB call for this change.
Categorising things with pluralised nouns is not in any way unusual - lions and tigers are often described as belonging to the group Big Cats, the classification of an Archaeopteryx is Animalia -> Chordata -> Dinosauria -> Theropoda -> Archaeopterygidae, all of which are plural terms (unless my Latin is letting me down which is totally possible).
Comment #8
alexpottIt's good to know you have consensus. My reasoning is based around http://accidental-taxonomist.blogspot.com/2012/07/deviating-from-taxonom... - specifically...
I feel recipe category is very similar to a document type facet. But I'm also happy to be overruled and a choice made by the team - had to ask the question though.
Comment #9
eli-t@alexpott thanks for the source - I've asked Mark & Keith if they want to comment based on the new information, it may well be that in light of that we don't have consensus any more.
Of course if we decide to not pluralise the taxonomies, they are alternative solutions to solve the singular nature of the title on the term page, for example having a term field with the pluralised title, or prefix the page title with "Recipe Category: " etc.
Comment #10
jwlockhart commentedI am picking this up at #uoe-d8-contribution Edinburgh University Drupal 8 Contribution day 2018.
Comment #11
jwlockhart commentedOnly issue was the patch file seems not to want to patch on my Mac (Formatting issues?), so I ended up formatting the patch file contents for Mac to work on my system. Then the patch worked fine. I can offer to upload a generated patch file for comparison.
No comment on the discussion regarding approach.
Comment #12
lolcode commentedI contributed the quick patch during a code sprint day and I very much see it as a short term fix. I think it would be fine to put in place for a couple of point releases until a better solution can be worked on. @jwlockhart It looks like the test bot was able to apply the patch?
Comment #13
volkswagenchickTagging for upcoming contribution days.
Comment #14
brightboldI think the reason lolcode's patch in #2 doesn't apply is because since they created it, a typo in "mozzarella" was fixed, so the patch with the old spelling no longer applied. I created a new patch and that ended up being the only difference between the two! So here is what essentially amounts to a reroll.
Comment #15
jcloys commentedConfirmed the patch applies and the taxonomy terms are plural per the attached screenshot.
Comment #17
pawandubey commented@BrightBold
I just took the latest code (8.7.x) and found there is change in the second line in receipes.csv file:
Can you please verify at your end on this? And if changes are there then please share the latest patch accordingly.
Comment #18
brightboldTry this. (Quickly! Before someone changes recipes.csv again!)
Comment #19
brightboldComment #20
pawandubey commented@BrightBold
I am on it. :)
Comment #21
pawandubey commented@BrightBold
I have verified this patch#18 and its working fine.
RTBC +1
Comment #22
brightboldThanks! (took the liberty of updating the status since it seems like you meant to.)
Comment #23
eli-tThanks everyone for getting this back up to spec.
I'm not sure we've come to a consensus on the comment on #8 as to whether this is a beneficial change? Putting back to needs review for now.
Comment #24
brightboldFWIW (I didn't comment on this before I created the patch because I felt like you were talking to other OOTB leaders), but to me this change makes sense. My interpretation of the source that alexpott posted was that it is logical to use a singular term if you're providing the site visitor with multiple search facets, so they might want to say "find me things that are both an appetizer and egg-based." But for our current implementation, that's not what we're doing; we're saying "here is a collection of appetizers" and therefore the plural makes more sense for our use case.
Also, if we ever were to offer a complex search, I don't think it's illogical to think of it as "find me things that fall into the category of appetizers and also contain eggs," (where egg would presumably be in a different facet containing ingredients). I'm not a professional taxonomist (nor do I play one on TV), but to this taxonomy layperson. the plural makes more sense for our current need and isn't any less logical for potential future needs.
Comment #25
volkswagenchickComment #27
kjay commentedI also think for our use case of the recipe category, pluralisation helps make more sense of the term links and titles. My vote goes with continuing the pluralisation of terms in this vocab.
Comment #28
morrisona commentedI rerolled the patch manually with the help of @cosmicdreams.
Comment #29
cosmicdreams commentedRecent patch only had 2 flaws. Fixed with this.
Comment #31
brightboldRerolled for 8.8.x. The patch in 29 might apply to 8.7.
Big thanks to whomever refactored the taxonomy terms out into their own csv file — that made rerolling this patch much easier!
Comment #32
brightbold@web-developer-1993 — Thanks for rerolling the patch! I was in a rush yesterday and didn't take the time to explain why the reroll I submitted was so different, but I thought it deserved an explanation.
When this issue was originally created, the names of the taxonomy terms were included in the recipes.csv file. So the change to plural needed to be made there, as it was in your patch. But as part of the work to make Umami translatable into other languages, recently the taxonomy terms were separated into their own recipe_category.csv file, and the recipes.csv file was changed to include the term IDs that pointed to those terms instead of using the category name. (Looks like this change happened in #3028627: Restructure Umami's default content files so more than one language can be included.) So that's why your manual reroll didn't work, because unbeknownst to you those terms were no longer present in the file. Usually a reroll on an issue like this would be more straightforward — I was initially pretty confused when I realized the categories had completely disappeared from recipes.csv!
Thanks again for contributing to this issue. I hope you had fun sprinting at DrupalCon.
Comment #33
pawandubey commented@BrightBold
Thanks for the detailed explanation on this.
I have verified and tested the patch#31 related to taxonomy terms and its working fine. Moving this to RTBC.
Comment #34
shaalThis is great, thank you!
Thanks to this patch I was able to discover a bug in Umami 8.7 -
#3048699: Taxonomies are only displayed in English
To get this patch ready we need the same tags pluralized in Spanish as well.
English CSV file - works well!
core/profiles/demo_umami/modules/demo_umami_content/default_content/languages/en/taxonomy_term/recipe_category.csvSpanish CSV file - needs work (the only difference in the file's path is
esinstead ofencore/profiles/demo_umami/modules/demo_umami_content/default_content/languages/es/taxonomy_term/recipe_category.csvIn order to test this issue you would have to apply this patch first #3048699: Taxonomies are only displayed in English (unless it's already committed to core)
Comment #35
brightboldGood catch, Schaal. I totally forgot about the Spanish translation.
My Spanish is meh so can someone more fluent confirm that these plurals are correct and make sense in context (per the earlier discussion that the plural of breakfast in this case would be breakfast)?
Comment #36
brightboldDeleted duplicate comment, sorry
Comment #37
Swapnil_Kotwal commentedComment #38
Swapnil_Kotwal commentedComment #39
volkswagenchickTagging for DrupalNorth 2019
Comment #40
cristiroma commentedConfirmed with Spanish speaking guys the translations and they pass. Attaching a patch including these as well.
Comment #41
eli-tThe patch in #40 is missing the pluralisation of the Spanish Plato principal => Platos principales
Comment #42
cristiroma commentedThank you for your review @Eli_T. I have updated the patch accordingly.
Comment #43
eli-tI have tested the patch on #42.
I've compared the tags on /es/admin/structure/taxonomy/manage/recipe_category/overview and /en/admin/structure/taxonomy/manage/recipe_category/overview and confirmed they are all pluralised.
As a OOTB maintainer has indicated they are happy with this direction, and it has been correctly implemented, I am marking this RTBC.
Comment #44
alexpottCommitted and pushed 41957b6030 to 8.8.x and f10c52b708 to 8.7.x. Thanks!