module Berkeley
  class Majors

    def self.get(maj_name)
      major = self.majors[maj_name.strip.upcase]
      if major.nil?
        maj_name.strip.titleize
      else
        major
      end
    end

    private

    def self.majors
      @majors ||= {
        "A A & ASIAN DIASPORA" => "ASIAN AMERICAN AND ASIAN DIASPORA STUDIES".titleize,
        "AFRI-AM STDY-SOC SCI" => "AFRICAN AMERICAN STUDIES - PLAN A: SOCIAL SCI CONCENTRATION".titleize,
        "AFRICAN AMERICAN STD" => "AFRICAN AMERICAN STUDIES".titleize,
        "AGR & RES ECON" => "AGRICULTURAL AND RESOURCE ECONOMICS".titleize,
        "AMERICAN STUDIES" => "AMERICAN STUDIES".titleize,
        "ANCIEN HIST&MED ARCH" => "ANCIENT HISTORY AND MEDITERRANEAN ARCHEOLOGY".titleize,
        "ANTHROPOLOGY" => "ANTHROPOLOGY".titleize,
        "APPL SCI & TECHNOLGY" => "APPLIED SCIENCE AND TECHNOLOGY".titleize,
        "APPLIED MATHEMATICS" => "APPLIED MATHEMATICS".titleize,
        "ARCHITECTURE" => "ARCHITECTURE".titleize,
        "ART" => "ART".titleize,
        "ASIAN AMERICAN STDS" => "ASIAN AMERICAN STUDIES".titleize,
        "ASIAN STUDIES" => "ASIAN STUDIES".titleize,
        "ASIAN STUDIES--I" => "ASIAN STUDIES - AREA 1: CHINA".titleize,
        "ASIAN STUDIES--II" => "ASIAN STUDIES - AREA 2: JAPAN".titleize,
        "ASTROPHYSICS" => "ASTROPHYSICS".titleize,
        "ATMOSPHERIC SCIENCE" => "ATMOSPHERIC SCIENCE".titleize,
        "BIOCHEMISTRY" => "BIOCHEMISTRY".titleize,
        "BIOENG&MAT SCI&ENG" => "BIOENGINEERING AND MATERIALS SCIENCE AND ENGINEERING".titleize,
        "BIOENGINEERING" => "BIOENGINEERING".titleize,
        "BIOLOGICAL SCIENCES" => "BIOLOGICAL SCIENCES".titleize,
        "BIOPHYSICS" => "BIOPHYSICS".titleize,
        "BIOSTATISTICS" => "BIOSTATISTICS".titleize,
        "BUDDHIST STUDIES" => "BUDDHIST STUDIES".titleize,
        "BUSINESS ADMIN" => "BUSINESS ADMINISTRATION".titleize,
        "BUSINESS ADMIN - MFE" => "BUSINESS ADMINISTRATION".titleize,
        "BUSINESS ADMIN-COLUM" => "BUSINESS ADMINISTRATION".titleize,
        "BUSINESS ADMIN-EWMBA" => "BUSINESS ADMINISTRATION".titleize,
        "CELTIC STUDIES" => "CELTIC STUDIES".titleize,
        "CHEM ENGR & NUC ENGR" => "CHEMICAL ENGINEERING AND NUCLEAR ENGINEERING".titleize,
        "CHEMICAL BIOLOGY" => "CHEMICAL BIOLOGY".titleize,
        "CHEMICAL ENGINEERING" => "CHEMICAL ENGINEERING".titleize,
        "CHEMISTRY" => "CHEMISTRY".titleize,
        "CHICANO STUDIES" => "CHICANO STUDIES".titleize,
        "CHINESE LANGUAGE" => "CHINESE LANGUAGE".titleize,
        "CHM ENG&MAT SCI &ENG" => "CHEMICAL ENGINEERING AND MATERIALS SCIENCE AND ENGINEERING".titleize,
        "CITY REGIONAL PLAN" => "CITY AND REGIONAL PLANNING".titleize,
        "CIVIL ENGINEERING" => "CIVIL ENGINEERING".titleize,
        "CLASSICAL ARCHAEOLOG" => "CLASSICAL ARCHAEOLOGY".titleize,
        "CLASSICAL CVLIZATION" => "CLASSICAL CIVILIZATION".titleize,
        "CLASSICAL LANGUAGES" => "CLASSICAL LANGUAGES".titleize,
        "CLASSICS" => "CLASSICS".titleize,
        "COGNITIVE SCIENCE" => "COGNITIVE SCIENCE".titleize,
        "COMP BIOCHEMISTRY" => "COMPARATIVE BIOCHEMISTRY".titleize,
        "COMP LITERATURE" => "COMPARATIVE LITERATURE".titleize,
        "COMPUTATIONAL BIOL" => "COMPUTATIONAL BIOLOGY".titleize,
        "COMPUTATNL ENGR SCI" => "COMPUTATIONAL ENGINEERING SCIENCE".titleize,
        "COMPUTER SCIENCE" => "COMPUTER SCIENCE".titleize,
        "CONSERV&RSRC STUDIES" => "CONSERVATION AND RESOURCE STUDIES".titleize,
        "DANCE&PERFORMCE STD" => "DANCE AND PERFORMANCE STUDIES".titleize,
        "DEMOGRAPHY" => "DEMOGRAPHY".titleize,
        "DESIGN" => "DESIGN".titleize,
        "DEVEL PRACTICE (UCB)" => "DEVELOPMENT PRACTICE (UCB)".titleize,
        "DEVELOPMENT STUDIES" => "DEVELOPMENT STUDIES".titleize,
        "DUTCH STUDIES" => "DUTCH STUDIES".titleize,
        "EARTH&PLANETARY SCI" => "EARTH AND PLANETARY SCIENCE".titleize,
        "ECONOMICS" => "ECONOMICS".titleize,
        "EDUCATION" => "EDUCATION".titleize,
        "EDUCATION-CREDENTIAL" => "EDUCATION - CREDENTIAL PROGRAM".titleize,
        "EECS & MAT SCI ENGR" => "ELECTRICAL ENGR & COMP SCI & MATERIALS SCIENCE & ENGR".titleize,
        "EECS & NUC ENGR" => "ELECTRICAL ENGINEERING AND COMPUTER SCIENCES AND NUCLEAR ENGIN".titleize,
        "ELEC ENGR COMPUT SCI" => "ELECTRICAL ENGINEERING AND COMPUTER SCIENCES".titleize,
        "ENDOCRINOLOGY" => "ENDOCRINOLOGY".titleize,
        "ENERGY & RESOURCES" => "ENERGY AND RESOURCES".titleize,
        "ENERGY ENGINEERING" => "ENERGY ENGINEERING".titleize,
        "ENGINEERING PHYSICS" => "ENGINEERING PHYSICS".titleize,
        "ENGLISH" => "ENGLISH".titleize,
        "ENGR MATH-MATH STAT" => "ENGINEERING MATHEMATICS AND STATISTICS".titleize,
        "ENGR-CIVIL ENGR" => "CIVIL ENGINEERING".titleize,
        "ENGR-CIVIL ENVIRON" => "CIVIL AND ENVIRONMENTAL ENGINEERING".titleize,
        "ENGR-EE & COMPUT SCI" => "ELECTRICAL ENGINEERING AND COMPUTER SCIENCES".titleize,
        "ENGR-ENVIR ENGR SCI" => "ENVIRONMENTAL ENGINEERING SCIENCE".titleize,
        "ENGR-IND ENG OP RES" => "INDUSTRIAL ENGINEERING AND OPERATIONS RESEARCH".titleize,
        "ENGR-MAT SCI & ENGR" => "MATERIALS SCIENCE AND ENGINEERING".titleize,
        "ENGR-MECH ENGR" => "MECHANICAL ENGINEERING".titleize,
        "ENGR-NUCLEAR ENGR" => "NUCLEAR ENGINEERING".titleize,
        "ENV ECON & POLICY" => "ENVIRONMENTAL ECONOMICS AND POLICY".titleize,
        "ENV SCI POL AND MGMT" => "ENVIRONMENTAL SCIENCE, POLICY, AND MANAGEMENT".titleize,
        "ENVIR SCIENCES" => "ENVIRONMENTAL SCIENCES".titleize,
        "ENVIRON EARTH SCI" => "ENVIRONMENTAL EARTH SCIENCE".titleize,
        "ENVIRON HEALTH SCI" => "ENVIRONMENTAL HEALTH SCIENCES".titleize,
        "ENVIRONMTAL PLANNING" => "ENVIRONMENTAL PLANNING".titleize,
        "EPIDEMIOLOGY" => "EPIDEMIOLOGY".titleize,
        "ETHNIC STUDIES" => "ETHNIC STUDIES".titleize,
        "EXECUTIVE MBA" => "EXECUTIVE MBA PROGRAM".titleize,
        "FILM" => "FILM".titleize,
        "FILM AND MEDIA" => "FILM AND MEDIA".titleize,
        "FOLKLORE" => "FOLKLORE".titleize,
        "FOREST & NATURAL RES" => "FORESTRY AND NATURAL RESOURCES".titleize,
        "FORESTRY" => "FORESTRY".titleize,
        "FRENCH" => "FRENCH".titleize,
        "GEN & WOMEN'S STD" => "GENDER & WOMEN'S STUDIES".titleize,
        "GENETICS & PLANT BIO" => "GENETICS AND PLANT BIOLOGY".titleize,
        "GEOGRAPHY" => "GEOGRAPHY".titleize,
        "GEOLOGY" => "GEOLOGY".titleize,
        "GEOPHYSICS" => "GEOPHYSICS".titleize,
        "GERMAN" => "GERMAN".titleize,
        "HEALTH & MEDICAL SCI" => "HEALTH AND MEDICAL SCIENCES".titleize,
        "HISPANIC LANG & LIT" => "HISPANIC LANGUAGES AND LITERATURES".titleize,
        "HISTORY" => "HISTORY".titleize,
        "HISTORY OF ART" => "HISTORY OF ART".titleize,
        "HLTH SRV & POL ANAL" => "HEALTH SERVICES AND POLICY ANALYSIS".titleize,
        "HUMANITIES" => "HUMANITIES".titleize,
        "IND ENG & OPER RES" => "INDUSTRIAL ENGINEERING AND OPERATIONS RESEARCH".titleize,
        "INDIVIDUAL" => "INTEGRATION OF ART IN THE URBAN ENVIRONMENT".titleize,
        "INDIVIDUAL" => "MEDIEVAL STUDIES".titleize,
        "INDIVIDUAL" => "VISUAL AND NARRATIVE CULTURE".titleize,
        "INFECT DIS & IMMUN" => "INFECTIOUS DISEASES AND IMMUNITY".titleize,
        "INFO MGMT & SYSTEMS" => "INFORMATION MANAGEMENT AND SYSTEMS".titleize,
        "INTEGRATIVE BIOLOGY" => "INTEGRATIVE BIOLOGY".titleize,
        "INTERDISCIPL STUDIES" => "INTERDISCIPLINARY STUDIES".titleize,
        "INTERN & AREA STUD" => "INTERNATIONAL AND AREA STUDIES".titleize,
        "ITALIAN STUDIES" => "ITALIAN STUDIES".titleize,
        "JAPANESE LANGUAGE" => "JAPANESE LANGUAGE".titleize,
        "JEWISH STUDIES" => "JEWISH STUDIES".titleize,
        "JOURNALISM" => "JOURNALISM".titleize,
        "JURIS SCIENTAE DOCTR" => "JURIS SCIENTAE DOCTOR".titleize,
        "JURSPRDNCE&SOC POLCY" => "JURISPRUDENCE AND SOCIAL POLICY".titleize,
        "LAND ARCH & ENV PLAN" => "LANDSCAPE ARCHITECTURE AND ENVIRONMENTAL PLANNING".titleize,
        "LANDSCAPE ARCH" => "LANDSCAPE ARCHITECTURE".titleize,
        "LATIN" => "LATIN".titleize,
        "LATIN-AMER STUDIES" => "LATIN AMERICAN STUDIES".titleize,
        "LAW" => "LAW".titleize,
        "LAW - LLM" => "LAW".titleize,
        "LEGAL STUDIES" => "LEGAL STUDIES".titleize,
        "LIMITED" => "LIMITED".titleize,
        "LINGUISTICS" => "LINGUISTICS".titleize,
        "LOGIC METHOD OF SCI" => "LOGIC AND THE METHODOLOGY OF SCIENCE".titleize,
        "M. ENG-IE&OR SS/PT" => "M. ENG-INDUSTRIAL ENGIN & OPERATION RSH-SELF SUPPORT PART TIME".titleize,
        "MARINE SCIENCE" => "MARINE SCIENCE".titleize,
        "MASS COMMUNICATIONS" => "MASS COMMUNICATIONS".titleize,
        "MASTER OF ADV STD-IC" => "MASTERS OF ADVANCED STUDY IN INTEGRATED CIRCUITS".titleize,
        "MAT SCI&ENG&MEC ENG" => "MATERIALS SCIENCE AND ENGINEERING AND MECHANICAL ENGINEERING".titleize,
        "MAT SCI&ENG&NUC ENG" => "MATERIALS SCIENCE AND ENGINEERING AND NUCLEAR ENGINEERING".titleize,
        "MATHEMATICS" => "MATHEMATICS".titleize,
        "MEC ENGR & NUC ENGR" => "MECHANICAL ENGINEERING AND NUCLEAR ENGINEERING".titleize,
        "MECHANICAL ENGR" => "MECHANICAL ENGINEERING".titleize,
        "MEDIA STUDIES" => "MEDIA STUDIES".titleize,
        "MEDICAL ANTHROPOLOGY" => "MEDICAL ANTHROPOLOGY".titleize,
        "METABOLIC BIOLOGY" => "METABOLIC BIOLOGY".titleize,
        "MICROBIAL BIOLOGY" => "MICROBIAL BIOLOGY".titleize,
        "MICROBIOLOGY" => "MICROBIOLOGY".titleize,
        "MIDDLE EASTRN STDS" => "MIDDLE EASTERN STUDIES".titleize,
        "MO&CEL BIO-P II,EM 2" => "MCELLBI, PLAN II, EMPHASIS 2: CELL AND DEVELOPMENTAL BIOLOGY".titleize,
        "MO&CEL BIO-P II,EM 3" => "MCELLBI, PLAN II, EMPHASIS 3: NEUROBIOLOGY".titleize,
        "MO&CEL BIO-P1 I,EM 1" => "MCELLBI, PLAN I, EMPHASIS 1: BIOCHEMISTRY AND MOLEC BIOLOGY".titleize,
        "MO&CEL BIO-P1 I,EM 2" => "MCELLBI, PLAN I, EMPHASIS 2: GENETICS".titleize,
        "MO&CEL BIO-P1 I,EM 3" => "MCELLBI, PLAN I, EMPHASIS 3: IMMUNOLOGY".titleize,
        "MOL & CELL BIOLOGY" => "MOLECULAR AND CELL BIOLOGY".titleize,
        "MOL ENV BIOLOGY" => "MOLECULAR ENVIRONMENTAL BIOLOGY".titleize,
        "MOLEC & BIOCHEM NUTR" => "MOLECULAR & BIOCHEMICAL NUTRITION".titleize,
        "MOLECULAR TOXICOLOGY" => "MOLECULAR TOXICOLOGY".titleize,
        "MUSIC" => "MUSIC".titleize,
        "NATIVE AMRCN STUDIES" => "NATIVE AMERICAN STUDIES".titleize,
        "NEAR EASTERN STUDIES" => "NEAR EASTERN STUDIES".titleize,
        "NEUROSCIENCE" => "NEUROSCIENCE".titleize,
        "NR EAST LANG & LIT" => "NEAR EASTERN LANGUAGES AND LITERATURES".titleize,
        "NR EASTERN CIV" => "NEAR EASTERN CIVILIZATIONS".titleize,
        "NR EASTERN RELIGIONS" => "NEAR EASTERN RELIGIONS".titleize,
        "NUCLEAR ENGINEERING" => "NUCLEAR ENGINEERING".titleize,
        "NUTR SCI-DIETETICS" => "NUTRITIONAL SCIENCE-DIETETICS".titleize,
        "NUTR SCI-PHYS & MET" => "NUTRITIONAL SCIENCE-PHYSIOLOGY AND METABOLISM".titleize,
        "NUTRITION SCIENCE" => "NUTRITION SCIENCE".titleize,
        "OPS RSCH & MGT SCI" => "OPERATIONS RESEARCH AND MANAGEMENT SCIENCE".titleize,
        "OPTOMETRY" => "OPTOMETRY".titleize,
        "OPTOMETRY-CERT" => "OPTOMETRY CERTIFICATE".titleize,
        "PB HLTH-ONLINE M.P.H" => "PUBLIC HEALTH - ONLINE M.P.H".titleize,
        "PEACE-CONFLICT STUD" => "PEACE AND CONFLICT STUDIES".titleize,
        "PERFORMANCE STUDIES" => "PERFORMANCE STUDIES".titleize,
        "PHILOSOPHY" => "PHILOSOPHY".titleize,
        "PHYSICS" => "PHYSICS".titleize,
        "PLANETARY SCI" => "PLANETARY SCIENCE".titleize,
        "PLANT BIOLOGY" => "PLANT BIOLOGY".titleize,
        "POL ECON-INDSTRL SOC" => "POLITICAL ECONOMY OF INDUSTRIAL SOCIETIES".titleize,
        "POLITICAL ECONOMY" => "POLITICAL ECONOMY".titleize,
        "POLITICAL SCIENCE" => "POLITICAL SCIENCE".titleize,
        "PSYCHOLOGY" => "PSYCHOLOGY".titleize,
        "PUBLIC HEALTH" => "PUBLIC HEALTH".titleize,
        "PUBLIC POLICY" => "PUBLIC POLICY".titleize,
        "RANGE MANAGEMENT" => "RANGE MANAGEMENT".titleize,
        "RELIGIOUS STUDIES" => "RELIGIOUS STUDIES".titleize,
        "RHETORIC" => "RHETORIC".titleize,
        "ROMANCE LANG & LIT" => "ROMANCE LANGUAGES AND LITERATURES".titleize,
        "SCANDINAV LANG & LIT" => "SCANDINAVIAN LANGUAGES AND LITERATURES".titleize,
        "SCANDINAVIAN" => "SCANDINAVIAN".titleize,
        "SCIENCE & MATH ED" => "SCIENCE AND MATHEMATICS EDUCATION".titleize,
        "SLAVIC LANG & LIT" => "SLAVIC LANGUAGES AND LITERATURES".titleize,
        "SO&SOEAST ASIAN STDS" => "SOUTH AND SOUTHEAST ASIAN STUDIES".titleize,
        "SOCIAL WELFARE" => "SOCIAL WELFARE".titleize,
        "SOCIETY&ENVIRONMENT" => "SOCIETY & ENVIRONMENT".titleize,
        "SOCIOL & DEMOGRAPHY" => "SOCIOLOGY AND DEMOGRAPHY".titleize,
        "SOCIOLOGY" => "SOCIOLOGY".titleize,
        "SPANISH" => "SPANISH".titleize,
        "SPANISH,OPT C, PLAN1" => "SPANISH - OPTION C, PLAN 1:  IBERIAN LANGUAGES AND LITERATURES".titleize,
        "SPANISH,OPT C, PLAN2" => "SPANISH - OPTION C, PLAN 2:  LATIN-AMERICAN LANGUAGES AND LIT".titleize,
        "SPANISH-OPTION B" => "SPANISH - OPTION B: LUSO-BRAZILIAN LANGUAGE AND LITERATURE".titleize,
        "SPANISH-OPTION D" => "SPANISH - OPTION D: HISPANIC LANGUAGES AND BILINGUAL ISSUES".titleize,
        "SPECIAL EDUCATION" => "SPECIAL EDUCATION".titleize,
        "STATISTICS" => "STATISTICS".titleize,
        "THEATR&PERFORMCE STD" => "THEATER AND PERFORMANCE STUDIES".titleize,
        "TRANSLATIONAL MED" => "TRANSLATIONAL MEDICINE".titleize,
        "UC DAVIS" => "UC DAVIS".titleize,
        "UC LOS ANGELES" => "UC LOS ANGELES".titleize,
        "UC SAN DIEGO" => "UC SAN DIEGO".titleize,
        "UC SAN FRANCISCO" => "UC SAN FRANCISCO".titleize,
        "UC SANTA CRUZ" => "UC SANTA CRUZ".titleize,
        "UNDEC - ENG" => "UNDECLARED - ENGINEERING".titleize,
        "UNDECLARED" => "UNDECLARED".titleize,
        "URBAN DESIGN" => "URBAN DESIGN".titleize,
        "URBAN STUDIES" => "URBAN STUDIES".titleize,
        "VISION SCIENCE" => "VISION SCIENCE".titleize
      }

    end
  end
end
