Tobias Brugger
add grading templates answers
7245f26
// 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}`;
}