All files / scripts/data-transformers/constants committee-names.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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 60 61                                36x                                                     36x                                  
/**
 * @module data-transformers/constants/committee-names
 * @description Swedish Riksdag committee code to full name mapping.
 * Provides English and Swedish names for all 15 standing committees,
 * plus a committee→policy-domain mapping used as the primary classifier.
 *
 * @author Hack23 AB
 * @license Apache-2.0
 */
 
import type { CommitteeNameMap } from '../../types/content.js';
 
/**
 * Map Swedish committee codes to full names for richer descriptions.
 * Uses "Committee on [Subject]" English naming convention.
 */
export const COMMITTEE_NAMES: CommitteeNameMap = {
  AU: { en: 'Committee on Labour Market Affairs', sv: 'Arbetsmarknadsutskottet' },
  CU: { en: 'Committee on Civil Affairs', sv: 'Civilutskottet' },
  FiU: { en: 'Committee on Finance', sv: 'Finansutskottet' },
  FöU: { en: 'Committee on Defence', sv: 'Försvarsutskottet' },
  JuU: { en: 'Committee on Justice', sv: 'Justitieutskottet' },
  KU: { en: 'Committee on the Constitution', sv: 'Konstitutionsutskottet' },
  KrU: { en: 'Committee on Cultural Affairs', sv: 'Kulturutskottet' },
  MJU: { en: 'Committee on Environment and Agriculture', sv: 'Miljö- och jordbruksutskottet' },
  NU: { en: 'Committee on Industry and Trade', sv: 'Näringsutskottet' },
  SkU: { en: 'Committee on Taxation', sv: 'Skatteutskottet' },
  SfU: { en: 'Committee on Social Insurance', sv: 'Socialförsäkringsutskottet' },
  SoU: { en: 'Committee on Social Affairs', sv: 'Socialutskottet' },
  TU: { en: 'Committee on Transport', sv: 'Trafikutskottet' },
  UbU: { en: 'Committee on Education', sv: 'Utbildningsutskottet' },
  UU: { en: 'Committee on Foreign Affairs', sv: 'Utrikesutskottet' },
};
 
/**
 * Authoritative mapping from Riksdag committee code to policy domain key.
 * This is the **primary** classifier — committee codes are the canonical
 * indicator of policy domain in the Swedish parliamentary system.
 * Keyword-based heuristics should only be used as a fallback when committee
 * code is unavailable.
 *
 * Domain keys correspond to the `DomainKey` union in policy-analysis.ts.
 */
export const COMMITTEE_TO_DOMAIN = {
  AU: 'labour',
  CU: 'housing',
  FiU: 'fiscal',
  FöU: 'defence',
  JuU: 'justice',
  KU: 'constitutional',
  KrU: 'culture',
  MJU: 'environment',
  NU: 'trade',
  SkU: 'fiscal',
  SfU: 'social-insurance',
  SoU: 'healthcare',
  TU: 'transport',
  UbU: 'education',
  UU: 'eu-foreign',
} as const;