-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add the phrase "dumb down" and improve feedback for the word "lame" in the Inclusive language assessment #21578
base: feature/inclusive-language-fixes
Are you sure you want to change the base?
Conversation
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.
CR: I left some comments, and I also noticed some unit tests are still failing.
identifier: "lamer", | ||
nonInclusivePhrases: [ "lamer" ], | ||
inclusiveAlternatives: "<i>more boring, lousier, more unimpressive, sadder, cornier</i>", | ||
score: SCORES.NON_INCLUSIVE, | ||
feedbackFormat: redHarmful, | ||
inclusiveAlternatives: "<i>more boring, lousier, more unimpressive, sadder, cornier</i>, <i>person with a disability, person who has difficulty with walking</i>", | ||
score: SCORES.POTENTIALLY_NON_INCLUSIVE, | ||
feedbackFormat: [ "Be careful when using <i>%1$s</i> as it is potentially harmful. " + | ||
"Unless you are referring to an object, considering using an alternative. For example, %1$s. If referring to someone's disability, use an alternative such as %2$s." ], | ||
}, | ||
{ | ||
identifier: "lamest", | ||
nonInclusivePhrases: [ "lamest" ], | ||
inclusiveAlternatives: "<i>most boring, lousiest, most unimpressive, saddest, corniest</i>", | ||
score: SCORES.NON_INCLUSIVE, | ||
feedbackFormat: redHarmful, | ||
inclusiveAlternatives: "<i>most boring, lousiest, most unimpressive, saddest, corniest</i>, <i>person with a disability, person who has difficulty with walking</i>", | ||
score: SCORES.POTENTIALLY_NON_INCLUSIVE, | ||
feedbackFormat: [ "Be careful when using <i>%1$s</i> as it is potentially harmful. " + | ||
"Unless you are referring to an object, considering using an alternative. For example, %1$s. If referring to someone's disability, use an alternative such as %2$s." ], |
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.
'Lamer' and 'lamest' don't need the feedback for 'lame' as an object, since when 'lame' is used as a noun it wouldn't take these forms.
And I think the person with a disability, person who has difficulty with walking alternatives would need to be adapted to the comparative and superlative forms.
inclusiveAlternatives: "<i>oversimplify</i>", | ||
score: SCORES.NON_INCLUSIVE, | ||
feedbackFormat: redHarmful, | ||
}, | ||
{ | ||
identifier: "dumb", |
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.
We also need to add a rule to not show the feedback for 'dumb' when followed by 'down' or 'it down'.
{ | ||
identifier: "dumbDown", | ||
nonInclusivePhrases: [ "dumb down", "dumbing down", "dumbed down", "dumb it down", "dumbing it down", | ||
"dumbed it down" ], | ||
inclusiveAlternatives: "<i>oversimplify</i>", | ||
score: SCORES.NON_INCLUSIVE, | ||
feedbackFormat: redHarmful, | ||
}, |
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.
You could consider splitting this up so that each form gets the alternative in a matching form of 'oversimplify'. For example 'dumbing down' -> 'oversimplifying' etc.
Context
Summary
This PR can be summarized in the following changelog entry:
Relevant technical choices:
Test instructions
Test instructions for the acceptance test before the PR gets merged
This PR can be acceptance tested by following these steps:
"Avoid using dumb as it is potentially harmful. Consider using an alternative, such as uninformed, ignorant, foolish, inconsiderate, irrational, reckless. 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:
UI changes
Other environments
[shopify-seo]
, added test instructions for Shopify and attached theShopify
label to this PR.Documentation
Quality assurance
Innovation
innovation
label.Fixes #