# asiahcrutchfield/ground-level-languages-ai architecture

> Architecture diagram of the GitHub repository asiahcrutchfield/ground-level-languages-ai, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-30). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/asiahcrutchfield/ground-level-languages-ai
- Repository: https://github.com/asiahcrutchfield/ground-level-languages-ai

## Overview

This is an acoustic-first, zero-literacy language-learning prototype implemented as a browser experience. Learners move through vocabulary exploration, listening practice, pronunciation recording and review, and story scenes; the script also handles audio playback, waveform visualization, and stage navigation. The excerpts show these behaviors and browser audio handling, but do not show how the JSON datasets are loaded or how the named Allosaurus, MFA, and CREPE technologies are integrated, so those connections are not asserted.

Main entry points: [`script.js`](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js) (Lesson flow), [`index.html`](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/index.html) (Learning interface), [`audio`](https://github.com/asiahcrutchfield/ground-level-languages-ai/tree/main/audio) (Audio assets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Learning experience"]
  node_page["Learning interface<br/>[index.html]"]
  node_flow["Lesson flow<br/>[script.js]"]
  node_vocabulary["Vocabulary exploration<br/>[script.js]"]
  node_listening["Listening practice<br/>[script.js]"]
  node_pronunciation["Pronunciation practice<br/>[script.js]"]
  node_story["Story scenes<br/>[script.js]"]
end

subgraph group_audio["Audio interaction"]
  node_audio_control["Audio playback<br/>[script.js]"]
  node_waveform["Waveform analysis<br/>[script.js]"]
  node_recording["Recording review<br/>[script.js]"]
end

subgraph group_content["Learning content"]
  node_audio_assets["Audio assets"]
  node_lesson_content["Lesson data<br/>[lesson_data.json]"]
  node_assessment_content["Assessment data"]
  node_story_content["Story data<br/>[story_data.json]"]
  node_story_text["Story text"]
end

node_learner(("Learner"))

node_learner -->|"uses"| node_page
node_page -->|"hosts"| node_flow
node_flow -->|"navigates"| node_vocabulary
node_flow -->|"navigates"| node_listening
node_flow -->|"navigates"| node_pronunciation
node_flow -->|"navigates"| node_story
node_vocabulary -->|"plays audio"| node_audio_control
node_listening -->|"plays prompt"| node_audio_control
node_pronunciation -->|"records audio"| node_recording
node_recording -->|"decodes audio"| node_waveform
node_audio_control -->|"loads clips"| node_audio_assets
node_story -->|"plays sentences"| node_audio_control

click node_page "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/index.html"
click node_flow "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_vocabulary "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_listening "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_pronunciation "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_story "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_audio_control "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_waveform "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_recording "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js"
click node_audio_assets "https://github.com/asiahcrutchfield/ground-level-languages-ai/tree/main/audio"
click node_lesson_content "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/lesson_data.json"
click node_assessment_content "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/assessment_data.json"
click node_story_content "https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/story_data.json"
click node_story_text "https://github.com/asiahcrutchfield/ground-level-languages-ai/tree/main/stories"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_page,node_flow,node_vocabulary,node_listening,node_pronunciation,node_story toneBlue
class node_audio_control,node_waveform,node_recording toneAmber
class node_audio_assets,node_lesson_content,node_assessment_content,node_story_content,node_story_text toneMint
class node_learner toneIndigo
```

## Components

### Learning experience

- [Learning interface](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/index.html): `index.html`
- [Lesson flow](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`
- [Vocabulary exploration](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`
- [Listening practice](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`
- [Pronunciation practice](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`
- [Story scenes](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`

### Audio interaction

- [Audio playback](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`
- [Waveform analysis](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`
- [Recording review](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/script.js): `script.js`

### Learning content

- [Audio assets](https://github.com/asiahcrutchfield/ground-level-languages-ai/tree/main/audio): `audio`
- [Lesson data](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/lesson_data.json): `lesson_data.json`
- [Assessment data](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/assessment_data.json): `assessment_data.json`
- [Story data](https://github.com/asiahcrutchfield/ground-level-languages-ai/blob/main/story_data.json): `story_data.json`
- [Story text](https://github.com/asiahcrutchfield/ground-level-languages-ai/tree/main/stories): `stories`

### Other components

- **Learner**

## Connections

- Learner → Learning interface: uses (evidence: `README.md`)
- Learning interface → Lesson flow: hosts (evidence: `script.js`)
- Lesson flow → Vocabulary exploration: navigates (evidence: `script.js`)
- Lesson flow → Listening practice: navigates (evidence: `script.js`)
- Lesson flow → Pronunciation practice: navigates (evidence: `script.js`)
- Lesson flow → Story scenes: navigates (evidence: `script.js`)
- Vocabulary exploration → Audio playback: plays audio (evidence: `script.js`)
- Listening practice → Audio playback: plays prompt (evidence: `script.js`)
- Pronunciation practice → Recording review: records audio (evidence: `script.js`)
- Recording review → Waveform analysis: decodes audio (evidence: `script.js`)
- Audio playback → Audio assets: loads clips (evidence: `script.js`)
- Story scenes → Audio playback: plays sentences (evidence: `script.js`)
