classroomPrefixes top-level constant
Maps Chinese building name prefixes to English abbreviations.
Longer prefixes must precede their substrings (e.g., 科研大樓 before 科研) since the first match wins.
Source: OIA Guide for New Students.
Implementation
const classroomPrefixes = {
'科研大樓': 'HYTRB',
'科研': 'HYTRB',
'一教': '1TB',
'二教': '2TB',
'三教': '3TB',
'四教': '4TB',
'五教': '5TB',
'六教': '6TB',
'共同': 'GSB',
'綜科': 'CB',
'設計': 'DB',
'土木': 'CEB',
'億光': 'EB',
'光華館': 'GHB',
'光華': 'GHB',
'化工': 'ChemEB',
'化學': 'ChemB',
'先鋒': 'PIB',
'分子館': 'MSE',
'分子': 'MSE',
'紡織': 'TEB',
'國百館': 'SYMH',
'材資': 'MRB',
};