         pronunciationScore =
                        sortedScores[0] * 0.6 +
                        sortedScores[1] * 0.2 +
                        sortedScores[2] * 0.2;
                }
            } else {
                // Unscripted scenario
                if (enableProsodyAssessmentCheckbox.checked && !Number.isNaN(prosodyScore)) {
                    const sortedScores = [accuracyScore, prosodyScore, fluencyScore].sort((a, b) => a - b);
                    pronunciationScore =
                  