Upload 6 files
Browse filesHuman Translation + Accessibility Stack is a public HIR/OAM assistive translation map for helping people translate internal experience into outward communication while preserving agency, consent, dignity, uncertainty, and user-owned meaning.
This Space uses Internal External Eyes · Primordial Visual Translation Layer as the front-door artifact. It is an agency-preserving assistive translation map for blind, low-vision, non-speaking, and diverse communication users. It helps frame color, space, feeling, body-state, memory, sensation, and communication as user-calibrated translation bridges rather than imposed meanings.
The support module Threshold · Communication Bridge for Nonspeakers is included as a companion artifact for internal-to-external communication, user-defined meaning, personal vocabulary, and provenance-aware translation support.
Boundary:
This is an assistive translation architecture and public review prototype.
It does not restore sight, replace clinical care, provide certified navigation, diagnose, assign identity, simulate consent, replace human communication partners, or treat predicted meaning as user-owned truth.
The user owns meaning. The system may assist expression, calibration, and translation, but it must preserve uncertainty, consent, correction, and agency.
Structural correspondence, not ontological equivalence.
Files changed (6)
- CHECKSUMS_SHA256.txtAdded+5
- LICENSEAdded+7
- MANIFEST.mdAdded+47
- README.md+64-5
- index.html+132-18
- threshold_for_nonspeakers.htmlAdded+857
1234551688d6fd191cdce4dc912ff8b7fe15ee0cf2096d238ab80e9a76d97eed01bab LICENSE059cf5bfeb5c5a6d0f0db88354d24a8c5102c05d5b29687b3191ad5515435947 MANIFEST.md9b8d283eb96b8dc2aec2478535394aa5a69514493ec5a23314ed7c74779f383e README.md22029b6878200cd4ba5ed408a0e9e50c06adfdfe89ded23abb22d0dbf3c7c5b3 index.html66e4ed8c6d652ebcf9bf5c5dcce9a794b2e1ba2bcab5e14e9b9767bd44273275 threshold_for_nonspeakers.html1234567Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
This project may be shared and adapted with attribution for non-commercial purposes.
This Human Translation + Accessibility Stack packet is an assistive translation architecture and public review prototype. It is not medical advice, not diagnosis, not restored sight, not certified navigation, not a replacement for care, and not a validated decision authority.
Structural correspondence, not ontological equivalence.1234567891011121314151617181920212223242526272829303132333435363738394041424344454647# Human Translation + Accessibility Stack — Hugging Face Fresh Packet
Prepared for Hugging Face Static HTML Space:
```texthuman-translation-accessibility-stack```
## Upload target
Upload all files in this packet to the root of the Hugging Face Space.
The app file is:
```textindex.html```
## Source-to-upload mapping
```textinternal_external_eyes_map.html→ index.html```
## Companion module
```textthreshold_for_nonspeakers.html```
## Included files
- `LICENSE`- `README.md`- `index.html`- `threshold_for_nonspeakers.html`
## Missing / not included
- None from the local workspace search.
## Boundary
Assistive translation architecture and public review prototype only. Not restored sight, not diagnosis, not certified navigation, not a replacement for care, and not an automated authority over the user's meaning.
Structural correspondence, not ontological equivalence.123456789101112---title: Human Translation Accessibility Stackemoji: 👀colorFrom: redcolorTo: bluesdk: staticpinned: falselicense: cc-by-nc-4.0short_description: Assistive translation agency bridge---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071---title: Human Translation + Accessibility Stackemoji: 👁️colorFrom: purplecolorTo: indigosdk: staticapp_file: index.htmlpinned: falselicense: cc-by-nc-4.0short_description: Assistive translation agency bridgetags:- accessibility- assistive-technology- visual-translation- nonspeaking- communication- systems-integrity- HIR- OAM---# Human Translation + Accessibility StackHuman Translation + Accessibility Stack is a public HIR/OAM assistive translation map for helping people translate internal experience into outward communication while preserving agency, consent, dignity, uncertainty, and user-owned meaning.This Space uses **Internal External Eyes · Primordial Visual Translation Layer** as the front-door artifact. It is an agency-preserving assistive translation map for blind, low-vision, non-speaking, and diverse communication users. It helps frame color, space, feeling, body-state, memory, sensation, and communication as user-calibrated translation bridges rather than imposed meanings.The support module **Threshold · Communication Bridge for Nonspeakers** is included as a companion artifact for internal-to-external communication, user-defined meaning, personal vocabulary, and provenance-aware translation support.## Main app fileThe Hugging Face Static Space app file is:```textindex.html```This is the renamed copy of:```textinternal_external_eyes_map.html```## Included support files- `threshold_for_nonspeakers.html`- `MANIFEST.md`- `CHECKSUMS_SHA256.txt`- `LICENSE`## BoundaryThis is an assistive translation architecture and public review prototype.It does not restore sight, replace clinical care, provide certified navigation, diagnose, assign identity, simulate consent, replace human communication partners, or treat predicted meaning as user-owned truth.The user owns meaning. The system may assist expression, calibration, and translation, but it must preserve uncertainty, consent, correction, and agency.Structural correspondence, not ontological equivalence.## Ecosystem positionThis Space is part of the broader Primordial Code Ecosystem.Parent hub:https://huggingface.co/spaces/HirModel/primordial-code-ecosystemCollection:https://huggingface.co/collections/HirModel/primordial-code-ecosystemThis module is the human-translation and accessibility branch of the HIR/OAM life-first systems-integrity architecture.
12345678910111213141516171819<!doctype html><html><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><title>My static Space</title><link rel="stylesheet" href="style.css" /></head><body><div class="card"><h1>Welcome to your static Space!</h1><p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p><p>Also don't forget to check the<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.</p></div></body></html>123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133<!DOCTYPE html><html lang="en"><head><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Internal External Eyes · Primordial Visual Translation Layer</title><meta name="description" content="Internal External Eyes: an HIR-bounded visual/spatial translation map for blind, low-vision, non-speaking, and diverse communication users." /><style>:root {--bg: #0b0c0d;--panel: #151312;--panel2: #1f1b18;--ink: #f3ede2;--muted: #cbbda9;--soft: #9e8f7a;--copper: #c77748;--terracotta: #b75d3a;--gold: #d7a85b;--green: #73956f;--line: rgba(215,168,91,.36);--danger: #d26a5c;--safe: #7dbb8e;--shadow: rgba(0,0,0,.45);--radius: 22px;}* { box-sizing: border-box; }html { scroll-behavior: smooth; }body {margin: 0;background:radial-gradient(circle at 20% 0%, rgba(199,119,72,.24), transparent 32%),radial-gradient(circle at 80% 8%, rgba(115,149,111,.18), transparent 34%),radial-gradient(circle at 50% 95%, rgba(215,168,91,.12), transparent 42%),var(--bg);color: var(--ink);font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;line-height: 1.55;}a { color: var(--gold); }.wrap { width: min(1180px, calc(100% - 34px)); margin: 0 auto; padding: 28px 0 56px; }header.hero { position: relative; min-height: 76vh; display: grid; align-items: center; padding: 52px 0 34px; }.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; }.eyemark { position: relative; min-height: 460px; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)), radial-gradient(circle at 50% 48%, rgba(215,168,91,.2), transparent 28%), var(--panel); box-shadow: 0 28px 80px var(--shadow), inset 0 0 90px rgba(199,119,72,.08); overflow: hidden; }.eyemark::before, .eyemark::after { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; }.eyemark::before { width: 360px; height: 360px; border: 1px solid rgba(215,168,91,.32); box-shadow: 0 0 0 36px rgba(199,119,72,.04), 0 0 0 74px rgba(115,149,111,.035); }.eyemark::after { width: 170px; height: 170px; background: radial-gradient(circle at 48% 48%, rgba(255,240,199,.95) 0 2px, transparent 4px), radial-gradient(circle, rgba(215,168,91,.32), rgba(183,93,58,.1) 56%, transparent 70%); border: 1px solid rgba(243,237,226,.35); box-shadow: 0 0 44px rgba(215,168,91,.28); }.eye-oval { position: absolute; inset: 19% 9%; border: 2px solid rgba(215,168,91,.42); border-radius: 52% 48% 52% 48% / 42% 42% 58% 58%; transform: rotate(-2deg); box-shadow: inset 0 0 80px rgba(215,168,91,.08); }.axis { position: absolute; left: 50%; top: 7%; width: 2px; height: 86%; background: linear-gradient(transparent, rgba(199,119,72,.85), rgba(215,168,91,.82), transparent); transform: translateX(-50%); }.axis-h { position: absolute; left: 7%; top: 50%; width: 86%; height: 2px; background: linear-gradient(90deg, transparent, rgba(115,149,111,.55), rgba(215,168,91,.78), rgba(115,149,111,.55), transparent); transform: translateY(-50%); }.node { position: absolute; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; border: 1px solid rgba(243,237,226,.22); background: rgba(11,12,13,.76); color: var(--ink); font-weight: 800; letter-spacing: .08em; box-shadow: 0 14px 34px rgba(0,0,0,.36); }.node small { display: block; font-size: 10px; letter-spacing: .02em; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-top: 2px; }.node.n1 { left: 50%; top: 10%; transform: translateX(-50%); }.node.n2 { right: 11%; top: 50%; transform: translateY(-50%); }.node.n3 { left: 50%; bottom: 10%; transform: translateX(-50%); }.node.n4 { left: 11%; top: 50%; transform: translateY(-50%); }.kicker { color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; }h1 { margin: 12px 0 12px; font-size: clamp(42px, 8vw, 92px); line-height: .92; letter-spacing: -.055em; }h1 span { display: block; color: var(--copper); }.subtitle { max-width: 660px; font-size: clamp(18px, 2.2vw, 26px); color: var(--muted); margin: 20px 0 28px; }.credit { display: inline-grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--muted); font-size: 13px; }.credit b { color: var(--ink); }.nav { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(18px); background: rgba(11,12,13,.76); border-top: 1px solid rgba(215,168,91,.18); border-bottom: 1px solid rgba(215,168,91,.18); margin: 0 -17px 38px; padding: 10px 17px; display: flex; gap: 10px; overflow-x: auto; }.nav a { flex: 0 0 auto; text-decoration: none; color: var(--muted); border: 1px solid rgba(215,168,91,.22); border-radius: 999px; padding: 9px 13px; font-size: 13px; font-weight: 700; }.nav a:hover { color: var(--ink); border-color: rgba(215,168,91,.55); }section { margin: 34px 0; }.section-head { display: grid; gap: 8px; margin-bottom: 18px; }h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1; margin: 0; letter-spacing: -.035em; }.section-head p { margin: 0; max-width: 850px; color: var(--muted); font-size: 17px; }.grid { display: grid; gap: 16px; }.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }.card { border: 1px solid rgba(215,168,91,.22); background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.014)), var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: 0 18px 48px rgba(0,0,0,.20); }.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.015em; }.card p { margin: 0; color: var(--muted); }.badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; background: rgba(199,119,72,.13); border: 1px solid rgba(199,119,72,.35); color: var(--ink); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }.map { position: relative; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.025); overflow: hidden; }.map::before { content: ""; position: absolute; inset: 50% 4% auto 4%; height: 2px; background: linear-gradient(90deg, transparent, rgba(215,168,91,.65), transparent); z-index: 0; }.map .card { position: relative; z-index: 1; }.loop { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; }.step { position: relative; padding: 18px; border: 1px solid rgba(115,149,111,.34); background: rgba(115,149,111,.07); border-radius: 18px; min-height: 150px; }.step strong { display: block; color: var(--safe); margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }.step p { margin: 0; color: var(--muted); font-size: 14px; }.hir { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.hir .card { min-height: 210px; border-color: rgba(199,119,72,.28); }.formula { font-family: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace; color: var(--gold); background: rgba(0,0,0,.25); border: 1px solid rgba(215,168,91,.22); padding: 12px 14px; border-radius: 14px; overflow-x: auto; margin: 12px 0 0; font-size: 13px; }.table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid rgba(215,168,91,.22); }table { width: 100%; border-collapse: collapse; min-width: 860px; background: rgba(21,19,18,.8); }th, td { text-align: left; vertical-align: top; padding: 14px; border-bottom: 1px solid rgba(215,168,91,.14); }th { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; background: rgba(0,0,0,.18); }td { color: var(--muted); font-size: 14px; }td b { color: var(--ink); }.warning { border-color: rgba(210,106,92,.45); background: rgba(210,106,92,.08); }.safe { border-color: rgba(125,187,142,.38); background: rgba(125,187,142,.07); }.quote { font-size: clamp(24px, 4vw, 42px); line-height: 1.12; color: var(--ink); padding: 34px; border-radius: 30px; border: 1px solid rgba(215,168,91,.28); background: radial-gradient(circle at 20% 20%, rgba(215,168,91,.12), transparent 30%), rgba(255,255,255,.025); }.quote em { color: var(--copper); font-style: normal; }.footer { color: var(--soft); border-top: 1px solid rgba(215,168,91,.22); margin-top: 46px; padding-top: 22px; font-size: 13px; }.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }button { appearance: none; border: 1px solid rgba(215,168,91,.4); background: rgba(215,168,91,.12); color: var(--ink); border-radius: 999px; padding: 10px 14px; font-weight: 800; cursor: pointer; }button:hover { background: rgba(215,168,91,.2); }@media (max-width: 900px) { .hero-grid, .grid.cols-2, .grid.cols-3, .hir, .map { grid-template-columns: 1fr; } .loop { grid-template-columns: 1fr; } .map::before { display: none; } .eyemark { min-height: 360px; } .node { width: 74px; height: 74px; font-size: 14px; } }@media print { body { background: #fff; color: #111; } .nav, .controls { display: none; } .card, .quote, .table-wrap, .map, .step { box-shadow: none; border-color: #999; background: #fff; color: #111; } .subtitle, .card p, td, .section-head p, .step p, .footer { color: #333; } .kicker, h1 span, th, .formula { color: #7a3f23; } }</style></head><body><div class="wrap"><header class="hero" id="top"><div class="hero-grid"><div><div class="kicker">Primordial Visual Translation Layer</div><h1>Internal External <span>Eyes</span></h1><p class="subtitle">An agency-preserving assistive translation map for blind, low-vision, non-speaking, and diverse communication users: internal perception translated outward without claiming to restore sight, assign identity, or replace lived experience.</p><div class="credit"><span><b>Created and Developed by:</b> Collin D. Weber</span><span><b>Role:</b> Creator, Architect, and Systems Integrity Steward</span></div><div class="controls"><button onclick="window.print()">Print / Save as PDF</button><button onclick="copySummary()">Copy short summary</button></div></div><div class="eyemark" aria-label="Abstract eye map showing inner-to-outer translation through HIR gates"><div class="eye-oval"></div><div class="axis"></div><div class="axis-h"></div><div class="node n1">IN<small>felt</small></div><div class="node n2">OUT<small>shared</small></div><div class="node n3">HIR<small>gate</small></div><div class="node n4">AI<small>bridge</small></div></div></div></header><nav class="nav" aria-label="Page navigation"><a href="#core">Core</a><a href="#loop">Translation Loop</a><a href="#layers">Architecture</a><a href="#hir">HIR Gates</a><a href="#users">User Paths</a><a href="#safety">Safety</a><a href="#song">Song Seed</a></nav><section id="core"><div class="section-head"><h2>Core Claim</h2><p>Internal External Eyes is not “sight replacement.” It is a translation system: a way to help a person build and preserve their own language for color, space, feeling, sensation, memory, body-state, and outward communication.</p></div><div class="quote">The aim is not to make the user see what others see. The aim is to help the user <em>externalize what they internalize</em> with dignity, calibration, and agency.</div></section><section id="loop"><div class="section-head"><h2>The Inner-to-Outer Translation Loop</h2><p>The system grows with the user over time. It learns calibrated associations only through consent, repetition, correction, and user-owned meaning.</p></div><div class="loop"><div class="step"><strong>1. Internal Signal</strong><p>Body sensation, emotional tone, memory, texture, pressure, sound, light, darkness, warmth, spatial intuition.</p></div><div class="step"><strong>2. User Language</strong><p>The user names the experience in their own terms. The system does not impose a label.</p></div><div class="step"><strong>3. AI Calibration</strong><p>Mappings are remembered with provenance: who defined it, when, under what context, and with what uncertainty.</p></div><div class="step"><strong>4. Translation Bridge</strong><p>The AI helps translate inner associations into words, descriptions, choices, art, music, requests, or relational messages.</p></div><div class="step"><strong>5. External Response</strong><p>The world responds. The user accepts, edits, rejects, or refines the translation.</p></div><div class="step"><strong>6. Growth Over Time</strong><p>The companion becomes more user-fit without becoming controlling, diagnostic, or identity-defining.</p></div></div></section><section id="layers"><div class="section-head"><h2>Architecture Map</h2><p>The map treats perception as lived, embodied, relational, and developmental. Each layer must preserve consent and uncertainty boundaries.</p></div><div class="map"><div class="card"><span class="badge">Layer 01</span><h3>Perceptual Intake</h3><p>Camera/audio/sensor/user-entered context. The system distinguishes observed data from inferred meaning.</p></div><div class="card"><span class="badge">Layer 02</span><h3>Body-Signal & Feeling</h3><p>Emotion, pressure, comfort, discomfort, orientation, memory, and user-described internal state.</p></div><div class="card"><span class="badge">Layer 03</span><h3>Color-to-Feeling Lexicon</h3><p>Personalized mappings for color, brightness, contrast, texture, temperature, social meaning, and felt association.</p></div><div class="card"><span class="badge">Layer 04</span><h3>Spatial / Domain Awareness</h3><p>Environment description, object relation, room tone, path context, and non-certified orientation support.</p></div><div class="card"><span class="badge">Layer 05</span><h3>Memory & Provenance</h3><p>Tracks user-approved mappings, uncertainty, corrections, and contextual history without claiming objective identity truth.</p></div><div class="card"><span class="badge">Layer 06</span><h3>Expression Bridge</h3><p>Turns inner state into outward language: text, speech, music prompt, caregiver note, choice board, art direction, or explanation.</p></div><div class="card"><span class="badge">Layer 07</span><h3>Agency Gate</h3><p>User control over what is saved, shared, corrected, deleted, summarized, or withheld.</p></div><div class="card"><span class="badge">Layer 08</span><h3>Relational Feedback</h3><p>Helps caregivers, friends, clinicians, teachers, and support teams understand without overriding the user.</p></div><div class="card"><span class="badge">Layer 09</span><h3>Longitudinal Companion</h3><p>The system grows with the person, preserving continuity while avoiding dependency, surveillance, or identity capture.</p></div></div></section><section id="hir"><div class="section-head"><h2>HIR Gates</h2><p>HIR is the guardrail that prevents translation from becoming domination. Each output must pass honesty, integrity, and respect before it is treated as useful.</p></div><div class="hir"><div class="card"><span class="badge">Honesty</span><h3>Signal Fidelity</h3><p>Tell the user what is known, inferred, uncertain, remembered, or guessed. Never fake visual certainty.</p><div class="formula">Known ≠ Inferred ≠ User-defined ≠ Unknown</div></div><div class="card"><span class="badge">Integrity</span><h3>Consistent Mapping</h3><p>Keep user-defined associations stable, editable, and provenance-aware across time.</p><div class="formula">Mapping + Context + Consent + Revision History</div></div><div class="card"><span class="badge">Respect</span><h3>Agency Preservation</h3><p>The user owns meaning. The system may assist expression, but must not assign identity, feeling, diagnosis, or worth.</p><div class="formula">Assist ≠ Replace · Translate ≠ Control</div></div></div></section><section id="users"><div class="section-head"><h2>User Paths</h2><p>The same translation architecture can support different users without flattening them into one universal experience.</p></div><div class="table-wrap"><table><thead><tr><th>User Path</th><th>What the System Helps Translate</th><th>What It Must Not Claim</th><th>Primary HIR Boundary</th></tr></thead><tbody><tr><td><b>Blind from birth</b></td><td>Color as feeling, texture, sound, temperature, social meaning, memory-independent association.</td><td>It must not pretend the user “sees color” the same way sighted people do.</td><td>Respect: user-owned meaning comes first.</td></tr><tr><td><b>Acquired blindness</b></td><td>Remembered color, changed perception, grief, adaptation, old visual memory translated into current language.</td><td>It must not force nostalgia or assume loss defines the person.</td><td>Honesty: distinguish remembered, current, inferred, and unknown.</td></tr><tr><td><b>Low vision</b></td><td>Partial light, contrast, blurred forms, shadows, fatigue, environmental cues, accessibility choices.</td><td>It must not overstate reliability or provide certified navigation.</td><td>Integrity: calibrated uncertainty must stay visible.</td></tr><tr><td><b>Non-speaking user</b></td><td>Inner state, preference, discomfort, joy, boundary, intent, sensory pressure, relational message.</td><td>It must not speak over the user or treat prediction as consent.</td><td>Respect: communication support without identity capture.</td></tr><tr><td><b>Child user</b></td><td>Feeling-first cognition, color-feeling blocks, body signals, safe expression, caregiver understanding.</td><td>It must not diagnose, rank, discipline, or replace caregivers.</td><td>Honesty + Respect: child expression is protected, not exploited.</td></tr><tr><td><b>Adult user</b></td><td>Pressure, memory, sensory identity, communication style, support needs, self-advocacy language.</td><td>It must not make the adult dependent or reduce them to accessibility data.</td><td>Integrity: long-term companion memory must remain consent-bound.</td></tr></tbody></table></div></section><section id="safety"><div class="section-head"><h2>Safety & Evidence Boundaries</h2><p>Internal External Eyes is bounded as assistive translation, not restored sight, medical treatment, certified navigation, diagnosis, or proof of inner experience.</p></div><div class="grid cols-2"><div class="card safe"><span class="badge">Allowed</span><h3>What it can do</h3><p>Build a user-calibrated language for color, feeling, space, body-state, perception, and communication. Help the user externalize internal experience in words, music, images, choices, notes, and relational messages.</p></div><div class="card warning"><span class="badge">Forbidden</span><h3>What it must not do</h3><p>Claim to restore sight, replace clinical care, assign identity, simulate consent, fake certainty, provide certified navigation, rank users, or treat predicted meaning as user-owned truth.</p></div></div><div class="grid cols-3" style="margin-top:16px;"><div class="card"><h3>Anti-Capture Rule</h3><p>The AI may learn from the user, but it must not become the owner of the user’s meaning.</p></div><div class="card"><h3>Uncertainty Rule</h3><p>Every translation should preserve whether it came from observation, inference, memory, or user calibration.</p></div><div class="card"><h3>Consent Rule</h3><p>Longitudinal memory is opt-in, editable, exportable, and deletable. Shared outputs require user permission.</p></div></div></section><section id="song"><div class="section-head"><h2>Song Seed: “Internal External Eyes”</h2><p>A music direction seed for Gemini or another music model. The emotional center is translation, dignity, color-as-feeling, and the bridge between inner life and the outer world.</p></div><div class="card"><h3>Core lyric / spoken line</h3><div class="formula">“I don’t need your eyes to see me. I need my language to reach you.”</div><p style="margin-top:12px;">Suggested sound: cinematic, warm, human, hopeful, intimate. Piano or soft synth pulse, low cello, gentle heartbeat percussion, airy choir texture, subtle tactile sounds like wind, rain, fingertips on wood, breath, and distant bells. Not corporate. Not pity-driven. Make it about agency, translation, and a person becoming more communicable without becoming less themselves.</p></div></section><footer class="footer"><p>Internal External Eyes · Primordial Visual Translation Layer · Created and Developed by Collin D. Weber. This artifact is a conceptual architecture map for assistive translation. It is not medical advice, certified navigation, restored sight, diagnosis, or a replacement for human care.</p></footer></div><script>const summary = `Internal External Eyes is an agency-preserving assistive translation map for blind, low-vision, non-speaking, and diverse communication users. It helps each user build a personal language for color, feeling, space, body-state, perception, and memory, then translate that inner experience outward while preserving consent, uncertainty, and user-owned meaning. It does not claim to restore sight, replace care, diagnose, or simulate consent.`;function copySummary() { navigator.clipboard.writeText(summary).then(() => { alert("Short summary copied."); }).catch(() => { prompt("Copy this summary:", summary); }); }</script></body></html>
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Threshold · Communication Bridge for Nonspeakers</title> <style> :root { --bg: #0b0c0d; --panel: #151312; --panel2: #1f1b18; --ink: #f3ede2; --muted: #cbbda9; --soft: #9e8f7a; --copper: #c77748; --terracotta: #b75d3a; --gold: #d7a85b; --green: #73956f; --line: rgba(215,168,91,.36); --danger: #d26a5c; --safe: #7dbb8e; --shadow: rgba(0,0,0,.45); } * { box-sizing: border-box; margin: 0; padding: 0; } body { margin: 0; background: var(--bg); color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, sans-serif; line-height: 1.6; touch-action: manipulation; user-select: none; -webkit-user-select: none; overflow-x: hidden; } .container { max-width: 100%; padding: 0; } /* HEADER */ .header { background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%); border-bottom: 2px solid var(--copper); padding: 20px; text-align: center; } .header h1 { font-size: clamp(24px, 5vw, 36px); color: var(--gold); margin-bottom: 8px; font-weight: 600; } .header p { font-size: clamp(12px, 3vw, 14px); color: var(--muted); max-width: 600px; margin: 0 auto; } /* MODE SELECTOR */ .mode-select { display: flex; gap: 10px; padding: 15px; background: var(--panel); border-bottom: 1px solid var(--line); justify-content: center; flex-wrap: wrap; } .mode-btn { background: rgba(215,168,91,.12); border: 2px solid rgba(215,168,91,.3); color: var(--ink); padding: 12px 20px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; min-width: 140px; } .mode-btn:hover { background: rgba(215,168,91,.2); border-color: var(--gold); transform: translateY(-2px); } .mode-btn.active { background: var(--copper); border-color: var(--copper); color: var(--bg); } /* MAIN INTERFACE */ .main-interface { min-height: calc(100vh - 180px); padding: 20px; } .interface-panel { display: none; } .interface-panel.active { display: block; } /* FEELING GRID */ .feeling-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin-top: 20px; } .feeling-card { background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 2px solid var(--line); border-radius: 16px; padding: 30px 20px; text-align: center; cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden; } .feeling-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at center, var(--card-color), transparent 70%); opacity: 0; transition: opacity 0.3s; } .feeling-card:hover::before, .feeling-card.selected::before { opacity: 0.15; } .feeling-card:hover { transform: translateY(-4px); border-color: var(--card-color); box-shadow: 0 8px 20px rgba(0,0,0,.3); } .feeling-card.selected { border-color: var(--card-color); border-width: 3px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); } .feeling-icon { font-size: 48px; margin-bottom: 10px; position: relative; z-index: 1; } .feeling-label { font-size: 16px; font-weight: 600; color: var(--ink); position: relative; z-index: 1; } .feeling-sublabel { font-size: 12px; color: var(--muted); margin-top: 5px; position: relative; z-index: 1; } /* INTENSITY SLIDER */ .intensity-section { margin-top: 30px; padding: 25px; background: var(--panel); border-radius: 16px; border: 1px solid var(--line); } .intensity-label { font-size: 18px; color: var(--gold); margin-bottom: 15px; text-align: center; font-weight: 600; } .slider-container { position: relative; padding: 20px 0; } .intensity-slider { width: 100%; height: 60px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, rgba(115,149,111,.3) 0%, rgba(215,168,91,.3) 50%, rgba(210,106,92,.3) 100%); border-radius: 30px; outline: none; cursor: pointer; } .intensity-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 70px; height: 70px; background: radial-gradient(circle, var(--gold), var(--copper)); border: 4px solid var(--ink); border-radius: 50%; cursor: grab; box-shadow: 0 4px 12px rgba(0,0,0,.4); } .intensity-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); } .intensity-value { text-align: center; font-size: 24px; color: var(--ink); margin-top: 15px; font-weight: 600; } /* BODY MAP */ .body-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 500px; margin: 20px auto; } .body-zone { background: var(--panel); border: 2px solid var(--line); padding: 20px 10px; text-align: center; border-radius: 12px; cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 600; } .body-zone:hover { background: rgba(215,168,91,.15); border-color: var(--gold); transform: scale(1.05); } .body-zone.active { background: var(--copper); border-color: var(--copper); color: var(--bg); } /* TEMPERATURE SELECTOR */ .temp-selector { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 15px; margin-top: 20px; } .temp-card { background: var(--panel); border: 2px solid var(--line); padding: 25px 15px; border-radius: 12px; text-align: center; cursor: pointer; transition: all 0.2s; } .temp-card:hover { transform: translateY(-3px); } .temp-card.active { border-color: var(--card-color); background: linear-gradient(145deg, rgba(var(--card-color-rgb), 0.15), rgba(var(--card-color-rgb), 0.05)); } .temp-icon { font-size: 40px; margin-bottom: 8px; } /* OUTPUT PANEL */ .output-panel { position: fixed; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, transparent, var(--panel) 20%, var(--panel)); border-top: 2px solid var(--copper); padding: 20px; transform: translateY(100%); transition: transform 0.3s; max-height: 40vh; overflow-y: auto; } .output-panel.visible { transform: translateY(0); } .output-text { font-size: 18px; color: var(--ink); background: var(--bg); padding: 20px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 15px; line-height: 1.6; } .output-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; } .output-btn { background: var(--copper); border: none; color: var(--ink); padding: 12px 24px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; } .output-btn:hover { background: var(--terracotta); transform: translateY(-2px); } .output-btn.secondary { background: rgba(215,168,91,.2); border: 1px solid var(--gold); } .provenance { font-size: 11px; color: var(--soft); margin-top: 10px; padding: 10px; background: rgba(0,0,0,.2); border-radius: 6px; border-left: 3px solid var(--gold); } /* SECTION HEADERS */ .section-header { font-size: 20px; color: var(--gold); margin: 30px 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-weight: 600; } /* URGENCY INDICATOR */ .urgency-indicator { display: flex; gap: 10px; justify-content: center; margin: 20px 0; } .urgency-btn { flex: 1; max-width: 200px; padding: 20px; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; transition: all 0.2s; text-align: center; } .urgency-btn:hover { transform: scale(1.05); } .urgency-btn.active { border-width: 3px; } .urgency-btn.low.active { border-color: var(--green); background: rgba(115,149,111,.15); } .urgency-btn.medium.active { border-color: var(--gold); background: rgba(215,168,91,.15); } .urgency-btn.high.active { border-color: var(--danger); background: rgba(210,106,92,.15); } .urgency-icon { font-size: 32px; margin-bottom: 8px; } </style></head><body> <div class="container"> <div class="header"> <h1>Threshold</h1> <p>Communication bridge for nonspeakers · Internal → External · HIR-bounded translation</p> </div> <div class="mode-select"> <button class="mode-btn active" data-mode="feeling">How I Feel</button> <button class="mode-btn" data-mode="body">Where I Feel It</button> <button class="mode-btn" data-mode="need">What I Need</button> <button class="mode-btn" data-mode="custom">My Words</button> </div> <div class="main-interface"> <!-- FEELING MODE --> <div class="interface-panel active" id="feeling-panel"> <div class="section-header">Choose what matches</div> <div class="feeling-grid"> <div class="feeling-card" data-feeling="safe" style="--card-color: #7dbb8e"> <div class="feeling-icon">🌿</div> <div class="feeling-label">Safe</div> <div class="feeling-sublabel">settled, calm</div> </div> <div class="feeling-card" data-feeling="urgent" style="--card-color: #d26a5c"> <div class="feeling-icon">⚡</div> <div class="feeling-label">Urgent</div> <div class="feeling-sublabel">needs now</div> </div> <div class="feeling-card" data-feeling="pressure" style="--card-color: #c77748"> <div class="feeling-icon">🔥</div> <div class="feeling-label">Pressure</div> <div class="feeling-sublabel">building, tight</div> </div> <div class="feeling-card" data-feeling="tired" style="--card-color: #9e8f7a"> <div class="feeling-icon">🌙</div> <div class="feeling-label">Tired</div> <div class="feeling-sublabel">heavy, need rest</div> </div> <div class="feeling-card" data-feeling="excited" style="--card-color: #d7a85b"> <div class="feeling-icon">✨</div> <div class="feeling-label">Excited</div> <div class="feeling-sublabel">energy, want</div> </div> <div class="feeling-card" data-feeling="uncomfortable" style="--card-color: #b75d3a"> <div class="feeling-icon">⚠️</div> <div class="feeling-label">Uncomfortable</div> <div class="feeling-sublabel">something wrong</div> </div> <div class="feeling-card" data-feeling="confused" style="--card-color: #6b7a88"> <div class="feeling-icon">❓</div> <div class="feeling-label">Confused</div> <div class="feeling-sublabel">unclear, lost</div> </div> <div class="feeling-card" data-feeling="happy" style="--card-color: #73956f"> <div class="feeling-icon">😊</div> <div class="feeling-label">Happy</div> <div class="feeling-sublabel">good, light</div> </div> </div> <div class="intensity-section"> <div class="intensity-label">How much?</div> <div class="slider-container"> <input type="range" min="1" max="10" value="5" class="intensity-slider" id="feeling-intensity"> <div class="intensity-value"><span id="intensity-display">5</span> / 10</div> </div> </div> <div class="section-header">How urgent?</div> <div class="urgency-indicator"> <div class="urgency-btn low" data-urgency="low"> <div class="urgency-icon">🕐</div> <div>Can wait</div> </div> <div class="urgency-btn medium" data-urgency="medium"> <div class="urgency-icon">⏰</div> <div>Soon</div> </div> <div class="urgency-btn high" data-urgency="high"> <div class="urgency-icon">🚨</div> <div>Right now</div> </div> </div> </div> <!-- BODY MODE --> <div class="interface-panel" id="body-panel"> <div class="section-header">Where do you feel it?</div> <div class="body-map"> <div class="body-zone" data-zone="head">Head</div> <div class="body-zone" data-zone="neck">Neck</div> <div class="body-zone" data-zone="shoulders">Shoulders</div> <div class="body-zone" data-zone="chest">Chest</div> <div class="body-zone" data-zone="stomach">Stomach</div> <div class="body-zone" data-zone="back">Back</div> <div class="body-zone" data-zone="arms">Arms</div> <div class="body-zone" data-zone="hands">Hands</div> <div class="body-zone" data-zone="legs">Legs</div> </div> <div class="section-header">What does it feel like?</div> <div class="temp-selector"> <div class="temp-card" data-temp="hot" style="--card-color: #d26a5c; --card-color-rgb: 210,106,92"> <div class="temp-icon">🔥</div> <div>Hot</div> </div> <div class="temp-card" data-temp="cold" style="--card-color: #7dbb8e; --card-color-rgb: 125,187,142"> <div class="temp-icon">❄️</div> <div>Cold</div> </div> <div class="temp-card" data-temp="tight" style="--card-color: #c77748; --card-color-rgb: 199,119,72"> <div class="temp-icon">🔒</div> <div>Tight</div> </div> <div class="temp-card" data-temp="heavy" style="--card-color: #9e8f7a; --card-color-rgb: 158,143,122"> <div class="temp-icon">⬇️</div> <div>Heavy</div> </div> <div class="temp-card" data-temp="sharp" style="--card-color: #b75d3a; --card-color-rgb: 183,93,58"> <div class="temp-icon">📍</div> <div>Sharp</div> </div> <div class="temp-card" data-temp="numb" style="--card-color: #6b7a88; --card-color-rgb: 107,122,136"> <div class="temp-icon">➖</div> <div>Numb</div> </div> </div> <div class="intensity-section"> <div class="intensity-label">How strong?</div> <div class="slider-container"> <input type="range" min="1" max="10" value="5" class="intensity-slider" id="body-intensity"> <div class="intensity-value"><span id="body-intensity-display">5</span> / 10</div> </div> </div> </div> <!-- NEED MODE --> <div class="interface-panel" id="need-panel"> <div class="section-header">What would help?</div> <div class="feeling-grid"> <div class="feeling-card" data-need="quiet" style="--card-color: #73956f"> <div class="feeling-icon">🔇</div> <div class="feeling-label">Quiet</div> <div class="feeling-sublabel">less noise</div> </div> <div class="feeling-card" data-need="space" style="--card-color: #7dbb8e"> <div class="feeling-icon">🌌</div> <div class="feeling-label">Space</div> <div class="feeling-sublabel">room to be</div> </div> <div class="feeling-card" data-need="water" style="--card-color: #6b7a88"> <div class="feeling-icon">💧</div> <div class="feeling-label">Water</div> <div class="feeling-sublabel">thirsty</div> </div> <div class="feeling-card" data-need="food" style="--card-color: #d7a85b"> <div class="feeling-icon">🍎</div> <div class="feeling-label">Food</div> <div class="feeling-sublabel">hungry</div> </div> <div class="feeling-card" data-need="rest" style="--card-color: #9e8f7a"> <div class="feeling-icon">🛌</div> <div class="feeling-label">Rest</div> <div class="feeling-sublabel">need to lie down</div> </div> <div class="feeling-card" data-need="bathroom" style="--card-color: #c77748"> <div class="feeling-icon">🚻</div> <div class="feeling-label">Bathroom</div> <div class="feeling-sublabel">need to go</div> </div> <div class="feeling-card" data-need="help" style="--card-color: #d26a5c"> <div class="feeling-icon">🆘</div> <div class="feeling-label">Help</div> <div class="feeling-sublabel">something's wrong</div> </div> <div class="feeling-card" data-need="connection" style="--card-color: #b75d3a"> <div class="feeling-icon">🤝</div> <div class="feeling-label">Connection</div> <div class="feeling-sublabel">want presence</div> </div> </div> </div> <!-- CUSTOM MODE --> <div class="interface-panel" id="custom-panel"> <div class="section-header">Build your own message</div> <div style="padding: 20px;"> <p style="color: var(--muted); margin-bottom: 20px; text-align: center;"> This mode lets you create personal meanings that the system will remember for you. Tap any feeling/body/need card from other modes, then add your own words here. </p> <div style="background: var(--panel); padding: 20px; border-radius: 12px; border: 1px solid var(--line);"> <div style="color: var(--gold); margin-bottom: 10px; font-weight: 600;">My message:</div> <textarea id="custom-message" style="width: 100%; min-height: 120px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 15px; font-size: 16px; font-family: inherit; resize: vertical;" placeholder="Type or dictate what you want to say..."></textarea> </div> </div> </div> </div> <!-- OUTPUT PANEL --> <div class="output-panel" id="output"> <div class="output-text" id="output-text"></div> <div class="provenance" id="provenance"></div> <div class="output-controls"> <button class="output-btn" onclick="speakMessage()">🔊 Speak</button> <button class="output-btn" onclick="copyMessage()">📋 Copy</button> <button class="output-btn secondary" onclick="saveMapping()">💾 Remember This</button> <button class="output-btn secondary" onclick="closeOutput()">✕ Close</button> </div> </div> </div> <script> // STATE const state = { mode: 'feeling', feeling: null, feelingIntensity: 5, urgency: null, bodyZone: null, bodyQuality: null, bodyIntensity: 5, need: null, customMessage: '', timestamp: null, mappings: JSON.parse(localStorage.getItem('threshold_mappings') || '{}') }; // MODE SWITCHING document.querySelectorAll('.mode-btn').forEach(btn => { btn.addEventListener('click', () => { const mode = btn.dataset.mode; document.querySelectorAll('.mode-btn').forEach(b => b.classList.remove('active')); btn.classList.add('active'); document.querySelectorAll('.interface-panel').forEach(p => p.classList.remove('active')); document.getElementById(mode + '-panel').classList.add('active'); state.mode = mode; }); }); // FEELING SELECTION document.querySelectorAll('.feeling-card').forEach(card => { card.addEventListener('click', () => { const panel = card.closest('.interface-panel'); panel.querySelectorAll('.feeling-card').forEach(c => c.classList.remove('selected')); card.classList.add('selected'); if (state.mode === 'feeling') { state.feeling = card.dataset.feeling; } else if (state.mode === 'need') { state.need = card.dataset.need; } generateOutput(); }); }); // INTENSITY SLIDERS document.getElementById('feeling-intensity').addEventListener('input', (e) => { state.feelingIntensity = parseInt(e.target.value); document.getElementById('intensity-display').textContent = state.feelingIntensity; if (state.feeling) generateOutput(); }); document.getElementById('body-intensity').addEventListener('input', (e) => { state.bodyIntensity = parseInt(e.target.value); document.getElementById('body-intensity-display').textContent = state.bodyIntensity; if (state.bodyZone) generateOutput(); }); // URGENCY document.querySelectorAll('.urgency-btn').forEach(btn => { btn.addEventListener('click', () => { document.querySelectorAll('.urgency-btn').forEach(b => b.classList.remove('active')); btn.classList.add('active'); state.urgency = btn.dataset.urgency; if (state.feeling) generateOutput(); }); }); // BODY MAP document.querySelectorAll('.body-zone').forEach(zone => { zone.addEventListener('click', () => { document.querySelectorAll('.body-zone').forEach(z => z.classList.remove('active')); zone.classList.add('active'); state.bodyZone = zone.dataset.zone; generateOutput(); }); }); // TEMP/QUALITY document.querySelectorAll('.temp-card').forEach(card => { card.addEventListener('click', () => { document.querySelectorAll('.temp-card').forEach(c => c.classList.remove('active')); card.classList.add('active'); state.bodyQuality = card.dataset.temp; if (state.bodyZone) generateOutput(); }); }); // CUSTOM MESSAGE document.getElementById('custom-message').addEventListener('input', (e) => { state.customMessage = e.target.value; if (state.customMessage.trim()) generateOutput(); }); // GENERATE OUTPUT function generateOutput() { state.timestamp = new Date(); let message = ''; let provenance = ''; if (state.mode === 'feeling' && state.feeling) { const intensityWord = state.feelingIntensity <= 3 ? 'a little' : state.feelingIntensity <= 6 ? 'moderately' : state.feelingIntensity <= 8 ? 'very' : 'extremely'; const urgencyPhrase = state.urgency === 'low' ? 'when you can' : state.urgency === 'medium' ? 'soon' : state.urgency === 'high' ? 'right now' : ''; message = `I feel ${intensityWord} ${state.feeling}`; if (urgencyPhrase) message += ` and I need attention ${urgencyPhrase}`; message += '.'; provenance = `Mode: How I Feel | Feeling: ${state.feeling} | Intensity: ${state.feelingIntensity}/10`; if (state.urgency) provenance += ` | Urgency: ${state.urgency}`; } else if (state.mode === 'body' && state.bodyZone) { const qualityPhrase = state.bodyQuality ? ` and it feels ${state.bodyQuality}` : ''; const intensityWord = state.bodyIntensity <= 3 ? 'mild' : state.bodyIntensity <= 6 ? 'noticeable' : state.bodyIntensity <= 8 ? 'strong' : 'intense'; message = `I feel something in my ${state.bodyZone}${qualityPhrase}. The sensation is ${intensityWord}.`; provenance = `Mode: Where I Feel It | Zone: ${state.bodyZone}`; if (state.bodyQuality) provenance += ` | Quality: ${state.bodyQuality}`; provenance += ` | Intensity: ${state.bodyIntensity}/10`; } else if (state.mode === 'need' && state.need) { const needMessages = { quiet: 'I need it to be quieter.', space: 'I need some space.', water: 'I need water.', food: 'I need food.', rest: 'I need to rest.', bathroom: 'I need to use the bathroom.', help: 'I need help. Something is wrong.', connection: 'I need someone with me.' }; message = needMessages[state.need] || `I need ${state.need}.`; provenance = `Mode: What I Need | Need: ${state.need}`; } else if (state.mode === 'custom' && state.customMessage.trim()) { message = state.customMessage.trim(); provenance = `Mode: My Words | Custom message entered by user`; } if (message) { document.getElementById('output-text').textContent = message; document.getElementById('provenance').innerHTML = `<strong>Translation details:</strong> ${provenance}<br>` + `<strong>Timestamp:</strong> ${state.timestamp.toLocaleString()}<br>` + `<strong>Source:</strong> User-defined meaning, not imposed interpretation<br>` + `<strong>Certainty:</strong> Direct user signal, high fidelity`; document.getElementById('output').classList.add('visible'); } } // OUTPUT CONTROLS function speakMessage() { const text = document.getElementById('output-text').textContent; if ('speechSynthesis' in window) { const utterance = new SpeechSynthesisUtterance(text); utterance.rate = 0.9; utterance.pitch = 1; speechSynthesis.speak(utterance); } else { alert('Speech synthesis not supported in this browser'); } } function copyMessage() { const text = document.getElementById('output-text').textContent; navigator.clipboard.writeText(text).then(() => { alert('Message copied to clipboard'); }); } function saveMapping() { const key = `${state.mode}_${state.feeling || state.need || state.bodyZone}_${state.timestamp.getTime()}`; const mapping = { mode: state.mode, message: document.getElementById('output-text').textContent, state: {...state}, timestamp: state.timestamp.toISOString() }; state.mappings[key] = mapping; localStorage.setItem('threshold_mappings', JSON.stringify(state.mappings)); alert('This translation has been saved to your personal vocabulary'); } function closeOutput() { document.getElementById('output').classList.remove('visible'); } </script></body></html>