Translate programs including variables names and strings #4656
Felienne
started this conversation in
Large Projects & Plans
Replies: 1 comment
-
A few research questions to be explored (for variables)
We could gather feedback form users on translations with thumbs up/down like openAI does. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you switch keyword language (like this:)
the program is translated, by parsing and using Lark (our parser framework) to translate keywords. It would be very cool if we can translate a whole program, including strings and variable names (with a translate API like google translate) This would be a mix of parsing (since we want to use the same translation for all variable occurrences) and simply "translating".
We might also need to add some error checks and potential corrections, since sometimes two variables might translate to the same word (like animal and animalS in Chinese) leading to erroneous programs.
Beta Was this translation helpful? Give feedback.
All reactions