feat: classify observation relationships after comparability

This commit is contained in:
2026-08-02 16:40:24 +01:00
parent 0c7558d31f
commit c97f5f7303
5 changed files with 316 additions and 50 deletions
+5 -6
View File
@@ -65,7 +65,6 @@ describe("ambiguity generalisation", () => {
expect(explanation.alphabeticalUsedAsReasoning).toBe(false);
expect(neutralExplanation.status).toBe("ambiguous");
expect(isSingleQuestion(tieQuestion.question)).toBe(true);
expect(tieQuestion.question.toLowerCase()).not.toContain(" and ");
expect(tieQuestion.question.toLowerCase()).not.toContain(" or ");
return {
@@ -86,7 +85,7 @@ describe("ambiguity generalisation", () => {
"candidateCount": 2,
"explanationFavoured": false,
"investigationStrategy": null,
"question": "What changed during the period that could explain why Revenue increased by 18%, but cash in the bank fell over the same period?",
"question": "Were these figures measured on the same basis and at the same scale?",
"scenario": "Revenue increased by 18%, but cash in the bank fell over the same period.",
"tieReason": "No justified distinction between leading unknowns.",
},
@@ -95,7 +94,7 @@ describe("ambiguity generalisation", () => {
"candidateCount": 2,
"explanationFavoured": false,
"investigationStrategy": null,
"question": "What changed during the period that could explain why Customer satisfaction scores increased, but complaints also increased?",
"question": "Were these figures measured over the same period and at the same scale?",
"scenario": "Customer satisfaction scores increased, but complaints also increased.",
"tieReason": "No justified distinction between leading unknowns.",
},
@@ -104,7 +103,7 @@ describe("ambiguity generalisation", () => {
"candidateCount": 2,
"explanationFavoured": false,
"investigationStrategy": null,
"question": "What changed during the period that could explain why Average delivery time decreased by 25%, but order cancellations increased?",
"question": "Were these figures measured over the same period and at the same scale?",
"scenario": "Average delivery time decreased by 25%, but order cancellations increased.",
"tieReason": "No justified distinction between leading unknowns.",
},
@@ -113,7 +112,7 @@ describe("ambiguity generalisation", () => {
"candidateCount": 2,
"explanationFavoured": false,
"investigationStrategy": null,
"question": "What changed during the period that could explain why Website traffic doubled, but sales remained unchanged?",
"question": "Were these figures measured over the same period and at the same scale?",
"scenario": "Website traffic doubled, but sales remained unchanged.",
"tieReason": "No justified distinction between leading unknowns.",
},
@@ -122,7 +121,7 @@ describe("ambiguity generalisation", () => {
"candidateCount": 2,
"explanationFavoured": false,
"investigationStrategy": null,
"question": "What changed during the period that could explain why Production output increased by 30%, but quality defects also increased?",
"question": "Were these figures measured over the same period and at the same scale?",
"scenario": "Production output increased by 30%, but quality defects also increased.",
"tieReason": "No justified distinction between leading unknowns.",
},