Skip to content
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

DeepL implemtation #717

Open
7 of 10 tasks
dqwiki opened this issue Sep 17, 2023 · 0 comments · May be fixed by #722
Open
7 of 10 tasks

DeepL implemtation #717

dqwiki opened this issue Sep 17, 2023 · 0 comments · May be fixed by #722
Labels
enhancement New feature or request security Issues related to security stuff
Milestone

Comments

@dqwiki
Copy link
Member

dqwiki commented Sep 17, 2023

In support of #50, we will be using DeepL to actively translate user appeals from their native language to the native language of the reviewer. To do this, we need to implement the following:

Important

This is not to be implemented for end users because of potential abuse and the amount of system coding it would take to prevent the abuse.

Note

Support to be implemented with DeepLcom/deepl-php

  • Enable per queue setting (on/off)
  • Create URL that will process the translation and redirect
  • Allow users to set a user preference to the language they wish to translate to
  • Require users set a user preference to the target language (Reason: Prevent translation into multiple languages per user
  • Cache translations in database so that they aren't ran a second time if they are in the same language
  • ⚠️ Prevent translation of admin comments, as they should be using the queue source language
  • Log each use of the translation request API, but do not show it in the admin interface
  • Possible future implementation: Setup sysadmin view to review the log of requests for translation so they don't have to dig the database
  • Possible future implementation: Allow users to submit their own API key if they wish to go over the system limits (though I don't see us even hitting it right now
  • Possible future implementation: Allow outbound translations of messages to end users

Note

We will not be translating the interface through DeepL, just user-inputted text fields from appeals.
There were 236427 characters in appeals in 2023 - considering the potential expansion of UTRS, and the fact that we could be translating into 2 languages per segment - we are looking about 1 million per year

SQL
SELECT 
    SUM(LENGTH(appealfor)) AS character_count 
FROM 
    beta.appeals 
WHERE 
    appealfor IS NOT NULL
    AND submitted like '2023-%';
@dqwiki dqwiki added enhancement New feature or request security Issues related to security stuff labels Sep 17, 2023
@github-project-automation github-project-automation bot moved this to 🕔 Awaiting start in Amanda's Taskboard Sep 17, 2023
@dqwiki dqwiki moved this from 🕔 Awaiting start to ✅ Verified Grant Work (WIP) in Amanda's Taskboard Sep 17, 2023
@dqwiki dqwiki added this to the Version 3 milestone Sep 17, 2023
@dqwiki dqwiki moved this from ✅ Verified Grant Work (WIP) to 👀 In review in Amanda's Taskboard Feb 11, 2024
@dqwiki dqwiki linked a pull request Mar 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request security Issues related to security stuff
Projects
Status: 👀 In review
Development

Successfully merging a pull request may close this issue.

2 participants
@dqwiki and others