This repository contains the code for testing Moral Machine questions with LLMs.
Our codes consist of the following elements:
-
code/
folderquestion_generator.py
: Codes to generate the MoralMachine data consistent with the original paperrun_toy_examples.py
: Codes to generate signature questions (so that the analysis can be super clean)- (Working)
run_toy_examples_multilingual.py
andmultilingual_question_generator.py
. visualize_fig2.py
: codes to generate the original visualization of Figure 2a and 2b in the Moral Machine papervisualize_fig3.py
: codes to generate the original visualization of Figure 3a and 3b in the Moral Machine paper
-
data/
folder-
Input data for fig2 and fig3
-
Moral Machine responses by different LLMs in different languages
-
- ZJ: working on various analyses for the paper
- FO: working on Google Translate
- AS: adding
get_fig2b()
toquestion_generator.py
- FG: preparing to run hierarchical clustering in Fig3a and 3b once our output is ready.