Source

utils/subjectsFactory.js

/**
 * Maps subject codes to their corresponding full names or educational levels.
 *
 * - "K" => Kindergarten
 * - "1"-"5" => Elementary
 * - "6"-"8" => Middle
 * - "B" => Biology
 * - "C" => Chemistry
 * - "P" => Physics
 * @category Utils
 * @returns {Record<string, string>} The subjects factory
 * @example
 * const subjectsFactory = {
 *   K: "Kindergarten",
 *   "1": "Elementary",
 *   "2": "Elementary",
 *   "3": "Elementary",
 *   "4": "Elementary",
 *   "5": "Elementary",
 *   "6": "Middle",
 *   "7": "Middle",
 *   "8": "Middle",
 *   B: "Biology",
 *   C: "Chemistry",
 *   P: "Physics",
 * };
 */
export const subjectsFactory = {
    K: "Kindergarten",
    "1": "Elementary",
    "2": "Elementary",
    "3": "Elementary",
    "4": "Elementary",
    "5": "Elementary",
    "6": "Middle",
    "7": "Middle",
    "8": "Middle",
    B: "Biology",
    C: "Chemistry",
    P: "Physics",
};