From 97c647f801b1f29e4892bc4b73cc2612c450df2f Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Wed, 11 Dec 2024 13:09:36 -0300 Subject: [PATCH] Update AI implicated systems copy (#3270) * Update AI implicated systems copy * Add missing . to copy in dynamicCite test * Update copy to avoid ambiguity * Fix implicated systems english copy --- site/gatsby-site/i18n/locales/es/entities.json | 4 ++-- site/gatsby-site/i18n/locales/fr/entities.json | 4 ++-- site/gatsby-site/i18n/locales/ja/entities.json | 4 ++-- site/gatsby-site/playwright/e2e-full/cite.spec.ts | 2 +- site/gatsby-site/playwright/e2e-full/dynamicCite.spec.ts | 2 +- .../server/emails/templates/EntityIncidentUpdated.ts | 2 +- .../server/emails/templates/NewEntityIncident.ts | 2 +- site/gatsby-site/server/emails/templates/NewIncident.ts | 2 +- .../gatsby-site/src/components/entities/AllegedEntities.js | 7 ++----- 9 files changed, 13 insertions(+), 16 deletions(-) diff --git a/site/gatsby-site/i18n/locales/es/entities.json b/site/gatsby-site/i18n/locales/es/entities.json index bb668d7b61..ad0e9a5f5e 100644 --- a/site/gatsby-site/i18n/locales/es/entities.json +++ b/site/gatsby-site/i18n/locales/es/entities.json @@ -21,8 +21,8 @@ "Incidents involved as both Developer and Deployer": "Incidentes involucrados como desarrollador e implementador", "Incidents Harmed By": "Afectado por Incidentes", "Alleged: <2> developed and deployed an AI system, which harmed <6>.": "Presunto: un sistema de IA desarrollado e implementado por <2>, perjudicó a <6>.", - "The AI implicated system is": "El sistema de IA implicado es", - "The AI implicated systems are": "Los sistemas de IA implicados son", + "Implicated AI system:": "Sistema de IA implicado:", + "Implicated AI systems:": "Sistemas de IA implicados:", "Alleged: <1> developed an AI system deployed by <4>, which harmed <6>.": "Presunto: un sistema de IA desarrollado por <1> e implementado por <4>, perjudicó a <6>.", "Entities involved in AI Incidents": "^Entities involved in AI Incidents", "{{count}} Incident responses": "{{count}} respuestas de incidentes", diff --git a/site/gatsby-site/i18n/locales/fr/entities.json b/site/gatsby-site/i18n/locales/fr/entities.json index d780b45678..6eac29c7fc 100644 --- a/site/gatsby-site/i18n/locales/fr/entities.json +++ b/site/gatsby-site/i18n/locales/fr/entities.json @@ -28,6 +28,6 @@ "Back to Entity: {{name}}": "Retour à l'entité: {{name}}", "Entity updated successfully.": "Entité mise à jour avec succès.", "Error updating Entity.": "Erreur lors de la mise à jour de l'entité.", - "The AI implicated system is": "Le système d'IA impliqué est", - "The AI implicated systems are": "Les systèmes d'IA impliqués sont" + "Implicated AI system:": "Système de l'IA impliqué:", + "Implicated AI systems:": "Systèmes de l'IA impliqués:" } diff --git a/site/gatsby-site/i18n/locales/ja/entities.json b/site/gatsby-site/i18n/locales/ja/entities.json index 2019b640ea..462109f69a 100644 --- a/site/gatsby-site/i18n/locales/ja/entities.json +++ b/site/gatsby-site/i18n/locales/ja/entities.json @@ -29,6 +29,6 @@ "Back to Entity: {{name}}": "組織に戻る: {{name}}", "Entity updated successfully.": "組織が正常に更新されました。", "Error updating Entity.": "組織の更新中にエラーが発生しました。", - "The AI implicated system is": "関連するAIシステムは です", - "The AI implicated systems are": "関連するAIシステムは です" + "Implicated AI system:": "AI関連システム:", + "Implicated AI systems:": "AI関連システム:" } diff --git a/site/gatsby-site/playwright/e2e-full/cite.spec.ts b/site/gatsby-site/playwright/e2e-full/cite.spec.ts index b14aba546e..807a95372a 100644 --- a/site/gatsby-site/playwright/e2e-full/cite.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/cite.spec.ts @@ -452,7 +452,7 @@ test.describe('Cite pages', () => { test('Should show proper entities card text', async ({ page }) => { await page.goto('/cite/3/'); await expect(page.locator('[data-cy="alleged-entities"]')).toHaveText( - 'Alleged: Kronos developed an AI system deployed by Starbucks, which harmed Starbucks Employees.The AI implicated system is Entity 1.' + 'Alleged: Kronos developed an AI system deployed by Starbucks, which harmed Starbucks Employees.Implicated AI system: Entity 1' ); }); diff --git a/site/gatsby-site/playwright/e2e-full/dynamicCite.spec.ts b/site/gatsby-site/playwright/e2e-full/dynamicCite.spec.ts index 68e009764e..05493b33f7 100644 --- a/site/gatsby-site/playwright/e2e-full/dynamicCite.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/dynamicCite.spec.ts @@ -34,7 +34,7 @@ test.describe('Dynamic Cite pages', () => { await expect(page.getByText(`Kronos’s scheduling algorithm and its use by Starbucks managers allegedly negatively impacted financial and scheduling stability for Starbucks employees, which disadvantaged wage workers.`)).toBeVisible(); await expect(page.locator('[data-cy="alleged-entities"]')).toHaveText( - 'Alleged: Kronos developed an AI system deployed by Starbucks, which harmed Starbucks Employees.The AI implicated system is Entity 1.' + 'Alleged: Kronos developed an AI system deployed by Starbucks, which harmed Starbucks Employees.Implicated AI system: Entity 1' ); await expect(page.locator('[data-cy="citation"]').getByText("Report Count", { exact: true }).locator('xpath=following-sibling::div[1]')).toHaveText('2'); diff --git a/site/gatsby-site/server/emails/templates/EntityIncidentUpdated.ts b/site/gatsby-site/server/emails/templates/EntityIncidentUpdated.ts index 4653d01702..750a5f344f 100644 --- a/site/gatsby-site/server/emails/templates/EntityIncidentUpdated.ts +++ b/site/gatsby-site/server/emails/templates/EntityIncidentUpdated.ts @@ -165,7 +165,7 @@ export default `Incident Description: {{incidentDescription}}
Incident Date: {{incidentDate}}

-
Alleged: {{developers}} developed an AI system deployed by {{deployers}}, which harmed {{entitiesHarmed}}. The implicated systems are {{implicatedSystems}}.
+
Alleged: {{developers}} developed an AI system deployed by {{deployers}}, which harmed {{entitiesHarmed}}. Implicated AI system(s): {{implicatedSystems}}.

Sincerely,
Responsible AI Collaborative
diff --git a/site/gatsby-site/server/emails/templates/NewEntityIncident.ts b/site/gatsby-site/server/emails/templates/NewEntityIncident.ts index c033435c78..df8f73acd1 100644 --- a/site/gatsby-site/server/emails/templates/NewEntityIncident.ts +++ b/site/gatsby-site/server/emails/templates/NewEntityIncident.ts @@ -166,7 +166,7 @@ export default `Incident Description: {{incidentDescription}}
Incident Date: {{incidentDate}}

-
Alleged: {{developers}} developed an AI system deployed by {{deployers}}, which harmed {{entitiesHarmed}}. The implicated systems are {{implicatedSystems}}.
+
Alleged: {{developers}} developed an AI system deployed by {{deployers}}, which harmed {{entitiesHarmed}}. Implicated AI system(s): {{implicatedSystems}}.

Sincerely,
Responsible AI Collaborative
diff --git a/site/gatsby-site/server/emails/templates/NewIncident.ts b/site/gatsby-site/server/emails/templates/NewIncident.ts index c49d028092..0f54e24a41 100644 --- a/site/gatsby-site/server/emails/templates/NewIncident.ts +++ b/site/gatsby-site/server/emails/templates/NewIncident.ts @@ -165,7 +165,7 @@ export default `Incident Description: {{incidentDescription}}
Incident Date: {{incidentDate}}

-
Alleged: {{developers}} developed an AI system deployed by {{deployers}}, which harmed {{entitiesHarmed}}. The implicated systems are {{implicatedSystems}}.
+
Alleged: {{developers}} developed an AI system deployed by {{deployers}}, which harmed {{entitiesHarmed}}. Implicated AI system(s): {{implicatedSystems}}.

Sincerely,
Responsible AI Collaborative
diff --git a/site/gatsby-site/src/components/entities/AllegedEntities.js b/site/gatsby-site/src/components/entities/AllegedEntities.js index 0d40495ccf..b3d193c742 100644 --- a/site/gatsby-site/src/components/entities/AllegedEntities.js +++ b/site/gatsby-site/src/components/entities/AllegedEntities.js @@ -51,11 +51,8 @@ function ImplicatedSystemsList({ entities }) {
{entities.length > 0 && ( <> - - The AI implicated system{entities.length > 1 ? 's' : ''}{' '} - {entities.length > 1 ? 'are' : 'is'} - {' '} - . + Implicated AI system{entities.length > 1 ? 's' : ''}:{' '} + {' '} )}