File size: 1,918 Bytes
902e217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5d2f4d1
 
 
 
 
 
 
 
 
 
902e217
 
 
 
7245f26
902e217
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
// Application configuration
export const config = {
  api: {
    huggingfaceOrg: import.meta.env.VITE_HUGGINGFACE_ORG || "",
    structuredAnswersDataset: "structured-answers",
    equivalencyScoresDataset: "equivalency-scores",
  },

  jurisdictions: [
    { code: "en-us", label: "English (US)" },
    { code: "sv-se", label: "Swedish (SE)" },
  ],

  defaults: {
    jurisdiction1: "en-us",
    jurisdiction2: "sv-se",
  },

  // Direct translations dictionary (English -> Swedish)
  directTranslations: {
    "proximate cause": "adekvat kausalitet",
    "articles of association": "bolagsordning",
    bylaws: "bolagsordning",
    condominium: "bostadrätt",
    "cooperative apartment": "bostadrätt",
    "company name": "firma",
    company: "firma",
    "dispose of": "förfoga över",
    "rights of first refusal": "hembud",
    "implied consent": "konkludent handlande",
    "aiding and abetting": "medverkande",
    "trading prohibition": "näringsförbud",
    "affiliated company": "närstående bolag",
    molestation: "ofredande",
    "dismiss on the merits": "ogilla",
    "the rule of contra proferentem": "oklarhetsregeln",
    "joinder of parties": "processgemenskap",
    "ultimate facts": "rättsfakta",
    "apparent authority": "ställningsfullmakt",
  },

  // Equivalency score labels based on score ranges
  // Score is on a scale of 1-5
  equivalencyScoreLabels: [
    { min: 1.0, max: 1.75, label: "Very Low Equivalency" },
    { min: 1.75, max: 2.5, label: "Low Equivalency" },
    { min: 2.5, max: 3.25, label: "Medium Equivalency" },
    { min: 3.25, max: 4.0, label: "High Equivalency" },
    { min: 4.0, max: 5.0, label: "Very High Equivalency" },
  ],
} as const;

// Helper to build dataset names
export function getDatasetName(
  datasetType: "structured-answers" | "equivalency-scores" | "grading-templates"
): string {
  return `${config.api.huggingfaceOrg}/${datasetType}`;
}