Remove unnecessary feedback string variables for gender category in the Inclusive language assessment#23002
Remove unnecessary feedback string variables for gender category in the Inclusive language assessment#23002
Conversation
Pull Request Test Coverage Report for Build 43be60e5ae795b3ab8fd11facd6b7a5d3bb77d13Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
add missing trailing comma
|
Code looks good to me, but I think I had a different idea of what the change should be in the issue 😅 (apologies for the unclear issue description...). The string I proposed was I'm also fine with the approach you went with if you like it, though. My only concern is that it's less clear to me now that the feedback is about gender. For example "Unless you are sure that the group you refer to only consists of firemen, use an alternative, such as firefighters." makes it sounds like, for example, if the group has firemen but also paramedics, you should use 'firefighters' 😅 Which obviously doesn't make sense from context, but it can sound a bit confusing. |
Conclusion from discussion: the goal is that the feedback strings remain exactly the same, and only amount of variables changes. this can be done by creating
|
Context
orangeExclusionaryUnlessMen,orangeExclusionaryUnlessMenAndWomen, andorangeExclusionaryUnlessUseTheTermfall underorangeExclusionaryUnless, they were suggested to be removed.Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
orangeExclusionaryUnlessTwoGenderswas also suggested for removal in the issue, but was not removed because there feedback string is useful for this specific case. If we replaceorangeExclusionaryUnlessTwoGendersvariable withorangeExclusionaryUnlessfor the phrase "both genders", the feedback string will say "unless the group consists of both genders" instead of "unless the group consists only of two genders.". Since "both" implies there is only two in general, keeping the current version with "two genders" is better. It could be even better to change it from "two genders" to "men and women", but we can keep it as it is for now and see when addressing it in another issue.Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
Phrases with "ladies and gentlemen"
"Be careful when using ladies and gentlemen as it can be exclusionary. Unless you are sure that the group you refer to only consists of ladies and gentlemen, use an alternative, such as everyone, folks, honored guests. Learn more."
Previous feedback string: "Be careful when using ladies and gentlemen as it can be exclusionary. Unless you are sure that the group you refer to only consists of men and women, use an alternative, such as everyone, folks, honored guests. Learn more."
Phrases with "mothers and fathers"
"Be careful when using mothers and fathers as it can be exclusionary. Unless you are sure that the group you refer to only consists of mothers and fathers, use an alternative, such as parents. Learn more."
Previous feedback string: "Be careful when using mothers and fathers as it can be exclusionary. Unless you are sure that the group you refer to only consists of people who use this term, use an alternative, such as parents. Learn more."
Phrases with "fathers and mothers"
"Be careful when using fathers and mothers as it can be exclusionary. Unless you are sure that the group you refer to only consists of fathers and mothers, use an alternative, such as parents. Learn more."
Previous feedback string: "Be careful when using fathers and mothers as it can be exclusionary. Unless you are sure that the group you refer to only consists of people who use this term, use an alternative, such as parents. Learn more."
Phrases with "firemen"
"Be careful when using firemen as it can be exclusionary. Unless you are sure that the group you refer to only consists of firemen, use an alternative, such as firefighters. Learn more."
Previous feedback string: "Be careful when using firemen as it can be exclusionary. Unless you are sure that the group you refer to only consists of men, use an alternative, such as firefighters. Learn more."
Phrases with "policemen"
"Be careful when using policemen as it can be exclusionary. Unless you are sure that the group you refer to only consists of policemen, use an alternative, such as police officers. Learn more."
Previous feedback string: "Be careful when using policemen as it can be exclusionary. Unless you are sure that the group you refer to only consists of men, use an alternative, such as police officers. Learn more."
Relevant test scenarios
Test instructions for QA when the code is in the RC
QA can test this PR by following these steps:
Impact check
This PR affects the following parts of the plugin, which may require extra testing:
Other environments
[shopify-seo], added test instructions for Shopify and attached theShopifylabel to this PR.[yoast-doc-extension], added test instructions for Yoast SEO for Google Docs and attached theGoogle Docs Add-onlabel to this PR.Documentation
Quality assurance
grunt build:imagesand commited the results, if my PR introduces new images or SVGs.Innovation
innovationlabel.Fixes #https://github.com/Yoast/Lingo-AI/issues/14