Give me a ppt of 65 slides in clean white slides about disorders of speech and language from dejong

Reading File
Reading File
Reading File
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Finding Sources
Reading File
Reading File
Running Command

mkdir -p /home/daytona/workspace/speech-language-ppt && ls /home/daytona/workspace/speech-language-ppt/

Writing File

~/speech-language-ppt/build.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Disorders of Speech and Language";
pres.author = "DeJong / Adams & Victor";

// ─── DESIGN TOKENS ───────────────────────────────────────────────
const WHITE    = "FFFFFF";
const BLACK    = "111111";
const DARK     = "1A2D4A";   // deep navy – title/accent bars
const ACCENT   = "2E6DB4";   // medium blue – headings / dividers
const LIGHT    = "E8F0F9";   // very light blue – section banners
const GRAY     = "F5F5F5";   // slide background (off-white/clean)
const MID_GRAY = "7A8CA0";   // subtext
const RED      = "C0392B";   // clinical alerts

const FONT = "Calibri";

// ─── HELPER FUNCTIONS ─────────────────────────────────────────────

function addTitleSlide(title, subtitle) {
  const s = pres.addSlide();
  s.background = { color: DARK };
  // decorative bar bottom
  s.addShape(pres.ShapeType.rect, { x: 0, y: 4.9, w: 10, h: 0.72, fill: { color: ACCENT }, line: { color: ACCENT } });
  s.addText(title, {
    x: 0.6, y: 1.5, w: 8.8, h: 1.8,
    fontSize: 38, bold: true, color: WHITE, fontFace: FONT,
    align: "center", valign: "middle", wrap: true
  });
  if (subtitle) {
    s.addText(subtitle, {
      x: 0.6, y: 3.4, w: 8.8, h: 0.7,
      fontSize: 18, color: "A8C8E8", fontFace: FONT, align: "center", italic: true
    });
  }
  s.addText("Adams & Victor's Principles of Neurology  |  DeJong's Neurological Examination", {
    x: 0.5, y: 5.0, w: 9, h: 0.5,
    fontSize: 11, color: WHITE, fontFace: FONT, align: "center"
  });
  return s;
}

function addSectionSlide(title) {
  const s = pres.addSlide();
  s.background = { color: ACCENT };
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.18, h: 5.625, fill: { color: DARK }, line: { color: DARK } });
  s.addText(title, {
    x: 0.5, y: 1.8, w: 9, h: 2,
    fontSize: 34, bold: true, color: WHITE, fontFace: FONT,
    align: "center", valign: "middle", wrap: true
  });
  return s;
}

function addContentSlide(title, bullets, opts = {}) {
  const s = pres.addSlide();
  s.background = { color: WHITE };
  // top bar
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: DARK }, line: { color: DARK } });
  // title in bar
  s.addText(title, {
    x: 0.3, y: 0, w: 9.4, h: 0.75,
    fontSize: 18, bold: true, color: WHITE, fontFace: FONT,
    valign: "middle", margin: 0
  });
  // accent left stripe
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0.75, w: 0.07, h: 4.875, fill: { color: ACCENT }, line: { color: ACCENT } });

  // bullet items
  const textItems = [];
  bullets.forEach((b, i) => {
    const isLast = i === bullets.length - 1;
    if (typeof b === "string") {
      textItems.push({ text: b, options: { bullet: { code: "2022" }, fontSize: opts.fontSize || 15, color: BLACK, fontFace: FONT, breakLine: !isLast, paraSpaceAfter: 4 } });
    } else {
      // object with text and optional bold/sub-bullet
      textItems.push({ text: b.text, options: { bullet: { code: b.sub ? "25AA" : "2022" }, indentLevel: b.sub ? 1 : 0, fontSize: b.sub ? (opts.fontSize || 15) - 1 : (opts.fontSize || 15), color: b.color || BLACK, bold: b.bold || false, fontFace: FONT, breakLine: !isLast, paraSpaceAfter: b.sub ? 2 : 4 } });
    }
  });

  s.addText(textItems, {
    x: 0.25, y: 0.88, w: 9.5, h: 4.6,
    valign: "top", wrap: true
  });

  // slide number (bottom right)
  return s;
}

function addTwoColSlide(title, leftTitle, leftBullets, rightTitle, rightBullets) {
  const s = pres.addSlide();
  s.background = { color: WHITE };
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: DARK }, line: { color: DARK } });
  s.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 18, bold: true, color: WHITE, fontFace: FONT, valign: "middle", margin: 0 });
  // divider
  s.addShape(pres.ShapeType.rect, { x: 4.95, y: 0.85, w: 0.07, h: 4.6, fill: { color: LIGHT }, line: { color: LIGHT } });

  // left column header
  s.addText(leftTitle, { x: 0.2, y: 0.85, w: 4.5, h: 0.4, fontSize: 13, bold: true, color: ACCENT, fontFace: FONT });
  const lItems = leftBullets.map((b, i) => ({ text: b, options: { bullet: { code: "2022" }, fontSize: 13, color: BLACK, fontFace: FONT, breakLine: i < leftBullets.length - 1, paraSpaceAfter: 3 } }));
  s.addText(lItems, { x: 0.2, y: 1.28, w: 4.6, h: 4.1, valign: "top", wrap: true });

  // right column header
  s.addText(rightTitle, { x: 5.15, y: 0.85, w: 4.5, h: 0.4, fontSize: 13, bold: true, color: ACCENT, fontFace: FONT });
  const rItems = rightBullets.map((b, i) => ({ text: b, options: { bullet: { code: "2022" }, fontSize: 13, color: BLACK, fontFace: FONT, breakLine: i < rightBullets.length - 1, paraSpaceAfter: 3 } }));
  s.addText(rItems, { x: 5.15, y: 1.28, w: 4.6, h: 4.1, valign: "top", wrap: true });

  return s;
}

function addTableSlide(title, headers, rows) {
  const s = pres.addSlide();
  s.background = { color: WHITE };
  s.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: DARK }, line: { color: DARK } });
  s.addText(title, { x: 0.3, y: 0, w: 9.4, h: 0.75, fontSize: 18, bold: true, color: WHITE, fontFace: FONT, valign: "middle", margin: 0 });
  const tableRows = [
    headers.map(h => ({ text: h, options: { bold: true, color: WHITE, fill: ACCENT, fontSize: 12, fontFace: FONT, align: "center" } })),
    ...rows.map((row, ri) => row.map(cell => ({ text: cell, options: { fontSize: 11, fontFace: FONT, color: BLACK, fill: ri % 2 === 0 ? WHITE : LIGHT } })))
  ];
  s.addTable(tableRows, {
    x: 0.2, y: 0.9, w: 9.6,
    rowH: 0.42,
    border: { color: "D0D8E4", pt: 0.5 },
    autoPage: false
  });
  return s;
}

// ─────────────────────────────────────────────────────────────────
//  SLIDE DEFINITIONS
// ─────────────────────────────────────────────────────────────────

// SLIDE 1 — Title
addTitleSlide(
  "Disorders of Speech and Language",
  "Neurological Examination & Clinical Neurology"
);

// SLIDE 2 — Overview / Outline
addContentSlide("Lecture Outline", [
  { text: "PART I: Neuroanatomy of Language", bold: true },
  { text: "Anatomy of cerebral language areas", sub: true },
  { text: "Dominant hemisphere and lateralization", sub: true },
  { text: "PART II: Aphasia — Classification & Types", bold: true },
  { text: "Broca, Wernicke, Global, Conduction, Anomic, Transcortical", sub: true },
  { text: "PART III: Special Aphasias & Related Disorders", bold: true },
  { text: "Alexia, Agraphia, Acalculia, Apraxia of Speech", sub: true },
  { text: "PART IV: Disorders of Articulation & Phonation", bold: true },
  { text: "Dysarthria subtypes, Dysphonia, Mutism", sub: true },
  { text: "PART V: Examination, Testing & Management", bold: true },
]);

// ─── SECTION I ────────────────────────────────────────────────────
addSectionSlide("PART I\nNeuroanatomy of Speech & Language");

// SLIDE 4
addContentSlide("The Language Dominant Hemisphere", [
  "Language function is lateralized to one cerebral hemisphere — the dominant hemisphere",
  "In >95% of right-handed individuals and ~70% of left-handers: left hemisphere dominates",
  "The 'dominant' hemisphere is so named for its control of language, not handedness per se",
  "Familial patterns of left-handedness suggest genetic determinants of cerebral dominance",
  "Sodium amytal (Wada) test and fMRI confirm language lateralization pre-surgically",
  "Crossed aphasia: rare condition where aphasia follows right-hemisphere lesion in right-hander",
]);

// SLIDE 5
addContentSlide("Perisylvian Language Zone", [
  "Language function is centered around the Sylvian fissure (perisylvian region) in the dominant hemisphere",
  "Wernicke area: posterior superior temporal gyrus (Brodmann areas 22) — auditory comprehension",
  "Broca area: posterior inferior frontal gyrus (Brodmann areas 44 & 45) — speech production / motor output",
  "Angular gyrus (area 39): connects visual with auditory language; critical for reading",
  "Supramarginal gyrus (area 40): phonological processing, repetition",
  "Putative Exner writing area: posterior second frontal convolution — graphomotor output (controversial)",
]);

// SLIDE 6
addContentSlide("White Matter Connections of the Language System", [
  "Arcuate fasciculus: major bundle running through isthmus of temporal lobe, connecting Wernicke to Broca area",
  "External and extreme capsules: additional corticocortical connections through subcortical white matter of the insula",
  "Short association fibers: connect Broca area to lower rolandic (precentral) cortex — innervates lips, tongue, pharynx, larynx",
  "Perisylvian areas also project to striatum and thalamus",
  "Corpus callosum and anterior commissure: connect dominant and nondominant language areas",
  "Disruption of arcuate fasciculus → conduction aphasia (repetition failure with preserved comprehension/fluency)",
]);

// SLIDE 7
addContentSlide("Two Parallel Language Systems", [
  { text: "Auditory-verbal system:", bold: true },
  { text: "Spoken words perceived → Wernicke area → arcuate fasciculus → Broca area → speech output", sub: true },
  { text: "Visual-graphemic system:", bold: true },
  { text: "Written words seen → angular gyrus → Wernicke area → motor writing areas", sub: true },
  "Both systems develop separately but are integrated components of the 'propositional' or semantic system",
  "Semantic system: understanding and generating meaningful language, independent of modality",
  "Historical context: Broca (1865), Dax (1836), Wernicke (1874) — established the anatomic-psychologic framework",
]);

// SLIDE 8
addContentSlide("Historical Theories of Aphasia", [
  { text: "Broca (1861–65):", bold: true },
  { text: "Lesion of insula/operculum → loss of speech; always left hemisphere", sub: true },
  { text: "Wernicke (1874):", bold: true },
  { text: "Two major loci: anterior (motor-expressive) + posterior (sensory-receptive); connected by arcuate fasciculus", sub: true },
  { text: "Pierre Marie:", bold: true },
  { text: "Favored a single central language zone in perisylvian region; the degree of deficit proportional to lesion size", sub: true },
  { text: "Head, Wilson, Brain, Goldstein:", bold: true },
  { text: "Supported a summation model: aphasia = result of damage to input/output modalities relative to central language zone", sub: true },
  "Modern view: both localization AND mass-action principles apply; imaging has refined classical maps",
]);

// SLIDE 9
addContentSlide("Functional Imaging of Language Networks", [
  "PET and fMRI have largely replaced autopsy as tools for language localization",
  "Functional MRI (fMRI): language tasks activate Broca and Wernicke areas and their connections",
  "DTI (Diffusion Tensor Imaging): maps white matter tracts including arcuate fasciculus in individual patients",
  "The classical localization model is broadly confirmed, but individual variation is significant",
  "Sub-cortical structures (thalamus, basal ganglia) also play a role in language — subcortical aphasia",
  "Critical insight: language is a network, not a single 'center' — disruption anywhere in the network produces deficits",
]);

// ─── SECTION II ───────────────────────────────────────────────────
addSectionSlide("PART II\nAphasia — Classification & Types");

// SLIDE 11 — Definition of Aphasia
addContentSlide("Aphasia — Definition & Overview", [
  "Aphasia: acquired disorder of language from brain damage affecting the production or comprehension of speech/written language",
  "Always results from lesion in the dominant hemisphere in adults",
  "Distinct from dysarthria (motor articulation) and mutism (absence of speech)",
  "Key dimensions assessed: fluency, comprehension, repetition, naming, reading, writing",
  { text: "Fluent aphasia:", bold: true },
  { text: "Normal phrase length and rate but with paraphasias (Wernicke, conduction, anomic, transcortical sensory)", sub: true },
  { text: "Nonfluent aphasia:", bold: true },
  { text: "Reduced output, short phrases, effortful speech (Broca, global, transcortical motor)", sub: true },
]);

// SLIDE 12
addTableSlide("Classification of Aphasia — Quick Reference", 
  ["Type", "Fluency", "Comprehension", "Repetition", "Naming", "Lesion"],
  [
    ["Broca", "Nonfluent", "Preserved", "Impaired", "Impaired", "Inf. frontal (Broca area)"],
    ["Wernicke", "Fluent", "Impaired", "Impaired", "Impaired", "Post. sup. temporal"],
    ["Global", "Nonfluent", "Impaired", "Impaired", "Impaired", "Large MCA territory"],
    ["Conduction", "Fluent", "Preserved", "Severely impaired", "Mildly impaired", "Arcuate fasciculus"],
    ["Anomic", "Fluent", "Preserved", "Preserved", "Impaired", "Angular gyrus / variable"],
    ["Transcortical Motor", "Nonfluent", "Preserved", "Preserved", "Impaired", "Ant. to Broca area"],
    ["Transcortical Sensory", "Fluent", "Impaired", "Preserved", "Impaired", "Post. to Wernicke area"],
    ["Mixed Transcortical", "Nonfluent", "Impaired", "Preserved", "Impaired", "Watershed bilateral"],
  ]
);

// SLIDE 13 — Broca Aphasia
addContentSlide("Broca Aphasia (Expressive / Motor Aphasia)", [
  "Lesion: posterior inferior frontal gyrus (Broca area, Brodmann 44–45) ± adjacent structures in dominant hemisphere",
  "Nonfluent, effortful, telegraphic speech — short phrases with missing small words (agrammatism)",
  "Paraphasias: phonemic (literal) substitutions are common; may also omit word endings",
  "Comprehension: relatively preserved for conversational speech; impaired for syntactically complex sentences",
  "Repetition: impaired, though less severely than output",
  "Naming: impaired",
  "Reading and writing: impaired in parallel with speech",
  "Patient is often acutely aware of deficits → depression and frustration are common",
  "Pure Broca area lesion alone may cause only mild, transient dysphasia; larger opercular lesion required for classic syndrome",
]);

// SLIDE 14 — Wernicke Aphasia
addContentSlide("Wernicke Aphasia (Receptive / Sensory Aphasia)", [
  "Lesion: posterior superior temporal gyrus (Wernicke area, Brodmann 22) of dominant hemisphere",
  "Fluent, effortless speech but with paraphasias — phonemic and semantic substitutions",
  "Neologisms: invented words with no recognizable relationship to target (e.g., 'slifer' for 'fork')",
  "Jargon aphasia: severely disordered speech containing many neologisms and paraphasias",
  "Comprehension: severely impaired — patient cannot understand spoken or written language",
  "Repetition: severely impaired",
  "Patients are often unaware of errors (anosognosia) — no frustration, may appear unconcerned",
  "Associated findings: right hemianopia, right hemisensory loss (but usually NO hemiplegia — Broca area spared)",
  "Psychiatric misdiagnosis common — fluent jargon without apparent distress can mimic psychosis",
]);

// SLIDE 15 — Global Aphasia
addContentSlide("Global Aphasia", [
  "All language functions severely impaired: fluency, comprehension, repetition, naming, reading, writing",
  "Lesion: large infarction involving entire perisylvian language zone — typically occlusion of left middle cerebral artery",
  "Patient cannot generate meaningful words or understand any spoken or written language",
  "Often associated with: right hemiplegia, hemianopia, hemisensory loss",
  "Prognosis for language recovery is poor, especially in older patients with large lesions",
  "Some patients develop 'global aphasia without hemiplegia' (more posterior or subcortical lesions)",
  "Even severely affected patients often retain ability to hum, swear, or produce emotionally loaded words — emotional language circuits (nondominant hemisphere) are relatively preserved",
]);

// SLIDE 16 — Conduction Aphasia
addContentSlide("Conduction Aphasia", [
  "Hallmark: severely disproportionate impairment of repetition, with relatively preserved fluency and comprehension",
  "Lesion: usually in the arcuate fasciculus (supramarginal gyrus, parietal operculum) — disconnects Wernicke from Broca area",
  "Speech: fluent but with frequent phonemic paraphasias and conduit d'approche (multiple attempts to correct errors)",
  "Comprehension: largely preserved",
  "Repetition: severely impaired — cannot repeat even simple sentences or words",
  "Naming: mildly to moderately impaired",
  "Associated: may have cortical sensory loss, mild weakness of right hand",
  "Key teaching point: if repetition is dramatically worse than comprehension, think conduction aphasia",
]);

// SLIDE 17 — Anomic Aphasia
addContentSlide("Anomic Aphasia", [
  "Isolated impairment of word-finding (anomia) with otherwise fluent, grammatically intact speech",
  "Comprehension: preserved; Repetition: preserved",
  "Speech is fluent but interrupted by word-finding pauses, circumlocutions ('the thing you write with')",
  "Naming: consistently impaired — cannot produce the word even when recognized",
  "Lesion: most often angular gyrus or posterior temporal–parietal junction; also seen with any dominant hemisphere lesion",
  "Anomia is the most common and least localizing form of aphasia",
  "Can be the residual deficit after recovery from more severe aphasia",
  "Also seen in: metabolic encephalopathy, Alzheimer's disease, medication effects — less localizing than other aphasias",
]);

// SLIDE 18 — Transcortical Aphasias
addTwoColSlide(
  "Transcortical Aphasias — Preserved Repetition",
  "Transcortical Motor Aphasia",
  [
    "Nonfluent, reduced spontaneous speech",
    "Comprehension: preserved",
    "Repetition: PRESERVED (key feature)",
    "Naming: impaired",
    "Lesion: anterior/superior to Broca area — supplementary motor area (SMA) or its connections",
    "Often seen in anterior cerebral artery territory infarction",
    "Patient can repeat but shows marked reduction in spontaneous verbal output",
  ],
  "Transcortical Sensory Aphasia",
  [
    "Fluent speech with semantic paraphasias and echolalia",
    "Comprehension: severely impaired",
    "Repetition: PRESERVED (key feature) — may echo examiner",
    "Naming: impaired",
    "Lesion: posterior to Wernicke area — watershed zone (posterior temporal/parietal)",
    "Seen in: watershed infarction, Alzheimer's disease",
    "Resembles Wernicke but with intact repetition",
  ]
);

// SLIDE 19 — Mixed Transcortical / Isolation Aphasia
addContentSlide("Mixed Transcortical Aphasia (Isolation Syndrome)", [
  "All language functions severely impaired EXCEPT repetition, which is relatively preserved",
  "Patients may repeat (and echo) what is said to them, but cannot initiate or comprehend",
  "Lesion: bilateral watershed infarctions isolating the perisylvian language zone from the rest of the cortex",
  "Mechanism: cardiac arrest, prolonged hypotension, or severe bilateral carotid stenosis sparing the MCA territory",
  "Echolalia: automatic repetition of the examiner's words — characteristic feature",
  "Patient behaves as though the perisylvian language network is preserved but cut off from meaning-generating cortex",
]);

// SLIDE 20
addContentSlide("Paraphasias — Types and Significance", [
  { text: "Phonemic (Literal) Paraphasia:", bold: true },
  { text: "Substitution of one or more sounds (e.g., 'breen' for 'green') — seen in Broca and conduction aphasia", sub: true },
  { text: "Semantic (Verbal) Paraphasia:", bold: true },
  { text: "Substitution of a related word (e.g., 'chair' for 'table') — seen in Wernicke aphasia", sub: true },
  { text: "Neologism:", bold: true },
  { text: "Invented nonword ('fliber') — seen in Wernicke/jargon aphasia", sub: true },
  { text: "Perseveration:", bold: true },
  { text: "Inappropriate repetition of a previous response — frontal or diffuse damage", sub: true },
  { text: "Conduit d'approche:", bold: true },
  { text: "Repeated self-corrections approaching target — conduction aphasia", sub: true },
  "The pattern of paraphasias helps localize the lesion and classify the aphasia type",
]);

// ─── SECTION III ──────────────────────────────────────────────────
addSectionSlide("PART III\nSpecial Aphasias & Related Language Disorders");

// SLIDE 22 — Subcortical Aphasia
addContentSlide("Subcortical Aphasia", [
  "Aphasia can result from lesions in the thalamus, basal ganglia, and internal capsule",
  { text: "Thalamic aphasia:", bold: true },
  { text: "Fluent but hypophonic speech; semantic paraphasias; impaired naming; preserved repetition; often transient", sub: true },
  { text: "Caudate / striatal aphasia:", bold: true },
  { text: "Often hypophonic, variable fluency; may resemble Broca or Wernicke aphasia depending on lesion location", sub: true },
  "Subcortical aphasia often co-occurs with dysarthria (internal capsule lesions)",
  "Mechanism: disruption of thalamocortical loops that support and modulate language cortex",
  "Recovery from subcortical aphasia is often better than from cortical aphasia",
]);

// SLIDE 23 — Pure Word Deafness
addContentSlide("Pure Word Deafness (Auditory Verbal Agnosia)", [
  "Selective inability to comprehend spoken language with intact reading, writing, and non-verbal hearing",
  "Patient can hear sounds (not deaf) but cannot decode spoken words",
  "Lesion: bilateral or dominant temporal cortex — disconnects auditory cortex from Wernicke area",
  "Speech output: often normal or mildly impaired (not the nonfluent agrammatic pattern of Broca)",
  "Reading and writing: preserved — only spoken word comprehension fails",
  "Clinically: patient seems deaf to speech, speaks relatively normally, reads and writes",
  "Rare; most reported with bilateral temporal lesions (e.g., bilateral MCA territory infarctions)",
]);

// SLIDE 24 — Alexia
addContentSlide("Alexia — Acquired Reading Disorders", [
  { text: "Alexia with Agraphia (Parietal Alexia):", bold: true },
  { text: "Cannot read OR write; lesion in angular gyrus (Brodmann 39) — disconnects visual from language areas", sub: true },
  { text: "Alexia without Agraphia (Pure Alexia / Occipital Alexia):", bold: true },
  { text: "Cannot read, but can write and speak normally; lesion in left occipital cortex + splenium of corpus callosum", sub: true },
  { text: "Mechanism:", bold: true },
  { text: "Visual input reaches right occipital cortex but cannot cross to left angular gyrus due to splenial lesion", sub: true },
  "Classic 'can write a sentence but immediately cannot read what they wrote'",
  "Associated with right homonymous hemianopia (left occipital cortex lesion)",
  { text: "Frontal Alexia:", bold: true },
  { text: "Reading impairment associated with Broca area damage; difficulty with grammatical words and morphology", sub: true },
]);

// SLIDE 25 — Agraphia
addContentSlide("Agraphia — Acquired Writing Disorders", [
  "Agraphia: acquired inability to write from brain damage (not due to motor weakness alone)",
  { text: "Aphasic agraphia:", bold: true },
  { text: "Writing errors parallel spoken language errors; occurs with most aphasia types", sub: true },
  { text: "Pure agraphia:", bold: true },
  { text: "Writing impaired but spoken language preserved; rare; associated with supplementary motor area or posterior frontal lesions", sub: true },
  { text: "Apraxic agraphia:", bold: true },
  { text: "Lost skilled movements for writing; letters malformed; associated with parietal lesions", sub: true },
  { text: "Spatial agraphia:", bold: true },
  { text: "Letters correct but spatial arrangement disordered; associated with nondominant (right) hemisphere lesions", sub: true },
  "Writing is often the most sensitive indicator of mild aphasic disturbance",
]);

// SLIDE 26 — Acalculia
addContentSlide("Acalculia — Acquired Calculation Disorders", [
  "Acalculia: acquired impairment in arithmetic and mathematical operations from brain damage",
  "Gerstmann Syndrome: combination of acalculia + agraphia + finger agnosia + left-right disorientation",
  "Lesion: dominant angular gyrus / posterior parietal cortex",
  "Primary acalculia: specific impairment in numerical calculation, not explained by language/reading deficits",
  "Secondary acalculia: calculation difficulty secondary to alexia (cannot read numbers) or agraphia (cannot write them)",
  "Spatial acalculia: difficulty aligning numbers in columns (right hemisphere, parietal lesion)",
  "Assessment: serial 7s, simple arithmetic (7x8, 100-7), multi-digit multiplication/division",
]);

// SLIDE 27 — Apraxia of Speech
addContentSlide("Apraxia of Speech", [
  "Disorder of speech motor programming — cannot coordinate articulatory movements for voluntary speech",
  "Distinguished from dysarthria: articulatory muscles are NOT weak or paralyzed",
  "Distinguished from aphasia: no language comprehension or writing deficits",
  "Key features: inconsistent speech errors, groping articulatory movements, effortful speech, islands of fluency in automatic speech",
  "Speech is worse with voluntary, propositional speech; automatic speech (counting, singing) is better",
  "Lesion: Broca area (opercular region) of dominant hemisphere",
  "Often co-occurs with Broca aphasia but can occur in isolation",
  "Diagnosis: probe with repeated attempts at same word — errors inconsistent (vs. consistent in dysarthria)",
]);

// SLIDE 28 — Prosody Disorders
addContentSlide("Disorders of Prosody", [
  "Prosody: the melody, rhythm, stress, and intonation of speech",
  { text: "Dysprosody:", bold: true },
  { text: "Abnormal prosodic patterns — flat, monotone, robotic speech", sub: true },
  { text: "Aphasic dysprosody:", bold: true },
  { text: "Altered stress and intonation associated with Broca aphasia; speech sounds foreign (foreign accent syndrome)", sub: true },
  { text: "Affective/Emotional Prosody:", bold: true },
  { text: "Produced and perceived primarily by the nondominant (right) hemisphere", sub: true },
  { text: "Right hemisphere lesions → aprosodia:", bold: true },
  { text: "Cannot convey or interpret emotional tone of speech despite intact propositional language", sub: true },
  "Motor aprosodia: right frontal lesion → cannot produce emotional intonation",
  "Sensory aprosodia: right temporal lesion → cannot interpret emotional tone of others' speech",
]);

// SLIDE 29 — Mutism
addContentSlide("Mutism", [
  "Mutism: complete absence of verbal output — patient does not speak at all",
  { text: "Akinetic mutism:", bold: true },
  { text: "Lesion in anterior cingulate cortex / SMA — patient is awake, eyes open, does not speak or move spontaneously", sub: true },
  { text: "Transcortical motor aphasia (severe):", bold: true },
  { text: "Can progress to functional mutism if SMA and frontal output areas bilaterally affected", sub: true },
  { text: "Bilateral SMA lesions:", bold: true },
  { text: "Transient mutism followed by transcortical motor aphasia pattern; full recovery common", sub: true },
  { text: "Psychogenic mutism:", bold: true },
  { text: "No structural lesion; seen in conversion disorder, severe depression, elective mutism in children", sub: true },
  "Cerebellar mutism: seen in posterior fossa surgery, especially in children — transient but severe",
]);

// SLIDE 30 — Nondominant Hemisphere Language
addContentSlide("Nondominant Hemisphere Language Functions", [
  "Right hemisphere does not control propositional language but contributes to language in important ways",
  "Discourse and narrative: understanding context, drawing inferences, interpreting indirect meaning (e.g., sarcasm, metaphor)",
  "Emotional prosody: perceiving and producing the emotional tone and stress patterns of speech",
  "Pragmatics: using language appropriately in social context",
  "Right hemisphere lesions: flat affect in speech, impaired humor comprehension, inability to detect sarcasm/indirect meaning",
  "Patients with right hemisphere strokes often communicate propositional language well but lose communicative richness",
  "Clinically important: patients may appear communicatively intact on standard aphasia batteries but are functionally impaired",
]);

// ─── SECTION IV ───────────────────────────────────────────────────
addSectionSlide("PART IV\nDisorders of Articulation and Phonation");

// SLIDE 32 — Normal Speech Production
addContentSlide("Normal Speech Production — Anatomy", [
  "Speech requires coordinated activity of: respiratory muscles, larynx, pharynx, palate, tongue, lips",
  "Innervation: vagal (X), hypoglossal (XII), facial (VII), phrenic (C3–C5) nerves",
  "All motor nuclei receive bilateral corticobulbar control from both motor cortices",
  "Extrapyramidal modulation: cerebellum and basal ganglia refine and coordinate articulatory movements",
  { text: "Phonation:", bold: true },
  { text: "Larynx produces vocal sounds; pitch determined by tension of vocal cords via intrinsic laryngeal muscles", sub: true },
  { text: "Articulation:", bold: true },
  { text: "Pharynx, palate, tongue, and lips modify sound — vowels are laryngeal; consonants are largely articulatory", sub: true },
  "Clinical testing: 'Methodist Episcopal'; rapid lingual (la-la-la), labial (me-me-me), guttural (k-k-k) sounds",
]);

// SLIDE 33 — Dysarthria Definition & Classification
addContentSlide("Dysarthria — Definition and Classification", [
  "Dysarthria: disorder of speech articulation due to weakness, paralysis, incoordination, or altered tone of articulatory muscles",
  "Anarthria: the most severe form — complete inability to produce intelligible speech",
  "Key distinction: in pure dysarthria, language (comprehension, reading, writing) is fully intact",
  { text: "Five major types (Adams & Victor / DeJong):", bold: true },
  { text: "1. Lower motor neuron (neuromuscular) dysarthria", sub: true },
  { text: "2. Spastic (pseudobulbar) dysarthria", sub: true },
  { text: "3. Rigid (extrapyramidal) dysarthria", sub: true },
  { text: "4. Ataxic (cerebellar) dysarthria", sub: true },
  { text: "5. Hypo- and hyperkinetic dysarthria", sub: true },
]);

// SLIDE 34 — LMN Dysarthria
addContentSlide("Lower Motor Neuron Dysarthria", [
  "Cause: disease of motor nuclei (medulla, lower pons) or their peripheral extensions",
  "Examples: ALS (bulbar type), Guillain-Barré, myasthenia gravis, bulbar poliomyelitis",
  "Features: slurred, indistinct speech; difficulty with vibratives (r); nasal speech (palatal weakness)",
  "Tongue: shriveled, inert, fasciculating — lies on floor of mouth",
  "Lips: lax and tremulous",
  "Saliva pools in mouth (dysphagia + drooling)",
  "Voice: dysphonia with rasping monotone due to vocal cord paralysis",
  "Advanced: complete anarthria — lingual and labial consonants not produced at all",
  "Bilateral: more severe than unilateral (bilateral corticobulbar or nuclear lesions)",
]);

// SLIDE 35 — Spastic (Pseudobulbar) Dysarthria
addContentSlide("Spastic (Pseudobulbar) Dysarthria", [
  "Cause: bilateral lesions of corticobulbar tracts (upper motor neuron) — pseudobulbar palsy",
  "Etiologies: bilateral strokes (lacunar disease), MS, ALS, TBI, cerebral palsy",
  "Features: slow, labored, thick ('hot potato in the mouth') speech; low-pitched, strained-strangled quality",
  "Hyperreflexia of jaw jerk and gag reflex (UMN sign)",
  "Pseudobulbar affect: inappropriate emotional lability (crying or laughing) — disinhibition of limbic motor circuit",
  "Dysphagia: prominent and often more functionally disabling than dysarthria",
  "Tongue: spastic, slow — cannot be protruded rapidly",
  "No fasciculations or atrophy (UMN — no denervation)",
]);

// SLIDE 36 — Extrapyramidal / Rigid Dysarthria
addContentSlide("Rigid (Extrapyramidal) Dysarthria", [
  "Cause: basal ganglia disease, most typically Parkinson disease",
  "Features: hypokinetic, soft, monotone, rapid (festinating) speech — hypophonia",
  "Reduced loudness (hypophonia) is often the presenting speech complaint",
  "Festination: speech may accelerate with syllables clustered — palilalia (compulsive repetition of syllables or phrases)",
  "Dysarthria in PD: reduced vocal fold adduction, impaired respiratory drive for speech",
  "Other PD speech problems: decreased facial expression (hypomimia), reduced gestural accompaniment",
  "MSA (Multiple System Atrophy): prominent early dysarthria + dysphonia, often mixed with cerebellar features",
  "PSP: severe dysphonia and dysarthria early; characteristic spastic + hypokinetic mix",
]);

// SLIDE 37 — Cerebellar Dysarthria
addContentSlide("Ataxic (Cerebellar) Dysarthria", [
  "Cause: disease of the cerebellum or its connections (cerebellar vermis and hemispheres)",
  "Etiologies: MS, alcohol, spinocerebellar ataxias, stroke, paraneoplastic",
  "Hallmark: scanning or staccato speech — irregular rhythm with abnormal stress on each syllable",
  "Explosive quality: bursts of loudness then trailing off; syllables have equal stress (metric quality)",
  "Slowed articulation with irregular rhythm — resembles intoxicated speech ('drunken dysarthria')",
  "Associated ataxic features: limb ataxia, nystagmus, intention tremor, gait ataxia",
  "Cerebellar dysarthria reflects decomposition of movement — each component of speech is imprecise and poorly timed",
  "Test: 'British Constitution', 'Methodist Episcopal' — stress abnormalities become pronounced",
]);

// SLIDE 38 — Hyperkinetic Dysarthria
addContentSlide("Hyperkinetic Dysarthria", [
  "Caused by involuntary movements affecting speech musculature",
  { text: "Choreic dysarthria:", bold: true },
  { text: "Irregular, unpredictable speech interruptions by involuntary movements; seen in Huntington disease, chorea", sub: true },
  { text: "Dystonic dysarthria:", bold: true },
  { text: "Prolonged, irregular speech distortions; voice may be strained-strangled; seen in dystonia, Wilson disease", sub: true },
  { text: "Essential (voice) tremor:", bold: true },
  { text: "Rhythmic oscillation of voice during sustained phonation; worse with intentional speech", sub: true },
  { text: "Spasmodic dysphonia:", bold: true },
  { text: "Involuntary laryngeal spasms causing voice breaks; adductor type more common (strained, effortful)", sub: true },
  { text: "Palatal myoclonus:", bold: true },
  { text: "Rhythmic palatal contractions (1–3 Hz) producing clicks; may affect speech and cause objective tinnitus", sub: true },
]);

// SLIDE 39 — Mixed Dysarthria
addContentSlide("Mixed Dysarthria", [
  "Many neurological diseases produce mixtures of dysarthria types",
  { text: "ALS:", bold: true },
  { text: "Mixed spastic + flaccid (LMN) dysarthria — the most characteristic mixed pattern", sub: true },
  { text: "Multiple Sclerosis:", bold: true },
  { text: "Mixed cerebellar + spastic; scanning speech common", sub: true },
  { text: "MSA:", bold: true },
  { text: "Mixed cerebellar + extrapyramidal + lower motor neuron", sub: true },
  { text: "Wilson disease:", bold: true },
  { text: "Mixed dystonic + cerebellar", sub: true },
  { text: "TBI:", bold: true },
  { text: "Mixed spastic + hypokinetic + ataxic depending on lesion distribution", sub: true },
  "Recognition of the mixed pattern helps narrow differential diagnosis",
  "DIVA model (Directions Into Velocities of Articulators): modern framework linking neural lesion to speech output",
]);

// SLIDE 40 — Dysphonia
addContentSlide("Dysphonia — Disorders of Voice", [
  "Dysphonia: disorder of voice quality, pitch, or loudness from laryngeal dysfunction",
  { text: "Unilateral vocal cord paralysis:", bold: true },
  { text: "Hoarse, breathy voice; lesion of recurrent laryngeal nerve (CN X) — mediastinal mass, post-thyroid surgery, aortic aneurysm", sub: true },
  { text: "Bilateral vocal cord paralysis:", bold: true },
  { text: "Stridor and respiratory distress; voice may be nearly absent; Shy-Drager, bilateral thyroid surgery", sub: true },
  { text: "Spasmodic dysphonia (adductor type):", bold: true },
  { text: "Focal laryngeal dystonia; strained-strangled voice with abrupt voice breaks on voiced sounds", sub: true },
  { text: "Spasmodic dysphonia (abductor type):", bold: true },
  { text: "Breathy voice breaks on unvoiced sounds; less common", sub: true },
  "Functional (psychogenic) dysphonia: voice breaks, aphonia, or whispered speech with intact cough",
  "Treatment: Botulinum toxin injection into laryngeal muscles for spasmodic dysphonia",
]);

// SLIDE 41 — Examination of Articulation
addContentSlide("Examination of Articulation and Phonation", [
  "Begin with careful listening to spontaneous speech and reading aloud",
  { text: "Lingual consonants:", bold: true },
  { text: "Have patient say 'la-la-la' rapidly — tests tongue tip mobility", sub: true },
  { text: "Labial consonants:", bold: true },
  { text: "Have patient say 'me-me-me' rapidly — tests lip closure", sub: true },
  { text: "Guttural consonants:", bold: true },
  { text: "Have patient say 'k-k-k-k' rapidly — tests soft palate and posterior pharynx", sub: true },
  "Complex phrases: 'Methodist Episcopal,' 'British Constitution,' 'around the rugged rock'",
  "Assess rate, rhythm, volume, voice quality, resonance (nasal vs. oral)",
  "Palatal function: 'aah' phonation — watch for uvular deviation; nasal speech suggests palatal weakness",
  "Larynx: sustained 'eeee' for voice quality; maximum phonation time (normal ~15–25 sec) reduced in laryngeal disease",
]);

// SLIDE 42 — Nasal Speech & Palatal Disorders
addContentSlide("Nasal Speech and Palatal Disorders", [
  "Hypernasal speech: air escapes through nasal cavity during speech — palatal weakness",
  "Causes: myasthenia gravis, bulbar ALS, diphtheria, post-pharyngeal surgery, cleft palate",
  "Nasal regurgitation of food and liquids: sign of severe palatal paresis",
  "Hyponasal speech: blocked nasal resonance — nasal obstruction, NOT neurological",
  "Testing: ask patient to say 'k-k-k', 'me-me-me'; watch palate move with 'aah'; mirror on nose test",
  "Gag reflex: tests CN IX and X; absent unilaterally in glossopharyngeal/vagal lesion",
  "Normal gag reflex can be absent in healthy adults — does not always indicate pathology",
]);

// ─── SECTION V ────────────────────────────────────────────────────
addSectionSlide("PART V\nExamination, Testing, and Management");

// SLIDE 44 — Language Examination
addContentSlide("Clinical Examination of Language", [
  "Spontaneous speech: assess fluency, rate, phrase length, paraphasia, effort",
  "Comprehension: yes/no questions → single commands → multi-step commands",
  "Repetition: single words → phrases → sentences (e.g., 'No ifs, ands, or buts')",
  "Naming: confrontation naming of objects, colors, body parts (most sensitive for early aphasia)",
  "Reading: aloud (decoding) and reading comprehension (sentence matching)",
  "Writing: dictated words, sentences; spontaneous writing (letter, description)",
  { text: "Boston Diagnostic Aphasia Examination (BDAE):", bold: true },
  { text: "Gold standard formal aphasia battery; provides aphasia type classification", sub: true },
  { text: "Western Aphasia Battery (WAB):", bold: true },
  { text: "Yields Aphasia Quotient (AQ); widely used in clinical and research settings", sub: true },
]);

// SLIDE 45 — Bedside Aphasia Testing
addContentSlide("Bedside Aphasia Screening", [
  { text: "Step 1 — Spontaneous speech:", bold: true },
  { text: "Ask 'What brings you to the hospital?' or ask patient to describe the Cookie Theft picture", sub: true },
  { text: "Step 2 — Comprehension:", bold: true },
  { text: "Point to objects, follow 2-3 step commands: 'Pick up the pen, give it to me, put it on the bed'", sub: true },
  { text: "Step 3 — Repetition:", bold: true },
  { text: "'No ifs, ands, or buts.' — tests repetition of common but syntactically complex phrase", sub: true },
  { text: "Step 4 — Naming:", bold: true },
  { text: "Name objects: pen, watch, watch parts (face, stem, band) — progressive specificity", sub: true },
  { text: "Step 5 — Reading:", bold: true },
  { text: "Read a sentence aloud; read and carry out a written command ('Close your eyes')", sub: true },
  { text: "Step 6 — Writing:", bold: true },
  { text: "Write name, a sentence; write to dictation", sub: true },
]);

// SLIDE 46 — Neuroimaging in Aphasia
addContentSlide("Neuroimaging in Speech and Language Disorders", [
  "MRI is the primary neuroimaging modality for aphasia workup",
  "DWI (diffusion-weighted imaging): identifies acute infarction — essential in acute aphasia",
  "FLAIR: subacute infarction, demyelination, encephalitis, tumor",
  "T1 with contrast: tumor, abscess",
  "Functional MRI (fMRI): pre-surgical language mapping — identifies language hemisphere and specific areas at risk",
  "CT angiography / MR angiography: identifies vessel occlusion or stenosis in acute stroke aphasia",
  "PET FDG: identifies hypometabolism in neurodegenerative aphasias (PPA — primary progressive aphasia)",
  "SPECT: functional assessment when MRI/PET unavailable",
  "Key rule: any acute onset aphasia is a stroke until proven otherwise — obtain neuroimaging urgently",
]);

// SLIDE 47 — Primary Progressive Aphasia
addContentSlide("Primary Progressive Aphasia (PPA)", [
  "Neurodegenerative syndrome: gradual deterioration of language without prominent memory or behavioral changes early",
  { text: "Nonfluent/Agrammatic PPA:", bold: true },
  { text: "Effortful, agrammatic speech; phonemic paraphasias; often tau pathology (CBD, PSP, FTLD-tau)", sub: true },
  { text: "Semantic Variant PPA:", bold: true },
  { text: "Fluent speech, severely impaired naming and single-word comprehension; temporal lobe atrophy; TDP-43 pathology", sub: true },
  { text: "Logopenic Variant PPA:", bold: true },
  { text: "Slow speech with word-finding pauses; impaired repetition; posterior temporal/parietal atrophy; often AD pathology", sub: true },
  "Distinguish from stroke aphasia: onset is gradual; brain MRI shows focal atrophy not infarction",
  "Treatment: no disease-modifying treatment; speech-language therapy can maintain function temporarily",
]);

// SLIDE 48 — Speech in Psychiatric Disorders
addContentSlide("Speech and Language Abnormalities in Psychiatric Disorders", [
  { text: "Schizophrenia:", bold: true },
  { text: "Poverty of speech (alogia), thought blocking, loose associations, tangentiality, neologisms, word salad", sub: true },
  { text: "Formal thought disorder:", bold: true },
  { text: "Derailment (jumping between unrelated topics), flight of ideas (mania), circumstantiality, clang associations", sub: true },
  { text: "Depression:", bold: true },
  { text: "Reduced speech output, slow rate, monotone voice, long latency responses", sub: true },
  { text: "Mania:", bold: true },
  { text: "Pressured speech (rapid, loud, hard to interrupt), flight of ideas, decreased need for pauses", sub: true },
  { text: "Autism Spectrum Disorder:", bold: true },
  { text: "Echolalia, pronoun reversal, unusual prosody, literal interpretation of language", sub: true },
  "Critical distinction: psychiatric language disorders generally show no aphasia on formal testing",
]);

// SLIDE 49 — Stuttering and Cluttering
addContentSlide("Stuttering and Cluttering", [
  { text: "Stuttering (Developmental):", bold: true },
  { text: "Repetitions, prolongations, and blocks on initial sounds/syllables; onset in childhood; 1% of adults; M>F (3:1)", sub: true },
  { text: "Neurogenic (Acquired) Stuttering:", bold: true },
  { text: "Onset after stroke, TBI, or other brain injury; stuttering on non-initial syllables; less anxiety about stuttering", sub: true },
  { text: "Psychogenic Stuttering:", bold: true },
  { text: "Variable onset; often stuttering on all syllables; inconsistent; responds to suggestion/distraction", sub: true },
  { text: "Cluttering:", bold: true },
  { text: "Excessively rapid, irregular speech rate; syllables are compressed or omitted; associated with ADHD and LD", sub: true },
  "Evaluation: complete speech-language pathology assessment, neuroimaging in acquired cases",
  "Treatment: stuttering therapy (fluency shaping, stuttering modification); pharmacotherapy limited",
]);

// SLIDE 50 — Language Development and Regression
addContentSlide("Language Disorders in Children", [
  "Language delay: failure to achieve language milestones — most common early childhood concern",
  { text: "Landau-Kleffner Syndrome:", bold: true },
  { text: "Acquired epileptic aphasia — loss of language in a child who was previously speaking; associated with continuous spike-and-wave during sleep (CSWS)", sub: true },
  { text: "Developmental Language Disorder (DLD):", bold: true },
  { text: "Persistent difficulties with spoken language not explained by hearing, intelligence, or neurological cause", sub: true },
  { text: "Specific Language Impairment:", bold: true },
  { text: "Isolated language delay with normal nonverbal intelligence; affects ~7% of children", sub: true },
  "Red flags: no babbling by 12 months, no single words by 16 months, no 2-word phrases by 24 months, any loss of language",
  "Language regression always warrants investigation — consider epilepsy, metabolic, neurodegenerative causes",
]);

// SLIDE 51 — Aphasia Recovery
addContentSlide("Recovery from Aphasia", [
  "Spontaneous recovery: most rapid in first 3 months, continues for up to 1–2 years",
  "Global aphasia may evolve into Broca aphasia or anomic aphasia with recovery",
  "Factors favoring recovery: young age, smaller lesion, good initial comprehension, high education",
  "Factors predicting poor recovery: large lesion, persistent global aphasia >3 months, old age, bilateral disease",
  "Neuroplasticity: right hemisphere can partially take over language function after left-sided lesions — especially in young patients",
  "Speech-language therapy: shown to be effective — intensity matters; constraint-induced aphasia therapy (CIAT)",
  "Pharmacological aids: memantine, bromocriptine — modest evidence; levodopa may enhance therapy outcomes",
  "Transcranial magnetic stimulation (TMS) and transcranial direct current stimulation (tDCS): investigational but promising",
]);

// SLIDE 52
addContentSlide("Speech Therapy and Rehabilitation", [
  "Speech-Language Pathologist (SLP): central role in assessment and treatment of all communication disorders",
  { text: "Aphasia therapy approaches:", bold: true },
  { text: "Stimulation-facilitation, melodic intonation therapy (MIT), CIAT, conversational therapy", sub: true },
  { text: "Melodic Intonation Therapy (MIT):", bold: true },
  { text: "Uses singing/melodic patterns to facilitate word production in nonfluent aphasia — engages right hemisphere", sub: true },
  { text: "Augmentative and Alternative Communication (AAC):", bold: true },
  { text: "Communication boards, speech-generating devices for severe aphasia", sub: true },
  { text: "Dysarthria therapy:", bold: true },
  { text: "Loud voice (LSVT LOUD for Parkinson), articulatory drills, rate control, prosthetic management", sub: true },
  "LSVT LOUD (Lee Silverman Voice Treatment): high-intensity voice treatment for Parkinson — strong evidence",
  "Dysphagia management: often co-managed with dysarthria; modified diet, swallow maneuvers, feeding therapy",
]);

// SLIDE 53 — Differential Diagnosis Table
addTableSlide("Key Differentials in Speech and Language Disorders",
  ["Disorder", "Fluency", "Comprehension", "Articulation", "Key Feature"],
  [
    ["Broca Aphasia", "Nonfluent", "Good", "Normal muscles", "Agrammatism"],
    ["Wernicke Aphasia", "Fluent", "Poor", "Normal muscles", "Jargon / paraphasias"],
    ["Dysarthria (LMN)", "Normal content", "Normal", "Weak / fasciculating", "Flaccid tongue/lips"],
    ["Dysarthria (UMN)", "Normal content", "Normal", "Spastic, slow", "Jaw jerk ↑, affect lability"],
    ["Cerebellar Dysarthria", "Normal content", "Normal", "Ataxic", "Scanning, staccato"],
    ["Apraxia of Speech", "Reduced", "Normal", "Normal strength", "Inconsistent errors, groping"],
    ["Mutism", "Absent", "Variable", "Variable", "No output at all"],
    ["Psychogenic", "Variable", "Normal", "Variable", "Inconsistent, suggestible"],
  ]
);

// SLIDE 54 — Vascular Causes of Aphasia
addContentSlide("Vascular Causes of Aphasia and Dysarthria", [
  { text: "Left MCA occlusion:", bold: true },
  { text: "Superior division → Broca aphasia + right hemiparesis; Inferior division → Wernicke aphasia (less hemiplegia)", sub: true },
  { text: "Left MCA main trunk:", bold: true },
  { text: "Global aphasia + right hemiplegia + hemianopia", sub: true },
  { text: "Left posterior cerebral artery:", bold: true },
  { text: "Alexia without agraphia (if splenium also involved)", sub: true },
  { text: "Left anterior cerebral artery:", bold: true },
  { text: "Transcortical motor aphasia (SMA lesion)", sub: true },
  { text: "Basilar artery / bilateral brainstem:", bold: true },
  { text: "Pseudobulbar palsy with spastic dysarthria; locked-in syndrome (pontine infarction)", sub: true },
  { text: "Lacunar strokes:", bold: true },
  { text: "Subcortical aphasia, pure dysarthria (internal capsule), pure motor hemiplegia with dysarthria", sub: true },
]);

// SLIDE 55 — Locked-In Syndrome
addContentSlide("Locked-In Syndrome and Anarthria", [
  "Complete anarthria and quadriplegia from bilateral ventral pontine infarction",
  "Patient is fully conscious and aware but cannot speak or move limbs",
  "Preserved: vertical eye movements, blinking — patient communicates by eye code",
  "Cause: basilar artery occlusion — occludes bilateral corticospinal and corticobulbar tracts at pons",
  "Language is intact (cortex unaffected) — pure anarthria without aphasia",
  "Distinguish from akinetic mutism (no awareness), vegetative state (no awareness), coma",
  "AAC technology and eye-tracking devices can restore meaningful communication",
  "Mortality high; survivors require intensive rehabilitation and long-term support",
]);

// SLIDE 56 — Neurological Conditions and Speech
addContentSlide("Speech Disorders in Specific Neurological Diseases", [
  { text: "Parkinson Disease:", bold: true },
  { text: "Hypophonia, monotone (extrapyramidal dysarthria), festinating speech, palilalia; LSVT LOUD effective", sub: true },
  { text: "ALS:", bold: true },
  { text: "Mixed spastic-flaccid dysarthria progressing to anarthria; often the most functionally limiting feature", sub: true },
  { text: "Multiple Sclerosis:", bold: true },
  { text: "Scanning cerebellar dysarthria; dysphonia; may have aphasia with demyelinating plaques", sub: true },
  { text: "Myasthenia Gravis:", bold: true },
  { text: "Fatigable dysarthria and dysphonia — worsens during conversation; nasal quality", sub: true },
  { text: "Wilson Disease:", bold: true },
  { text: "Dysarthria early; mixed dystonic + cerebellar features; characteristic 'growling' voice", sub: true },
  { text: "Huntington Disease:", bold: true },
  { text: "Choreic dysarthria — irregular, jerky interruptions; hypophonia late", sub: true },
]);

// SLIDE 57 — Examination Summary Table
addTableSlide("Summary — Language Examination Domains",
  ["Domain", "What It Tests", "Key Tests"],
  [
    ["Fluency", "Spontaneous output, phrase length, effort", "Conversational speech, cookie theft picture"],
    ["Comprehension", "Auditory understanding", "Yes/no, 1-3 step commands, token test"],
    ["Repetition", "Verbal loop (Wernicke-arcuate-Broca)", "'No ifs, ands, or buts'; digit span"],
    ["Naming", "Lexical retrieval", "Confrontation naming; responsive naming"],
    ["Reading", "Alexia screening", "Read aloud; read and carry out commands"],
    ["Writing", "Agraphia screening", "Write name, sentence; write to dictation"],
    ["Praxis", "Ideomotor apraxia", "Show how to use a comb, scissors, wave"],
    ["Calculation", "Acalculia screening", "Serial 7s; simple arithmetic problems"],
  ]
);

// SLIDE 58 — Gerstmann Syndrome
addContentSlide("Gerstmann Syndrome", [
  "Tetrad: Agraphia + Acalculia + Finger Agnosia + Left-Right Disorientation",
  "Lesion: dominant (left) parietal lobe — angular gyrus (Brodmann area 39)",
  { text: "Finger agnosia:", bold: true },
  { text: "Cannot identify fingers by name — own or examiner's — with eyes closed", sub: true },
  { text: "Left-right disorientation:", bold: true },
  { text: "Cannot reliably identify left from right on own body or examiner's body", sub: true },
  "Often accompanied by anomic aphasia (angular gyrus involvement)",
  "Pure Gerstmann syndrome without aphasia suggests a small angular gyrus lesion",
  "Most commonly caused by: stroke (MCA inferior division), tumor, cortical dysplasia",
  "Clinical pearl: any patient with difficulty writing + arithmetic → examine for full Gerstmann tetrad",
]);

// SLIDE 59 — Aprosodia
addContentSlide("Aprosodia and the Right Hemisphere", [
  "Aprosodia: inability to produce or comprehend the affective-prosodic components of language",
  "Propositional language (words, grammar): left hemisphere",
  "Affective/emotional prosody: right hemisphere (mirror image of left hemisphere language areas)",
  { text: "Motor aprosodia (right frontal lesion):", bold: true },
  { text: "Cannot produce emotional intonation; speech is monotone; comprehension of emotional tone intact", sub: true },
  { text: "Sensory aprosodia (right temporal lesion):", bold: true },
  { text: "Cannot understand emotional tone; produces emotional tone normally", sub: true },
  { text: "Global aprosodia (large right hemisphere lesion):", bold: true },
  { text: "Cannot produce or comprehend emotional prosody", sub: true },
  "Clinically underdiagnosed: these patients pass standard aphasia testing but are socially communicatively impaired",
]);

// SLIDE 60 — Frontal Lobe Language
addContentSlide("Frontal Lobe and Language — Beyond Broca's Area", [
  "Broca area: posterior inferior frontal gyrus — motor programming of speech",
  "Supplementary Motor Area (SMA): initiation and sequencing of voluntary speech",
  "SMA lesion: transcortical motor aphasia → akinetic mutism; patient can repeat but not initiate",
  "Prefrontal cortex: executive language — planning complex narrative, discourse, revision of errors",
  "Anterior cingulate cortex: motivational drive for speech — lesion → akinetic mutism",
  "Frontal aphasia (broader): reduced verbal fluency on FAS tasks (name as many words beginning with F/A/S in 1 minute)",
  "Verbal fluency norms: healthy adults produce >12–14 words per letter per minute; <8 suggests significant frontal impairment",
]);

// SLIDE 61 — Thalamus and Language
addContentSlide("Thalamus and Language", [
  "The thalamus has significant but incompletely understood roles in language",
  "Thalamic aphasia: most commonly from lesions of left pulvinar or left ventrolateral thalamus",
  "Features: hypophonic (soft voice), semantic paraphasias, fluctuating level of consciousness during testing",
  "Comprehension: better than it initially appears (fluctuates with arousal)",
  "Repetition: often preserved or near-normal",
  "Recovery: often more complete than cortical aphasia — possibly because cortex itself is intact",
  "Mechanism: thalamocortical loop disruption: language cortex is structurally intact but deafferented",
  "Associated: hemineglect, memory impairment if intralaminar nuclei involved (diencephalic amnesia)",
]);

// SLIDE 62 — Language in Dementia
addContentSlide("Language Disorders in Dementia", [
  { text: "Alzheimer Disease:", bold: true },
  { text: "Anomia early → progressive word-finding difficulty → simplified grammar → eventual near-mutism", sub: true },
  { text: "Frontotemporal Dementia (bvFTD):", bold: true },
  { text: "Speech output reduced early; stereotyped phrases; eventual mutism; social-pragmatic language most affected", sub: true },
  { text: "PPA — Semantic Variant (svPPA / SD):", bold: true },
  { text: "Striking anomia; single word comprehension lost; surface dyslexia; temporal lobe atrophy", sub: true },
  { text: "PPA — Nonfluent/Agrammatic:", bold: true },
  { text: "Labored speech, agrammatism, apraxia of speech; frontal-insular atrophy; CBD/PSP/FTLD pathology", sub: true },
  { text: "Dementia with Lewy Bodies:", bold: true },
  { text: "Variable language; may have naming difficulties; typically less severe than AD or FTD", sub: true },
  "Language deficits in dementia are progressive; SLP involvement important for care planning and AAC",
]);

// SLIDE 63 — Pragmatics and Communication
addContentSlide("Pragmatics and Social Communication Disorders", [
  "Pragmatics: the use of language in context — turn-taking, inference, indirect speech, relevance",
  "Traditional aphasia batteries test propositional language — they miss pragmatic and discourse-level deficits",
  "Social (Pragmatic) Communication Disorder: DSM-5 diagnosis; impairment in social-communicative use of language",
  "Right hemisphere syndrome: structural language intact; lost pragmatic abilities — indirect meanings, humor, sarcasm",
  "Traumatic Brain Injury: prominent pragmatic deficits even after resolution of aphasia — garrulousness, tangentiality, poor topic maintenance",
  "Assessment: conversation analysis, discourse analysis (retelling a story), Theory of Mind tasks",
  "Rehabilitation: pragmatic communication groups, social communication therapy",
]);

// SLIDE 64 — Key Mnemonics & Clinical Pearls
addContentSlide("Clinical Pearls and Key Mnemonics", [
  { text: "BROCA = Broken speech, Right side weakness, Oral apraxia, Comprehension spared, Anterior lesion", bold: true },
  { text: "WERNICKE = Wordy, Errors (paraphasias), Receptive deficit, No insight, Isolates the cortex partially, Comprehension lost, Keyed to posterior lesion", bold: true },
  "Repetition preserved → Transcortical aphasia (motor or sensory)",
  "Repetition severely impaired with fluency intact → Conduction aphasia",
  "Alexia without agraphia: can write but can't read what they wrote — left occipital + splenium",
  "Any acute aphasia → neuroimaging stat (MRI or CT); treat as stroke until proven otherwise",
  "Dysarthria ≠ Aphasia: dysarthria is motor; language is intact",
  "Pauses + circumlocutions + preserved repetition → Anomic aphasia",
  "LSVT LOUD: best evidence-based treatment for PD dysarthria",
]);

// SLIDE 65 — Summary / Closing
const s65 = pres.addSlide();
s65.background = { color: DARK };
s65.addShape(pres.ShapeType.rect, { x: 0, y: 4.9, w: 10, h: 0.72, fill: { color: ACCENT }, line: { color: ACCENT } });
s65.addText("Summary: Disorders of Speech and Language", {
  x: 0.5, y: 0.5, w: 9, h: 1.0,
  fontSize: 26, bold: true, color: WHITE, fontFace: FONT, align: "center"
});
const summaryItems = [
  { text: "Language is a dominant-hemisphere, perisylvian network function — not a single center", options: { bullet: { code: "2022" }, fontSize: 14, color: "D0E8FF", fontFace: FONT, breakLine: true, paraSpaceAfter: 4 } },
  { text: "Aphasia subtypes are defined by fluency, comprehension, and repetition profile", options: { bullet: { code: "2022" }, fontSize: 14, color: "D0E8FF", fontFace: FONT, breakLine: true, paraSpaceAfter: 4 } },
  { text: "Dysarthria = motor; Aphasia = language — never conflate the two", options: { bullet: { code: "2022" }, fontSize: 14, color: "D0E8FF", fontFace: FONT, breakLine: true, paraSpaceAfter: 4 } },
  { text: "Dysarthria subtypes reflect their anatomical substrate: LMN, UMN, extrapyramidal, cerebellar", options: { bullet: { code: "2022" }, fontSize: 14, color: "D0E8FF", fontFace: FONT, breakLine: true, paraSpaceAfter: 4 } },
  { text: "Acute aphasia = vascular emergency until proven otherwise", options: { bullet: { code: "2022" }, fontSize: 14, color: "D0E8FF", fontFace: FONT, breakLine: true, paraSpaceAfter: 4 } },
  { text: "Speech-language therapy is the cornerstone of rehabilitation", options: { bullet: { code: "2022" }, fontSize: 14, color: "D0E8FF", fontFace: FONT, breakLine: false, paraSpaceAfter: 4 } },
];
s65.addText(summaryItems, { x: 0.5, y: 1.6, w: 9, h: 3.0, valign: "top", wrap: true });
s65.addText("Source: Adams & Victor's Principles of Neurology 12e  |  DeJong's Neurological Examination  |  Bradley & Daroff's Neurology in Clinical Practice", {
  x: 0.5, y: 5.0, w: 9, h: 0.5,
  fontSize: 10, color: WHITE, fontFace: FONT, align: "center"
});

// ─── WRITE FILE ──────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/speech-language-ppt/Disorders_of_Speech_and_Language.pptx" })
  .then(() => { console.log("SUCCESS: PPTX written."); })
  .catch(e => { console.error("ERROR:", e); process.exit(1); });
Editing File

~/speech-language-ppt/build.js

Successfully replaced 1 instance(s) of the string in '/home/daytona/workspace/speech-language-ppt/build.js'

Ppt

Writing File

~/speech-language-ppt/build.js

const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Disorders of Speech and Language";

const WHITE  = "FFFFFF";
const BLACK  = "1A1A1A";
const NAVY   = "1A2D4A";
const BLUE   = "2E6DB4";
const LBLUE  = "E8F0F9";
const GRAY   = "F7F7F7";
const MGRAY  = "6B7A8D";
const RED    = "C0392B";
const FONT   = "Calibri";

// ── helpers ──────────────────────────────────────────────────────

function titleSlide(title, sub) {
  const s = pres.addSlide();
  s.background = { color: NAVY };
  s.addShape(pres.ShapeType.rect, { x:0, y:4.9, w:10, h:0.725, fill:{color:BLUE}, line:{color:BLUE} });
  s.addText(title, { x:0.6, y:1.3, w:8.8, h:2.1, fontSize:38, bold:true, color:WHITE, fontFace:FONT, align:"center", valign:"middle", wrap:true });
  if (sub) s.addText(sub, { x:0.6, y:3.5, w:8.8, h:0.65, fontSize:18, italic:true, color:"A8C8E8", fontFace:FONT, align:"center" });
  s.addText("Adams & Victor's Principles of Neurology  |  DeJong's Neurological Examination", { x:0.5, y:5.05, w:9, h:0.45, fontSize:10, color:WHITE, fontFace:FONT, align:"center" });
}

function sectionSlide(title) {
  const s = pres.addSlide();
  s.background = { color:BLUE };
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:0.2, h:5.625, fill:{color:NAVY}, line:{color:NAVY} });
  s.addText(title, { x:0.5, y:1.6, w:9, h:2.4, fontSize:32, bold:true, color:WHITE, fontFace:FONT, align:"center", valign:"middle", wrap:true });
}

function contentSlide(title, bullets, fs) {
  fs = fs || 15;
  const s = pres.addSlide();
  s.background = { color:WHITE };
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.72, fill:{color:NAVY}, line:{color:NAVY} });
  s.addShape(pres.ShapeType.rect, { x:0, y:0.72, w:0.07, h:4.9, fill:{color:BLUE}, line:{color:BLUE} });
  s.addText(title, { x:0.3, y:0, w:9.4, h:0.72, fontSize:17, bold:true, color:WHITE, fontFace:FONT, valign:"middle", margin:0 });
  const items = bullets.map((b,i) => {
    const last = i === bullets.length-1;
    if (typeof b === "string") {
      return { text:b, options:{ bullet:{code:"2022"}, fontSize:fs, color:BLACK, fontFace:FONT, breakLine:!last, paraSpaceAfter:4 }};
    }
    return { text:b.t, options:{ bullet:{code: b.sub?"25AA":"2022"}, indentLevel:b.sub?1:0, fontSize:b.sub?fs-1:fs, color:b.c||BLACK, bold:b.b||false, fontFace:FONT, breakLine:!last, paraSpaceAfter:b.sub?2:4 }};
  });
  s.addText(items, { x:0.22, y:0.84, w:9.6, h:4.65, valign:"top", wrap:true });
}

function twoCol(title, lh, lb, rh, rb) {
  const s = pres.addSlide();
  s.background = { color:WHITE };
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.72, fill:{color:NAVY}, line:{color:NAVY} });
  s.addText(title, { x:0.3, y:0, w:9.4, h:0.72, fontSize:17, bold:true, color:WHITE, fontFace:FONT, valign:"middle", margin:0 });
  s.addShape(pres.ShapeType.rect, { x:4.97, y:0.8, w:0.06, h:4.7, fill:{color:LBLUE}, line:{color:LBLUE} });
  s.addText(lh, { x:0.15, y:0.82, w:4.6, h:0.38, fontSize:13, bold:true, color:BLUE, fontFace:FONT });
  const li = lb.map((b,i) => ({ text:b, options:{ bullet:{code:"2022"}, fontSize:12, color:BLACK, fontFace:FONT, breakLine:i<lb.length-1, paraSpaceAfter:3 }}));
  s.addText(li, { x:0.15, y:1.22, w:4.7, h:4.2, valign:"top", wrap:true });
  s.addText(rh, { x:5.15, y:0.82, w:4.6, h:0.38, fontSize:13, bold:true, color:BLUE, fontFace:FONT });
  const ri = rb.map((b,i) => ({ text:b, options:{ bullet:{code:"2022"}, fontSize:12, color:BLACK, fontFace:FONT, breakLine:i<rb.length-1, paraSpaceAfter:3 }}));
  s.addText(ri, { x:5.15, y:1.22, w:4.6, h:4.2, valign:"top", wrap:true });
}

function tableSlide(title, headers, rows) {
  const s = pres.addSlide();
  s.background = { color:WHITE };
  s.addShape(pres.ShapeType.rect, { x:0, y:0, w:10, h:0.72, fill:{color:NAVY}, line:{color:NAVY} });
  s.addText(title, { x:0.3, y:0, w:9.4, h:0.72, fontSize:16, bold:true, color:WHITE, fontFace:FONT, valign:"middle", margin:0 });
  const trows = [
    headers.map(h => ({ text:h, options:{ bold:true, color:WHITE, fill:BLUE, fontSize:11, fontFace:FONT, align:"center" }})),
    ...rows.map((row,ri) => row.map(cell => ({ text:cell, options:{ fontSize:10, fontFace:FONT, color:BLACK, fill:ri%2===0?WHITE:LBLUE }})))
  ];
  s.addTable(trows, { x:0.15, y:0.82, w:9.7, rowH:0.43, border:{color:"D0D8E4",pt:0.5}, autoPage:false });
}

// ══════════════════════════════════════════════════════════════════
//  SLIDES 1–65
// ══════════════════════════════════════════════════════════════════

// 1 — Cover
titleSlide("Disorders of Speech and Language", "Neurological Examination & Clinical Neurology");

// 2 — Outline
contentSlide("Lecture Outline", [
  {t:"PART I  — Neuroanatomy of Language",b:true},
  {t:"Cerebral language areas, lateralization, white-matter connections",sub:true},
  {t:"PART II — Aphasia: Classification & Types",b:true},
  {t:"Broca, Wernicke, Global, Conduction, Anomic, Transcortical",sub:true},
  {t:"PART III — Special Aphasias & Related Language Disorders",b:true},
  {t:"Alexia, Agraphia, Acalculia, Apraxia of Speech, Prosody, Mutism",sub:true},
  {t:"PART IV — Disorders of Articulation & Phonation",b:true},
  {t:"Dysarthria subtypes, Dysphonia, Mixed patterns",sub:true},
  {t:"PART V  — Examination, Testing & Management",b:true},
  {t:"Bedside exam, imaging, rehabilitation, clinical pearls",sub:true},
],14);

// ── PART I ────────────────────────────────────────────────────────
// 3
sectionSlide("PART I\nNeuroanatomy of Speech & Language");

// 4
contentSlide("The Language-Dominant Hemisphere",[
  "Language is lateralized to one hemisphere — the dominant hemisphere",
  ">95% of right-handers and ~70% of left-handers are left-hemisphere dominant for language",
  "The 'dominant' hemisphere is defined by its control of language, not by handedness per se",
  "Familial patterns of left-handedness suggest genetic determinants of cerebral dominance",
  "Sodium amytal (Wada) test and task-based fMRI confirm lateralization before neurosurgery",
  "Crossed aphasia: rare — aphasia follows a right-hemisphere lesion in a right-handed person",
]);

// 5
contentSlide("Perisylvian Language Zone",[
  "Language is centered around the Sylvian fissure (perisylvian region) of the dominant hemisphere",
  {t:"Wernicke area (Brodmann 22):",b:true},{t:"Posterior superior temporal gyrus — auditory word comprehension",sub:true},
  {t:"Broca area (Brodmann 44–45):",b:true},{t:"Posterior inferior frontal gyrus — motor speech programming / expressive output",sub:true},
  {t:"Angular gyrus (area 39):",b:true},{t:"Connects visual with auditory language; critical for reading and writing",sub:true},
  {t:"Supramarginal gyrus (area 40):",b:true},{t:"Phonological processing, verbal repetition",sub:true},
  {t:"Exner's writing area:",b:true},{t:"Posterior 2nd frontal convolution — graphomotor output (existence debated)",sub:true},
]);

// 6
contentSlide("White Matter Connections",[
  {t:"Arcuate fasciculus:",b:true},{t:"Main bundle connecting Wernicke to Broca area — passes through temporal isthmus and around posterior Sylvian fissure",sub:true},
  {t:"External / extreme capsules:",b:true},{t:"Additional corticocortical pathways through subcortical white matter of the insula",sub:true},
  {t:"Short association fibers:",b:true},{t:"Connect Broca area to lower precentral gyrus (lips, tongue, pharynx, larynx motor cortex)",sub:true},
  "Perisylvian areas also connect to striatum, thalamus, and the contralateral hemisphere via corpus callosum",
  "Disruption of arcuate fasciculus → conduction aphasia (repetition failure with preserved fluency and comprehension)",
]);

// 7
contentSlide("Two Parallel Language Systems",[
  {t:"Auditory-verbal system:",b:true},{t:"Spoken words → Heschl's gyri (primary auditory) → Wernicke area → arcuate fasciculus → Broca area → speech output",sub:true},
  {t:"Visual-graphemic system:",b:true},{t:"Written words → visual cortex → angular gyrus → Wernicke area → Exner area → writing output",sub:true},
  "Both systems develop separately but integrate within the propositional (semantic) language system",
  "Semantic system: understanding and generating meaningful language, independent of input/output modality",
  {t:"Historical milestones:",b:true},{t:"Dax (1836), Broca (1861–65) — left opercular lesion abolishes speech; Wernicke (1874) — two-component model",sub:true},
]);

// 8
contentSlide("Historical Theories of Aphasia",[
  {t:"Broca (1861):",b:true},{t:"'Aphemia' — lesion of left inferior frontal operculum; gave name to nonfluent expressive aphasia",sub:true},
  {t:"Wernicke (1874):",b:true},{t:"Two major loci — anterior motor + posterior receptive — connected by arcuate fasciculus; predicted conduction aphasia",sub:true},
  {t:"Pierre Marie (1906):",b:true},{t:"Challenged Broca — argued a single central zone; Broca area alone not sufficient for aphasia",sub:true},
  {t:"Head, Wilson, Goldstein:",b:true},{t:"Summation model — aphasia severity proportional to lesion size, not strict localization",sub:true},
  "Modern synthesis: localization AND mass-action principles both apply; imaging has refined the classical maps",
  "Neither purely localizationist nor holistic — the network view is now predominant",
]);

// 9
contentSlide("Functional Neuroimaging of Language",[
  "PET and fMRI have largely replaced autopsy as tools for language localization",
  "Task-based fMRI activates Broca + Wernicke areas and connections during language tasks",
  "DTI (Diffusion Tensor Imaging): maps the arcuate fasciculus and other white matter tracts in living patients",
  "Classical models are broadly confirmed by imaging — with significant individual variation",
  "Subcortical structures (thalamus, basal ganglia) actively modulate language — not passive relays",
  "Critical insight: language is a distributed network — disruption anywhere along the network degrades performance",
  "Pre-surgical fMRI: identifies language hemisphere and eloquent cortex to minimize iatrogenic deficits",
]);

// 10
contentSlide("Neurodevelopment of Language",[
  "Language acquisition follows a predictable sequence: babbling (6 mo) → first words (12 mo) → two-word phrases (24 mo)",
  "Critical period: greatest neuroplasticity for language acquisition in early childhood (up to ~12 years)",
  "Childhood left-hemisphere lesions: right hemisphere can assume language far more than in adults",
  "Broca area and Wernicke area are structurally asymmetric from birth (planum temporale larger on left)",
  "Genetic factors: FOXP2 gene mutations → severe speech and language disorder (verbal dyspraxia)",
  "Language milestones are the most sensitive indicator of early neurological development",
  "Red flags: no babbling ×12 mo, no single words ×16 mo, no 2-word phrases ×24 mo, ANY regression",
]);

// ── PART II ───────────────────────────────────────────────────────
// 11
sectionSlide("PART II\nAphasia — Classification & Types");

// 12
contentSlide("Aphasia — Definition & Core Concepts",[
  "Aphasia: acquired impairment of language — production, comprehension, or both — from brain damage",
  "Always results from a lesion in the dominant hemisphere in adults",
  "Distinct from: dysarthria (motor articulation), dysphonia (voice), apraxia of speech (motor programming), mutism",
  {t:"Key assessment dimensions:",b:true},
  {t:"Fluency, comprehension, repetition, naming, reading, writing",sub:true},
  {t:"Fluent aphasia:",b:true},{t:"Normal phrase length/rate; paraphasias present (Wernicke, conduction, anomic, transcortical sensory)",sub:true},
  {t:"Nonfluent aphasia:",b:true},{t:"Reduced output, short phrases, effortful (Broca, global, transcortical motor)",sub:true},
]);

// 13 — Classification Table
tableSlide("Classification of Aphasia — Quick Reference",
  ["Type","Fluency","Comprehension","Repetition","Naming","Lesion Site"],
  [
    ["Broca","Nonfluent","Preserved","Impaired","Impaired","Inf. frontal (Broca area)"],
    ["Wernicke","Fluent","Impaired","Impaired","Impaired","Post. sup. temporal"],
    ["Global","Nonfluent","Impaired","Impaired","Impaired","Large MCA territory"],
    ["Conduction","Fluent","Preserved","Severely impaired","Mild-mod impaired","Arcuate fasciculus"],
    ["Anomic","Fluent","Preserved","Preserved","Impaired","Angular gyrus / variable"],
    ["Trans. Motor","Nonfluent","Preserved","PRESERVED","Impaired","Ant./sup. to Broca (SMA)"],
    ["Trans. Sensory","Fluent","Impaired","PRESERVED","Impaired","Post. to Wernicke"],
    ["Mixed Trans.","Nonfluent","Impaired","PRESERVED","Impaired","Bilateral watershed"],
  ]
);

// 14
contentSlide("Broca Aphasia (Expressive / Motor Aphasia)",[
  "Lesion: posterior inferior frontal gyrus (Broca area, Brodmann 44–45) ± adjacent opercular cortex in dominant hemisphere",
  "Nonfluent, effortful, telegraphic speech — short phrases, missing small grammar words (agrammatism)",
  "Phonemic paraphasias common (literal substitutions: 'breen' for 'green')",
  "Comprehension: relatively preserved for conversational speech; impaired for syntactically complex sentences",
  "Repetition: impaired; Naming: impaired; Reading/writing: impaired in parallel with speech",
  "Patient is typically AWARE of deficits — frustration, depression, catastrophic reactions are common",
  "Isolated Broca area lesion alone may cause mild, transient dysphasia; larger opercular lesion needed for classic syndrome",
  "Associated: right lower-face and hand weakness (adjacent precentral gyrus); oral-buccal apraxia",
]);

// 15
contentSlide("Wernicke Aphasia (Receptive / Sensory Aphasia)",[
  "Lesion: posterior superior temporal gyrus (Wernicke area, Brodmann 22) of dominant hemisphere",
  "Fluent, effortless speech but filled with paraphasias — phonemic AND semantic substitutions",
  "Neologisms: invented non-words with no recognizable relationship to target ('slifer' for 'fork')",
  "Jargon aphasia: speech dominated by neologisms and paraphasias — incomprehensible output",
  "Comprehension: severely impaired — patient cannot understand spoken or written language",
  "Repetition: severely impaired; Naming: impaired",
  "Patient is typically UNAWARE of errors (anosognosia) — no frustration, may seem unconcerned",
  "Associated: right superior quadrantanopia or hemianopia, right hemisensory loss; usually NO hemiplegia",
  "Psychiatric misdiagnosis: fluent jargon without apparent distress can mimic acute psychosis",
]);

// 16
contentSlide("Global Aphasia",[
  "All language functions severely impaired: fluency, comprehension, repetition, naming, reading, writing",
  "Lesion: large infarction of entire perisylvian language zone — typically left MCA main trunk occlusion",
  "Patient cannot generate meaningful words or understand spoken or written language",
  "Associated: dense right hemiplegia, hemianopia, hemisensory loss — complete MCA syndrome",
  "Prognosis for language recovery is poor, especially in older patients with large lesions",
  "'Global aphasia without hemiplegia': rare variant — more posterior or subcortical lesion sparing motor fibers",
  "Even severely affected patients often retain automatic speech (swearing, greeting, counting) — right hemisphere emotional language",
  "Management: intensive SLP, AAC devices, family communication training",
]);

// 17
contentSlide("Conduction Aphasia",[
  "Hallmark: severely disproportionate impairment of REPETITION with relatively preserved fluency and comprehension",
  "Lesion: arcuate fasciculus (supramarginal gyrus, parietal operculum) — disconnects Wernicke from Broca area",
  "Speech: fluent but with frequent phonemic paraphasias and conduit d'approche (multiple self-correction attempts)",
  "Comprehension: largely preserved",
  "Repetition: severely impaired — cannot repeat even simple words or sentences",
  "Naming: mildly to moderately impaired",
  "Associated: cortical sensory loss, mild right hand weakness (adjacent parietal cortex)",
  "Key rule: if repetition is dramatically worse than both fluency AND comprehension → think conduction aphasia",
]);

// 18
contentSlide("Anomic Aphasia",[
  "Isolated impairment of word-finding (anomia) with otherwise fluent, grammatically intact speech",
  "Comprehension: preserved; Repetition: preserved",
  "Speech fluent but interrupted by word-finding pauses and circumlocutions ('the thing you write with')",
  "Naming: consistently impaired — cannot produce the word even when it is recognized",
  "Lesion: most often angular gyrus or posterior temporal-parietal junction; also any dominant-hemisphere lesion",
  "Anomia is the MOST COMMON and LEAST localizing form of aphasia",
  "Can be the residual deficit after recovery from more severe aphasia",
  "Also seen in: metabolic encephalopathy, Alzheimer disease, medication side-effects — less specific than other types",
]);

// 19 — Transcortical (two-col)
twoCol("Transcortical Aphasias — Preserved Repetition",
  "Transcortical Motor Aphasia",
  [
    "Nonfluent, reduced spontaneous speech",
    "Comprehension: preserved",
    "Repetition: PRESERVED — key feature",
    "Naming: impaired",
    "Lesion: anterior/superior to Broca area — SMA or its frontal connections",
    "Seen in ACA territory infarction; frontal watershed",
    "Patient can repeat but shows dramatic reduction in spontaneous verbal output",
    "Severe form → akinetic mutism",
  ],
  "Transcortical Sensory Aphasia",
  [
    "Fluent speech; semantic paraphasias; echolalia",
    "Comprehension: severely impaired",
    "Repetition: PRESERVED — may echo examiner compulsively",
    "Naming: impaired",
    "Lesion: posterior to Wernicke — watershed zone (posterior temporal/parietal)",
    "Seen in watershed infarction, Alzheimer disease",
    "Resembles Wernicke aphasia but repetition intact",
    "Echolalia: automatic repetition of examiner's words",
  ]
);

// 20
contentSlide("Mixed Transcortical Aphasia (Isolation Syndrome)",[
  "All language functions severely impaired EXCEPT repetition, which is relatively preserved",
  "Patient repeats (and echoes) what is said but cannot initiate speech or demonstrate comprehension",
  "Lesion: bilateral watershed infarctions — perisylvian language zone is isolated from the rest of the cortex",
  "Mechanism: cardiac arrest, prolonged hypotension, or bilateral severe carotid stenosis sparing MCA territory",
  "Echolalia: automatic repetition of the examiner's words — characteristic and prominent feature",
  "Conceptually: the perisylvian language 'machine' still runs but has been cut off from meaning-generating cortex",
  "Prognosis: generally poor; improvement limited by extent of bilateral watershed injury",
]);

// 21
contentSlide("Paraphasias — Types and Significance",[
  {t:"Phonemic (Literal) Paraphasia:",b:true},{t:"Substitution of sounds ('breen' for 'green') — Broca, conduction aphasia",sub:true},
  {t:"Semantic (Verbal) Paraphasia:",b:true},{t:"Substitution of related word ('chair' for 'table') — Wernicke aphasia",sub:true},
  {t:"Neologism:",b:true},{t:"Invented non-word ('fliber') — Wernicke / jargon aphasia",sub:true},
  {t:"Perseveration:",b:true},{t:"Inappropriate repetition of a previous response — frontal or diffuse brain damage",sub:true},
  {t:"Conduit d'approche:",b:true},{t:"Repeated self-corrections approaching target — conduction aphasia",sub:true},
  {t:"Echolalia:",b:true},{t:"Automatic repetition of examiner's speech — transcortical aphasias, ASD, frontal lobe disease",sub:true},
  "The pattern of paraphasias is the single most useful feature for classifying aphasia type at the bedside",
]);

// ── PART III ──────────────────────────────────────────────────────
// 22
sectionSlide("PART III\nSpecial Aphasias & Related Language Disorders");

// 23
contentSlide("Subcortical Aphasia",[
  "Aphasia can result from lesions in the thalamus, caudate, putamen, or internal capsule",
  {t:"Thalamic aphasia:",b:true},{t:"Hypophonic, semantic paraphasias, fluctuating arousal; preserved repetition; often transient; left pulvinar / VL thalamus",sub:true},
  {t:"Caudate / striatal aphasia:",b:true},{t:"Variable fluency; may resemble Broca or Wernicke; often hypophonic; caudate head or anterior limb IC",sub:true},
  "Subcortical aphasia often co-occurs with dysarthria (internal capsule lesions affecting corticobulbar fibers)",
  "Mechanism: disruption of thalamocortical loops that support and activate language cortex",
  "Recovery: generally better than cortical aphasia — the cortex itself is structurally intact",
  "Thalamus as 'language relay': modulates access to and retrieval of lexical representations in cortex",
]);

// 24
contentSlide("Pure Word Deafness (Auditory Verbal Agnosia)",[
  "Selective inability to comprehend SPOKEN language — written language, reading, and writing are intact",
  "Patient can HEAR sounds (is not deaf) but cannot decode spoken words into meaning",
  "Speech output: relatively normal or only mildly impaired (no agrammatism)",
  "Lesion: bilateral superior temporal cortex, or dominant temporal lesion disconnecting bilateral auditory input from Wernicke area",
  "Patient seems deaf only to speech — comprehends written instructions perfectly",
  "Rare condition; most reported cases involve bilateral temporal lesions (bilateral MCA branch infarctions)",
  "Distinguish from Wernicke aphasia: written language preserved in pure word deafness",
]);

// 25
contentSlide("Alexia — Acquired Reading Disorders",[
  {t:"Alexia with Agraphia (Parietal Alexia):",b:true},{t:"Cannot read OR write; dominant angular gyrus (area 39) lesion — disconnects visual from language areas",sub:true},
  {t:"Alexia without Agraphia (Pure Alexia / Occipital Alexia):",b:true},{t:"Cannot read; can write and speak normally; left occipital cortex + splenium of corpus callosum",sub:true},
  {t:"Mechanism of pure alexia:",b:true},{t:"Visual input reaches right occipital cortex but splenial lesion prevents transfer to left angular gyrus",sub:true},
  "Classic: patient writes a sentence normally — then immediately cannot read what they just wrote",
  "Associated: right homonymous hemianopia (left occipital cortex lesion)",
  {t:"Frontal (Deep) Alexia:",b:true},{t:"Reading impairment with Broca aphasia; difficulty with function words and morphology; reads content words better",sub:true},
]);

// 26
contentSlide("Agraphia — Acquired Writing Disorders",[
  "Agraphia: acquired inability to write from brain damage — not explained by motor weakness alone",
  {t:"Aphasic agraphia:",b:true},{t:"Writing errors mirror spoken language errors; occurs with all aphasia types",sub:true},
  {t:"Pure agraphia:",b:true},{t:"Writing impaired but spoken language preserved; posterior frontal / SMA lesions",sub:true},
  {t:"Apraxic agraphia:",b:true},{t:"Lost skilled writing movements; letters malformed despite knowing what to write; parietal lesion",sub:true},
  {t:"Spatial agraphia:",b:true},{t:"Letters correct but spatial arrangement disordered (slanting, crowding); right hemisphere / parietal",sub:true},
  {t:"Hypergraphia:",b:true},{t:"Compulsive, excessive writing; seen in temporal lobe epilepsy, mania",sub:true},
  "Writing is the most sensitive indicator of mild aphasic disturbance — always test it in the bedside exam",
]);

// 27
contentSlide("Acalculia and Gerstmann Syndrome",[
  "Acalculia: acquired impairment of arithmetic / mathematical operations from brain damage",
  {t:"Primary acalculia:",b:true},{t:"Specific impairment in numerical calculation; dominant posterior parietal lesion",sub:true},
  {t:"Secondary acalculia:",b:true},{t:"Calculation difficulty secondary to alexia (cannot read numbers) or spatial disorder",sub:true},
  {t:"Spatial acalculia:",b:true},{t:"Cannot align digits in columns; right hemisphere parietal lesion",sub:true},
  {t:"Gerstmann Syndrome (tetrad):",b:true},
  {t:"Acalculia + Agraphia + Finger Agnosia + Left-Right Disorientation",sub:true},
  "Lesion: dominant angular gyrus (Brodmann 39); often accompanied by anomic aphasia",
  "Testing: serial 7s, simple arithmetic; finger identification with eyes closed; L/R orientation on own and examiner's body",
]);

// 28
contentSlide("Apraxia of Speech",[
  "Disorder of speech motor programming — cannot coordinate articulatory movements for voluntary speech",
  "Articulatory muscles are NOT weak or paralyzed — pure programming deficit",
  "No language comprehension or reading/writing deficits — distinct from aphasia",
  {t:"Key features:",b:true},
  {t:"Inconsistent speech errors, articulatory groping, effortful initiation, islands of automatic fluency",sub:true},
  "Voluntary speech is worse; automatic speech (counting, singing familiar songs) is better preserved",
  "Lesion: Broca area and adjacent anterior insula of the dominant hemisphere",
  "Often co-occurs with Broca aphasia but can occur in isolation",
  "Diagnosis: ask for repeated attempts at the same word — errors are INCONSISTENT (vs. consistent in dysarthria)",
  "Treat with intensive articulatory drilling, DTTC (Dynamic Temporal and Tactile Cueing)",
]);

// 29
contentSlide("Disorders of Prosody",[
  "Prosody: the melody, rhythm, stress, and intonation of speech",
  {t:"Dysprosody:",b:true},{t:"Abnormal prosodic patterns — flat, monotone, robotic speech; common in Broca aphasia and PD",sub:true},
  {t:"Foreign accent syndrome:",b:true},{t:"Altered stress/intonation patterns cause speech to sound like a foreign accent; post-stroke or TBI",sub:true},
  {t:"Emotional (affective) prosody — right hemisphere:",b:true},
  {t:"Produced and perceived primarily by the nondominant (right) hemisphere",sub:true},
  {t:"Motor aprosodia (right frontal):",b:true},{t:"Cannot produce emotional intonation; speech is monotone; comprehension of emotional tone intact",sub:true},
  {t:"Sensory aprosodia (right temporal):",b:true},{t:"Cannot interpret emotional tone of others' speech; own production relatively spared",sub:true},
  "Clinically underdiagnosed — patients pass standard aphasia batteries but are socially communicatively impaired",
]);

// 30
contentSlide("Mutism — Absence of Speech",[
  "Mutism: complete absence of verbal output — patient does not speak at all",
  {t:"Akinetic mutism:",b:true},{t:"Anterior cingulate / SMA lesion — awake, eyes open, tracks with gaze, does not speak or move voluntarily",sub:true},
  {t:"Transcortical motor aphasia (severe):",b:true},{t:"SMA / frontal output lesion — nonfluent and eventually mute; can repeat when prompted",sub:true},
  {t:"Bilateral SMA lesions:",b:true},{t:"Transient mutism → transcortical motor aphasia → full recovery (typical post-surgical pattern)",sub:true},
  {t:"Cerebellar mutism:",b:true},{t:"Post-posterior fossa surgery in children — transient but severe; mechanism: cerebellar-SMA pathway disruption",sub:true},
  {t:"Psychogenic mutism:",b:true},{t:"Conversion disorder, severe depression, elective mutism — no structural lesion; inconsistent on exam",sub:true},
  "Any new mutism warrants urgent neuroimaging to exclude structural cause",
]);

// 31
contentSlide("Nondominant Hemisphere Language Functions",[
  "Right hemisphere does not control propositional language but contributes importantly to communication",
  {t:"Discourse and narrative:",b:true},{t:"Understanding context, drawing inferences, interpreting indirect meaning, metaphor, humor",sub:true},
  {t:"Pragmatics:",b:true},{t:"Using language appropriately in social context — turn-taking, relevance, implication",sub:true},
  {t:"Affective prosody:",b:true},{t:"Perceiving and producing emotional tone and stress patterns in speech",sub:true},
  "Right hemisphere strokes: flat affect, impaired humor/sarcasm detection, poor narrative coherence",
  "Patients communicate propositional language well but lose communicative richness and social fluency",
  "Standard aphasia batteries often normal in right hemisphere lesion patients despite significant functional impairment",
]);

// ── PART IV ───────────────────────────────────────────────────────
// 32
sectionSlide("PART IV\nDisorders of Articulation and Phonation");

// 33
contentSlide("Normal Speech Production — Anatomy & Physiology",[
  "Speech requires precise coordination of: respiratory muscles, larynx, pharynx, palate, tongue, lips",
  "Innervation: vagus (X), hypoglossal (XII), facial (VII), phrenic (C3–5) nerves",
  "All bulbar motor nuclei receive BILATERAL corticobulbar control from both motor cortices",
  "Extrapyramidal modulation: cerebellum and basal ganglia refine and time articulatory movements",
  {t:"Phonation:",b:true},{t:"Larynx produces vocal sound; vocal cord tension determines pitch; pressure from thoracic muscles drives airflow",sub:true},
  {t:"Resonance:",b:true},{t:"Nasopharynx and oral cavity act as resonators, shaping sound quality",sub:true},
  {t:"Articulation:",b:true},{t:"Pharynx, palate, tongue, lips interrupt/modify vocal sound; consonants are largely articulatory",sub:true},
]);

// 34
contentSlide("Dysarthria — Definition and Classification",[
  "Dysarthria: disorder of speech articulation due to weakness, paralysis, incoordination, or altered tone of articulatory muscles",
  "Anarthria: the most severe form — complete inability to produce intelligible speech",
  "Key distinction: in PURE dysarthria, language (comprehension, reading, writing) is fully intact",
  "Examination: listen to spontaneous speech; test lingual (la-la-la), labial (me-me-me), guttural (k-k-k) consonants",
  {t:"Five major types:",b:true},
  {t:"1. Flaccid (LMN / neuromuscular)   2. Spastic (UMN / pseudobulbar)",sub:true},
  {t:"3. Rigid (extrapyramidal / hypokinetic)   4. Ataxic (cerebellar)",sub:true},
  {t:"5. Hyperkinetic   6. Mixed",sub:true},
]);

// 35
contentSlide("Flaccid (LMN) Dysarthria",[
  "Cause: disease of bulbar motor nuclei (medulla/lower pons) or peripheral extensions (lower motor neuron)",
  "Examples: ALS (bulbar onset), Guillain-Barré, myasthenia gravis, bulbar poliomyelitis, medullary infarction",
  "Features: slurred, indistinct speech; nasal quality (palatal weakness); difficulty with vibratives (r)",
  "Tongue: shriveled, inert, fasciculating on the floor of the mouth",
  "Lips: lax and tremulous; lip consonants (m, b, p) affected early",
  "Dysphonia: rasping monotone from vocal cord weakness; saliva pools, drooling",
  "Advanced: complete anarthria — all consonants fail; only vowel sounds may remain",
  "Bilateral > unilateral; dysphagia usually parallels dysarthria severity",
]);

// 36
contentSlide("Spastic (Pseudobulbar) Dysarthria",[
  "Cause: bilateral UMN (corticobulbar tract) lesions — pseudobulbar palsy",
  "Etiologies: bilateral lacunar strokes, MS, ALS, TBI, cerebral palsy, small vessel disease",
  "Voice quality: slow, labored, thick 'hot potato' quality; strained-strangled; low pitch",
  "Hyperreflexia of jaw jerk and gag reflex (UMN signs)",
  "Pseudobulbar affect: pathological laughing and crying — disinhibition of limbic motor circuits",
  "Tongue: spastic and slow, cannot be protruded or moved rapidly",
  "No fasciculations or atrophy (UMN — no denervation)",
  "Dysphagia: often more functionally disabling than dysarthria — aspiration risk high",
]);

// 37
contentSlide("Rigid (Extrapyramidal / Hypokinetic) Dysarthria",[
  "Cause: basal ganglia disease — most typically Parkinson disease",
  "Features: hypophonia (soft voice), monotone, reduced stress variation, reduced loudness range",
  "Festinating speech: accelerating rate with syllables crowded together",
  "Palilalia: compulsive repetition of words or phrases, accelerating",
  "Mechanism: reduced respiratory support + incomplete vocal fold adduction + rigidity of articulatory muscles",
  "Hypomimia (masked face): reduces visual communication to compound dysarthria",
  {t:"MSA:",b:true},{t:"Prominent early dysarthria/dysphonia; mixed cerebellar + hypokinetic features",sub:true},
  {t:"PSP:",b:true},{t:"Severe early dysarthria and dysphonia; characteristic low-pitched growling voice; spastic + hypokinetic mix",sub:true},
]);

// 38
contentSlide("Ataxic (Cerebellar) Dysarthria",[
  "Cause: cerebellar disease or its connections (superior cerebellar peduncle, cerebellar vermis/hemispheres)",
  "Etiologies: MS, alcohol-related, spinocerebellar ataxias, stroke, paraneoplastic, hypothyroidism",
  "Hallmark: SCANNING (staccato) speech — irregular rhythm, equal stress on every syllable, explosive bursts",
  "Slowed articulation with irregular rhythm — resembles intoxicated speech",
  "Individual consonants and vowels are prolonged and imprecise — 'decomposition of movement' applied to speech",
  "Monotone with abnormal volume variations",
  "Associated: limb ataxia, nystagmus, intention tremor, gait ataxia",
  "Test: 'Methodist Episcopal,' 'British Constitution' — abnormal stress becomes very prominent",
]);

// 39
contentSlide("Hyperkinetic Dysarthria",[
  "Caused by involuntary movements affecting the speech musculature",
  {t:"Choreic dysarthria:",b:true},{t:"Irregular, unpredictable interruptions; speech suddenly broken by involuntary movements; Huntington disease, chorea",sub:true},
  {t:"Dystonic dysarthria:",b:true},{t:"Prolonged, irregular distortions; strained-strangled voice; Wilson disease, cranial-cervical dystonia",sub:true},
  {t:"Essential (voice) tremor:",b:true},{t:"Rhythmic oscillation of voice during sustained phonation — worsens with intentional speech",sub:true},
  {t:"Spasmodic dysphonia:",b:true},{t:"Focal laryngeal dystonia; adductor type: strained-strangled voice breaks on voiced sounds",sub:true},
  {t:"Palatal myoclonus:",b:true},{t:"Rhythmic palatal contractions (1–3 Hz) → audible clicks; may cause objective tinnitus",sub:true},
  {t:"Tourette syndrome:",b:true},{t:"Vocal tics — simple (grunts, sniffs) or complex (coprolalia in ~10%)",sub:true},
]);

// 40
contentSlide("Mixed Dysarthria — Common Patterns",[
  "Many neurological diseases produce mixtures of dysarthria types — key in differential diagnosis",
  {t:"ALS:",b:true},{t:"Mixed SPASTIC + FLACCID — the most characteristic combination; corticobulbar + LMN bulbar degeneration",sub:true},
  {t:"Multiple Sclerosis:",b:true},{t:"Mixed CEREBELLAR + SPASTIC; scanning speech is most common",sub:true},
  {t:"Multiple System Atrophy (MSA):",b:true},{t:"Mixed CEREBELLAR + EXTRAPYRAMIDAL + LMN elements",sub:true},
  {t:"Wilson Disease:",b:true},{t:"Mixed DYSTONIC + CEREBELLAR; characteristic 'growling' dysarthria",sub:true},
  {t:"TBI:",b:true},{t:"Mixed SPASTIC + HYPOKINETIC + ATAXIC depending on lesion distribution",sub:true},
  "Identification of the mixed pattern is often more diagnostically specific than pure types alone",
]);

// 41
contentSlide("Dysphonia — Disorders of Voice",[
  "Dysphonia: disorder of voice quality, pitch, or loudness from laryngeal dysfunction",
  {t:"Unilateral vocal cord paralysis:",b:true},{t:"Hoarse, breathy voice; CN X recurrent laryngeal nerve lesion — mediastinal mass, thyroid surgery, aortic aneurysm",sub:true},
  {t:"Bilateral vocal cord paralysis:",b:true},{t:"Stridor, respiratory distress, near-absent voice; bilateral thyroid surgery, Shy-Drager",sub:true},
  {t:"Spasmodic dysphonia (adductor):",b:true},{t:"Focal laryngeal dystonia — strained-strangled voice breaks on voiced sounds",sub:true},
  {t:"Spasmodic dysphonia (abductor):",b:true},{t:"Breathy voice breaks on voiceless consonants; less common",sub:true},
  {t:"Functional (psychogenic) dysphonia:",b:true},{t:"Voice breaks / aphonia / whispering with intact cough and throat clearing",sub:true},
  "Treatment of spasmodic dysphonia: botulinum toxin injection into laryngeal muscles — gold standard",
]);

// 42
contentSlide("Nasal Speech and Palatal Disorders",[
  "Hypernasal speech: air escapes through nasal cavity during speech — velopharyngeal insufficiency",
  "Neurological causes: myasthenia gravis, bulbar ALS, medullary infarction, GBS, diphtheria",
  "Nasal regurgitation of liquids and food: sign of severe palatal paresis",
  "Hyponasal speech: reduced nasal resonance — nasal obstruction, NOT neurological",
  {t:"Testing palatal function:",b:true},
  {t:"Say 'aah' — watch for uvular deviation (away from side of lesion); k-k-k to test palatal elevation",sub:true},
  "Gag reflex (CN IX and X): absent unilaterally in glossopharyngeal or vagal lesion — though absent gag can be normal in adults",
  "Mirror test: hold cold mirror under nose during speech — fogs with abnormal nasal escape",
]);

// 43
contentSlide("Examination of Articulation and Phonation",[
  "Begin with careful listening to spontaneous speech and reading aloud",
  {t:"Lingual consonants:",b:true},{t:"'la-la-la' rapidly — tests tongue tip mobility; impaired in LMN and cerebellar lesions",sub:true},
  {t:"Labial consonants:",b:true},{t:"'me-me-me' rapidly — tests lip closure; impaired in facial nerve, LMN, and spastic lesions",sub:true},
  {t:"Guttural consonants:",b:true},{t:"'k-k-k' rapidly — tests soft palate and posterior pharynx; impaired in palatal paresis",sub:true},
  "Complex phrases: 'Methodist Episcopal,' 'British Constitution,' 'around the rugged rock'",
  "Assess: rate, rhythm, volume, voice quality, resonance (nasal/oral), intelligibility",
  "Sustained phonation: 'eeee' for quality; maximum phonation time (normal ~15–25 sec) — reduced in laryngeal disease",
  "Diadochokinesis: alternating motion rate — /pa-ta-ka/ repetition rate and regularity",
]);

// ── PART V ────────────────────────────────────────────────────────
// 44
sectionSlide("PART V\nExamination, Testing, and Management");

// 45
contentSlide("Clinical Examination of Language",[
  {t:"1. Spontaneous speech:",b:true},{t:"Fluency, phrase length, rate, paraphasia, effort, prosody",sub:true},
  {t:"2. Comprehension:",b:true},{t:"Yes/no questions → single commands → multi-step commands",sub:true},
  {t:"3. Repetition:",b:true},{t:"Single words → phrases → 'No ifs, ands, or buts'",sub:true},
  {t:"4. Naming:",b:true},{t:"Confrontation naming of objects, body parts, colors; progressive specificity (watch → watch face → stem)",sub:true},
  {t:"5. Reading:",b:true},{t:"Reading aloud (decoding) and reading comprehension (sentence matching, carry out written commands)",sub:true},
  {t:"6. Writing:",b:true},{t:"Write name, a sentence; write to dictation; spontaneous writing",sub:true},
  {t:"Boston Diagnostic Aphasia Examination (BDAE):",b:true},{t:"Gold standard; provides aphasia type classification",sub:true},
  {t:"Western Aphasia Battery (WAB):",b:true},{t:"Yields Aphasia Quotient (AQ); widely used clinically and in research",sub:true},
]);

// 46
contentSlide("Bedside Aphasia Screening — Step by Step",[
  {t:"Step 1 — Spontaneous speech:",b:true},{t:"'What brings you to hospital?' or Cookie Theft picture description (Boston exam)",sub:true},
  {t:"Step 2 — Comprehension:",b:true},{t:"Point to named objects; 2–3 step commands: 'Pick up the pen, give it to me, put it on the bed'",sub:true},
  {t:"Step 3 — Repetition:",b:true},{t:"'No ifs, ands, or buts' — syntactically complex but semantically empty; tests verbal loop",sub:true},
  {t:"Step 4 — Naming:",b:true},{t:"Name 5 common objects; watch parts (face, stem, band) for graded difficulty",sub:true},
  {t:"Step 5 — Reading:",b:true},{t:"Read a sentence aloud; read and carry out a written command ('Close your eyes')",sub:true},
  {t:"Step 6 — Writing:",b:true},{t:"Write own name; write a sentence spontaneously; write to dictation",sub:true},
  "Fluent vs. Nonfluent × Comprehension + × Repetition = aphasia type classification at bedside",
]);

// 47
contentSlide("Neuroimaging in Aphasia and Dysarthria",[
  "MRI is the primary neuroimaging modality for aphasia workup",
  {t:"DWI:",b:true},{t:"Identifies acute infarction within minutes — essential in acute-onset aphasia",sub:true},
  {t:"FLAIR:",b:true},{t:"Subacute infarction, demyelination, encephalitis, tumor, gliosis",sub:true},
  {t:"T1 + contrast:",b:true},{t:"Tumor, abscess, subacute infarction, autoimmune encephalitis",sub:true},
  {t:"fMRI (language mapping):",b:true},{t:"Pre-surgical identification of language hemisphere and eloquent cortex",sub:true},
  {t:"CTA / MRA:",b:true},{t:"Identifies vessel occlusion in acute stroke; mandatory in thrombolysis decision",sub:true},
  {t:"FDG-PET:",b:true},{t:"Hypometabolism in neurodegenerative aphasias (PPA variants); also autoimmune encephalitis",sub:true},
  "Key rule: any acute aphasia is a vascular emergency — neuroimaging stat; do not delay tPA for aphasia workup",
]);

// 48
contentSlide("Differential Diagnosis — Key Distinctions",[
  {t:"Aphasia vs. Dysarthria:",b:true},{t:"Aphasia: language deficit (comprehension, reading, writing impaired); Dysarthria: motor only — language intact",sub:true},
  {t:"Aphasia vs. Confusion:",b:true},{t:"Confused patient: globally inattentive, disoriented; Aphasic patient: attentive but cannot communicate",sub:true},
  {t:"Aphasia vs. Psychosis:",b:true},{t:"Wernicke aphasia can mimic acute psychosis — always test comprehension formally; check neuroimaging",sub:true},
  {t:"Apraxia of Speech vs. Dysarthria:",b:true},{t:"Apraxia: normal muscle strength, inconsistent errors, groping; Dysarthria: consistent pattern, muscle weakness/tone",sub:true},
  {t:"Dysphonia vs. Dysarthria:",b:true},{t:"Dysphonia: voice quality only; Dysarthria: all articulatory components (resonance, articulation, rate)",sub:true},
  {t:"Functional vs. Organic:",b:true},{t:"Functional: inconsistent, suggestible, incongruent with imaging; organic: consistent deficit matching lesion",sub:true},
]);

// 49 — Key Differentials Table
tableSlide("Differential Diagnosis Summary Table",
  ["Disorder","Fluency","Comprehension","Articulation","Key Feature"],
  [
    ["Broca Aphasia","Nonfluent","Preserved","Normal muscles","Agrammatism, frustration"],
    ["Wernicke Aphasia","Fluent","Impaired","Normal muscles","Jargon, no insight"],
    ["Global Aphasia","Nonfluent","Impaired","Normal muscles","All domains severely impaired"],
    ["Conduction Aphasia","Fluent","Preserved","Normal muscles","Repetition severely impaired"],
    ["Flaccid Dysarthria","Normal content","Normal","Weak/fasciculating tongue","LMN signs, nasal speech"],
    ["Spastic Dysarthria","Normal content","Normal","Slow, spastic","Jaw jerk ↑, pseudobulbar affect"],
    ["Cerebellar Dysarthria","Normal content","Normal","Ataxic","Scanning / staccato speech"],
    ["Apraxia of Speech","Effortful reduced","Normal","Normal strength","Inconsistent errors, groping"],
  ]
);

// 50
contentSlide("Vascular Causes of Aphasia and Dysarthria",[
  {t:"Left MCA superior division:",b:true},{t:"Broca aphasia + right lower-face and arm weakness",sub:true},
  {t:"Left MCA inferior division:",b:true},{t:"Wernicke aphasia; hemianopia more prominent; less hemiplegia",sub:true},
  {t:"Left MCA main trunk:",b:true},{t:"Global aphasia + dense right hemiplegia + hemianopia",sub:true},
  {t:"Left PCA:",b:true},{t:"Alexia without agraphia (if splenium also involved); right hemianopia",sub:true},
  {t:"Left ACA / SMA:",b:true},{t:"Transcortical motor aphasia; right leg weakness",sub:true},
  {t:"Basilar / bilateral pons:",b:true},{t:"Pseudobulbar palsy / locked-in syndrome (anarthria, quadriplegia, consciousness intact)",sub:true},
  {t:"Lacunar strokes:",b:true},{t:"Pure dysarthria (internal capsule), subcortical aphasia, thalamic aphasia",sub:true},
]);

// 51
contentSlide("Locked-In Syndrome",[
  "Complete anarthria and quadriplegia from bilateral ventral pontine infarction",
  "Patient is FULLY CONSCIOUS and aware but cannot speak, swallow, or move limbs",
  "Preserved: vertical eye movements and blinking — patient communicates by eye code",
  "Cause: basilar artery occlusion — bilateral corticospinal and corticobulbar tracts destroyed at pons",
  "Language is INTACT (cortex unaffected) — pure anarthria without aphasia",
  "Distinguish from: akinetic mutism (aware but no drive), vegetative state (unaware), coma",
  "AAC technology and eye-tracking devices can restore meaningful communication",
  "High mortality; survivors require long-term intensive support; QOL better than perceived by observers",
]);

// 52
contentSlide("Primary Progressive Aphasia (PPA)",[
  "Neurodegenerative syndrome: gradual language deterioration without prominent memory or behavioral changes early",
  {t:"Nonfluent/Agrammatic PPA:",b:true},{t:"Effortful, agrammatic speech; phonemic paraphasias; apraxia of speech; tau pathology (CBD, PSP, FTLD-tau)",sub:true},
  {t:"Semantic Variant PPA (Semantic Dementia):",b:true},{t:"Fluent; severely impaired naming + single-word comprehension; temporal lobe atrophy; TDP-43",sub:true},
  {t:"Logopenic Variant PPA:",b:true},{t:"Slow speech, word-finding pauses, impaired repetition; posterior temporal/parietal atrophy; Alzheimer pathology common",sub:true},
  "Distinguish from stroke aphasia: gradual onset; focal atrophy (not infarction) on MRI",
  "FDG-PET: shows focal hypometabolism matching atrophy pattern and variant",
  "No disease-modifying treatment; SLP therapy can maintain function and quality of life",
]);

// 53
contentSlide("Language in Dementia",[
  {t:"Alzheimer Disease:",b:true},{t:"Anomia early → simplified grammar → word-finding pauses → near-mutism in advanced stages",sub:true},
  {t:"Frontotemporal Dementia (bvFTD):",b:true},{t:"Reduced speech output; stereotyped phrases; social-pragmatic language most affected early",sub:true},
  {t:"Semantic Variant PPA / SD:",b:true},{t:"Striking anomia; single-word comprehension lost; surface dyslexia; temporal lobe atrophy",sub:true},
  {t:"Nonfluent/Agrammatic PPA:",b:true},{t:"Labored agrammatic speech; apraxia of speech; frontal-insular atrophy",sub:true},
  {t:"Lewy Body Dementia:",b:true},{t:"Variable language; naming difficulties; less severe than AD/FTD; fluctuating attention confounds testing",sub:true},
  {t:"Huntington Disease:",b:true},{t:"Hypophonia, reduced verbal fluency, eventual mutism with motor disease progression",sub:true},
  "SLP involvement in dementia: communication strategies, AAC planning, family training, dysphagia management",
]);

// 54
contentSlide("Aphasia in Specific Neurological Diseases",[
  {t:"Epilepsy:",b:true},{t:"Peri-ictal aphasia (Todd's paralysis equivalent); Landau-Kleffner syndrome (acquired epileptic aphasia in children)",sub:true},
  {t:"Migraine:",b:true},{t:"Aphasic aura — transient aphasia (usually Broca-type) during migraine aura; fully reversible",sub:true},
  {t:"Brain tumor:",b:true},{t:"Aphasia when dominant perisylvian region involved; slow onset; treatment: resection with awake craniotomy + language mapping",sub:true},
  {t:"Autoimmune encephalitis:",b:true},{t:"Anti-NMDAR, anti-LGI1 encephalitis — aphasia + psychiatric features + seizures; reversible with immunotherapy",sub:true},
  {t:"Creutzfeldt-Jakob Disease (CJD):",b:true},{t:"Rapidly progressive aphasia (1–2 months) + myoclonus + rapidly progressive dementia",sub:true},
  {t:"HSV Encephalitis:",b:true},{t:"Hemorrhagic temporal lobe lesion → Wernicke aphasia or pure word deafness; fluent dysphasia",sub:true},
]);

// 55
contentSlide("Speech Disorders in Key Neurological Diseases",[
  {t:"Parkinson Disease:",b:true},{t:"Hypophonia, monotone, festinating; LSVT LOUD most effective treatment",sub:true},
  {t:"ALS:",b:true},{t:"Mixed spastic-flaccid dysarthria → anarthria; AAC planning essential early",sub:true},
  {t:"Multiple Sclerosis:",b:true},{t:"Scanning cerebellar dysarthria; dysphonia; aphasia if plaques in perisylvian white matter",sub:true},
  {t:"Myasthenia Gravis:",b:true},{t:"Fatigable dysarthria and dysphonia — worsens during conversation; nasal quality after prolonged speaking",sub:true},
  {t:"Wilson Disease:",b:true},{t:"Distinctive 'growling' dysarthria; mixed dystonic + cerebellar; early speech complaint in young patients",sub:true},
  {t:"Huntington Disease:",b:true},{t:"Choreic dysarthria → hypophonia → anarthria in late stages",sub:true},
  {t:"Cerebral Palsy:",b:true},{t:"Spastic and/or dyskinetic dysarthria from perinatal brain injury; highly variable severity",sub:true},
]);

// 56
contentSlide("Stuttering, Cluttering, and Developmental Disorders",[
  {t:"Developmental Stuttering:",b:true},{t:"Repetitions, prolongations, blocks on initial sounds; onset 2–6 years; M>F (3:1); 1% of adults",sub:true},
  {t:"Neurogenic (Acquired) Stuttering:",b:true},{t:"Post-stroke, TBI, or Parkinson; stuttering on non-initial syllables; less struggle/anxiety",sub:true},
  {t:"Psychogenic Stuttering:",b:true},{t:"Variable onset; all syllables; inconsistent; suggestible; associated with stress or psychiatric history",sub:true},
  {t:"Cluttering:",b:true},{t:"Excessively rapid, irregular speech; syllables compressed/deleted; associated with ADHD and learning difficulties",sub:true},
  {t:"Developmental Language Disorder (DLD):",b:true},{t:"Persistent language impairment not explained by hearing or intelligence; ~7% of children",sub:true},
  "Evaluation: full SLP assessment; neuroimaging in acquired cases; audiological assessment always",
]);

// 57
contentSlide("Recovery from Aphasia",[
  "Spontaneous recovery: most rapid in first 3 months; continues to 1–2 years; plateau thereafter",
  "Global aphasia may evolve into Broca or anomic aphasia with recovery",
  {t:"Factors favoring recovery:",b:true},{t:"Young age, small lesion, good initial comprehension, high pre-morbid education, early SLP",sub:true},
  {t:"Factors predicting poor recovery:",b:true},{t:"Large lesion, persistent global aphasia >3 months, old age, bilateral lesions, poor comprehension",sub:true},
  "Neuroplasticity: right hemisphere partially assumes language function — most pronounced in young patients",
  {t:"Speech-language therapy:",b:true},{t:"Effective — intensity matters; CIAT (Constraint-Induced Aphasia Therapy); telerehabilitation increasingly used",sub:true},
  {t:"Pharmacological:",b:true},{t:"Memantine, bromocriptine — limited evidence; levodopa may enhance therapy outcomes (trials ongoing)",sub:true},
  {t:"Neuromodulation:",b:true},{t:"TMS and tDCS — suppression of right-hemisphere homologs or enhancement of lesioned areas; investigational",sub:true},
]);

// 58
contentSlide("Speech Therapy Approaches",[
  "Speech-Language Pathologist (SLP): central role in assessment, diagnosis, and treatment of all communication disorders",
  {t:"Aphasia:",b:true},{t:"Stimulation-facilitation, CIAT, conversational therapy, script training, reading/writing therapy",sub:true},
  {t:"Melodic Intonation Therapy (MIT):",b:true},{t:"Uses singing and melody to facilitate speech production in nonfluent aphasia — engages right hemisphere",sub:true},
  {t:"AAC (Augmentative and Alternative Communication):",b:true},{t:"Communication boards, apps, speech-generating devices — for severe aphasia, ALS, locked-in",sub:true},
  {t:"LSVT LOUD:",b:true},{t:"Lee Silverman Voice Treatment — intensive high-effort voice therapy for PD; strongest evidence base for PD dysarthria",sub:true},
  {t:"SPEAK OUT!:",b:true},{t:"PD speech therapy program targeting intentional speaking with strong evidence",sub:true},
  {t:"Dysarthria therapy:",b:true},{t:"Articulatory drills, rate control, prosthetics (palatal lift), breath support exercises",sub:true},
]);

// 59
contentSlide("Pragmatics and Social Communication",[
  "Pragmatics: the use of language in context — turn-taking, inference, indirect speech, relevance",
  "Standard aphasia batteries test propositional language — they systematically miss pragmatic/discourse-level deficits",
  {t:"Right Hemisphere Syndrome:",b:true},{t:"Structural language intact; lost pragmatic abilities — cannot interpret indirect meaning, humor, sarcasm, implication",sub:true},
  {t:"TBI language deficits:",b:true},{t:"Prominent pragmatic deficits even after aphasia resolves — garrulous, tangential, poor topic maintenance",sub:true},
  {t:"Social (Pragmatic) Communication Disorder:",b:true},{t:"DSM-5 diagnosis; impairment in social-communicative use of language without structural language deficit",sub:true},
  "Assessment: conversation analysis, discourse retelling (story narrative), Theory of Mind tasks, ASHA FACS",
  "Rehabilitation: pragmatic communication groups, social scripting, partner training",
]);

// 60
contentSlide("Frontal Lobe and Language",[
  "Broca area: motor programming of speech — lesion → nonfluent / agrammatic aphasia",
  "Supplementary Motor Area (SMA): initiation and sequencing of voluntary speech",
  {t:"SMA lesion:",b:true},{t:"Transcortical motor aphasia → akinetic mutism; can repeat but cannot initiate; usually recovers",sub:true},
  "Anterior cingulate cortex: motivational drive for speech — lesion → akinetic mutism",
  "Prefrontal cortex: executive language — planning complex narrative, monitoring discourse, revising errors",
  {t:"Verbal fluency (FAS test):",b:true},{t:"Name words beginning with F, A, S in 1 min each; healthy adults >12–14/letter; <8 suggests frontal impairment",sub:true},
  "Category fluency (animals in 1 min): <14 suggests temporal / semantic impairment",
  "Dynamic aphasia: near-total reduction of propositional speech from dorsolateral prefrontal lesions",
]);

// 61
contentSlide("Thalamus, Basal Ganglia, and Language",[
  "Thalamus: significant modulating role in language through thalamocortical loops",
  {t:"Thalamic aphasia:",b:true},{t:"Hypophonic, semantic paraphasias, fluctuating arousal; preserved repetition; often transient",sub:true},
  "Lesion: left pulvinar or left ventrolateral (VL) thalamus — most commonly left thalamic hemorrhage or infarction",
  "Recovery: often more complete than cortical aphasia — cortex is intact; deafferentation not destruction",
  {t:"Caudate nucleus:",b:true},{t:"Left caudate infarction → fluent aphasia with semantic paraphasias; hypophonic; often misclassified as cortical",sub:true},
  {t:"Putamen / internal capsule:",b:true},{t:"Dysarthria prominent; posterior capsule extension → transcortical aphasia pattern",sub:true},
  "Associated: hemineglect (thalamus), memory impairment (intralaminar and dorsomedial thalamus — diencephalic amnesia)",
]);

// 62 — Language Exam Summary Table
tableSlide("Language Examination — Summary Domains",
  ["Domain","What It Tests","Bedside Method","Key Deficit"],
  [
    ["Fluency","Spontaneous output, rate, phrase length","Conversational speech; Cookie Theft picture","Short phrases → nonfluent aphasia"],
    ["Comprehension","Auditory understanding","Yes/no, 1–3 step commands, token test","Failure → Wernicke / global"],
    ["Repetition","Verbal loop (Wernicke-arcuate-Broca)","'No ifs, ands, or buts'; digit span","Failure → conduction / Broca / global"],
    ["Naming","Lexical retrieval","Confrontation naming (pen, watch parts)","Failure in all aphasia types"],
    ["Reading","Alexia screening","Read aloud; carry out written command","Alexia with/without agraphia"],
    ["Writing","Agraphia screening","Write name, sentence, dictation","Most sensitive for mild aphasia"],
    ["Calculation","Acalculia screening","Serial 7s; 7×8; 100-7","Gerstmann syndrome (+ agraphia + finger agnosia)"],
    ["Praxis","Ideomotor apraxia","Show how to use comb, scissors, wave","Parietal/Broca area lesion"],
  ]
);

// 63
contentSlide("Clinical Pearls and Mnemonics",[
  {t:"Repetition preserved → TRANSCORTICAL (motor or sensory)",b:true,c:BLUE},
  {t:"Repetition severely impaired, fluency intact → CONDUCTION",b:true,c:BLUE},
  {t:"Fluent + Comprehension impaired → WERNICKE (or transcortical sensory if repetition preserved)",b:true,c:BLUE},
  {t:"Nonfluent + Comprehension impaired → GLOBAL",b:true,c:BLUE},
  {t:"Alexia without agraphia = left occipital + splenium — can write but cannot read what they wrote",b:true,c:BLUE},
  {t:"Acute aphasia = vascular emergency — neuroimaging STAT; do not delay",b:true,c:RED},
  {t:"Dysarthria ≠ Aphasia: dysarthria is motor; language comprehension and writing are INTACT",b:true,c:BLUE},
  {t:"ALS dysarthria = Mixed SPASTIC + FLACCID — the most characteristic combination",b:true,c:BLUE},
  {t:"LSVT LOUD: strongest evidence-based treatment for Parkinson disease dysarthria",b:true,c:BLUE},
]);

// 64
contentSlide("DeJong Examination Approach — Summary",[
  "DeJong's systematic examination: assess spontaneous speech first, then each language domain in order",
  "Always include both spoken and written channels — any language domain can be selectively impaired",
  "Articulation testing: lingual (la), labial (me), guttural (ka) separately — localizes muscular deficit",
  "Palatal function: phonation of 'aah', nasal mirror test, gag reflex assessment",
  "Laryngeal function: sustained 'eeee', maximum phonation time, voice quality at rest vs. effort",
  "Praxis and gesture: always test in aphasia — apraxia co-exists and complicates rehabilitation",
  "Cognitive-communication: screen for right-hemisphere syndrome, frontal-executive deficits, pragmatic impairment",
  "Document findings precisely — 'aphasic' alone is insufficient; specify fluency, comprehension, repetition profile",
]);

// 65 — Closing summary slide
{
  const s = pres.addSlide();
  s.background = { color:NAVY };
  s.addShape(pres.ShapeType.rect, { x:0, y:4.9, w:10, h:0.725, fill:{color:BLUE}, line:{color:BLUE} });
  s.addText("Summary", { x:0.5, y:0.3, w:9, h:0.7, fontSize:30, bold:true, color:WHITE, fontFace:FONT, align:"center" });
  const items = [
    "Language is a dominant-hemisphere, perisylvian NETWORK — not a single center",
    "Aphasia subtypes are defined by the profile of fluency, comprehension, and repetition",
    "Preserved repetition → transcortical aphasia  |  Impaired repetition + fluent → conduction aphasia",
    "Dysarthria = motor disorder; language (comprehension, reading, writing) is fully intact",
    "Dysarthria subtypes reflect their anatomical substrate: flaccid, spastic, extrapyramidal, cerebellar, hyperkinetic",
    "Acute aphasia is a vascular emergency — neuroimaging must not be delayed",
    "SLP therapy is the cornerstone of rehabilitation; intensity, early start, and patient motivation matter",
  ].map((t,i,arr) => ({ text:t, options:{ bullet:{code:"2022"}, fontSize:14, color:"D0E8FF", fontFace:FONT, breakLine:i<arr.length-1, paraSpaceAfter:5 }}));
  s.addText(items, { x:0.5, y:1.1, w:9, h:3.6, valign:"top", wrap:true });
  s.addText("Source: Adams & Victor's Principles of Neurology 12e  |  DeJong's Neurological Examination  |  Bradley & Daroff's Neurology in Clinical Practice",
    { x:0.5, y:5.05, w:9, h:0.45, fontSize:10, color:WHITE, fontFace:FONT, align:"center" });
}

pres.writeFile({ fileName:"/home/daytona/workspace/speech-language-ppt/Disorders_of_Speech_and_Language.pptx" })
  .then(() => console.log("SUCCESS"))
  .catch(e => { console.error(e); process.exit(1); });
This is a shared conversation. Sign in to Orris to start your own chat.