-
Notifications
You must be signed in to change notification settings - Fork 898
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,23 +215,26 @@ const disabilityAssessments = [ | |
{ | ||
identifier: "lame", | ||
nonInclusivePhrases: [ "lame" ], | ||
inclusiveAlternatives: "<i>boring, lousy, unimpressive, sad, corny</i>", | ||
score: SCORES.NON_INCLUSIVE, | ||
feedbackFormat: redHarmful, | ||
inclusiveAlternatives: "<i>boring, lousy, unimpressive, sad, corny</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: "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." ], | ||
}, | ||
{ | ||
identifier: "commitSuicide", | ||
|
@@ -317,6 +320,14 @@ const disabilityAssessments = [ | |
score: SCORES.NON_INCLUSIVE, | ||
feedbackFormat: redHarmful, | ||
}, | ||
{ | ||
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, | ||
}, | ||
Comment on lines
+323
to
+330
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
{ | ||
identifier: "dumb", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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'. |
||
nonInclusivePhrases: [ "dumb", "dumber", "dumbest" ], | ||
|
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.