// Attach to window to ensure global access window.switchHuriTable = function(mode) { var tbody = document.getElementById('huri-data-target'); var btnMod = document.getElementById('btn-mod'); var btnLeg = document.getElementById('btn-leg'); // Button Styling if (mode === 'modern') { if(btnMod) btnMod.classList.add('active'); if(btnLeg) btnLeg.classList.remove('active'); } else { if(btnLeg) btnLeg.classList.add('active'); if(btnMod) btnMod.classList.remove('active'); } // Data Library var data = []; if (mode === 'modern') { data = [ ["Acoustic Alignment", "Generative MLM", "Predictive hallucination vectors."], ["Silence Handling", "Priors-based", "Emission of Glitch Tokens (OWKN'S)."], ["Decoding Speed", "Parallel (NAR)", "Bag of subwords (NTWAED) artifacts."], ["Data Source", "LLM-Scale BPE", "Inherent risk from uncurated OCR errors."] ]; } else { data = [ ["Acoustic Alignment", "Strict Monotonic", "Silent output during audio gaps."], ["Silence Handling", "Blank Token", "Robust against stochastic noise."], ["Decoding Speed", "Sequential (AR)", "Higher latency; phonetic string integrity."], ["Data Source", "Verified Dictionaries", "Depends on localized linguistic quality."] ]; } // Injection var rows = ""; for (var i = 0; i < data.length; i++) { rows += ""; rows += "" + data[i][0] + ""; rows += "" + data[i][1] + ""; rows += "" + data[i][2] + ""; rows += ""; } tbody.innerHTML = rows; };