Files
rhymepad.org/static/index.html
kennethreitz 2cb4c66bc2 The ghost watches every thread, not just the line above
Targets now gather all of the stanza's needs, nearest first: every
unanswered ending (the gray fills, begging), then each established
end-rhyme family's most recent word — extending a thread is a real
landing too. Candidate pools merge with first-claim dedupe; need
order ranks between grammar and idiom; bar fit computes against each
candidate's own target line. Family candidates wear their family's
color dot in the Tab menu — same hue the pad paints them.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-12 07:17:46 -04:00

541 lines
25 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
<title>RhymePad — rhyme scheme analyzer &amp; writing pad for poets and rappers</title>
<meta name="description" content="Free rhyme scheme analyzer and writing pad: see internal rhymes, slant rhymes, and multisyllabic rhyme schemes color-coded as you write. Phonetic rhyme finder, syllable counter, beats, and rhyming dictionary built in.">
<meta property="og:title" content="RhymePad">
<meta property="og:description" content="A scratchpad that color-codes your rhyme schemes as you write. Real phonetic analysis: internal rhymes, slant rhymes, multi-word mosaics. Yes, it knows orange rhymes with door hinge.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://rhymepad.org/">
<meta property="og:site_name" content="RhymePad">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://rhymepad.org/og.png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="RhymePad — a verse with its rhyme scheme color-coded.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="RhymePad — rhyme scheme analyzer & writing pad">
<meta name="twitter:description" content="Write lyrics with live phonetic rhyme detection — internal rhymes, slant rhymes, multi-word mosaics, color-coded as you type. Yes, it knows orange rhymes with door hinge.">
<meta name="twitter:image" content="https://rhymepad.org/og.png">
<meta name="author" content="Kenneth Reitz">
<meta name="robots" content="index, follow">
<link rel="canonical" href="https://rhymepad.org/">
<meta name="theme-color" content="#14110f">
<link rel="manifest" href="/manifest.webmanifest">
<link rel="apple-touch-icon" href="/icon-192.png">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "RhymePad",
"url": "https://rhymepad.org/",
"description": "A scratchpad for poets and rappers with live phonetic rhyme detection — internal rhymes, slant rhymes, and multi-word mosaics color-coded as you type.",
"applicationCategory": "MusicApplication",
"operatingSystem": "Any (web browser)",
"browserRequirements": "Requires JavaScript",
"offers": { "@type": "Offer", "price": "0", "priceCurrency": "USD" },
"author": { "@type": "Person", "name": "Kenneth Reitz", "url": "https://kennethreitz.org" }
}
</script>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍊</text></svg>">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,900&family=Spline+Sans+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--bg: #14110f;
--panel: #1c1916;
--panel-2: #221e1a;
--ink: #f2e9dd;
--ink-dim: #a79a89;
--line: #322c26;
--accent: #e8814a;
--accent-2: #d4a843;
/* rhyme group colors — distinct, warm-leaning, readable on dark */
--r0:#e8814a; --r1:#4ea3e8; --r2:#6fd08c; --r3:#d46fb8;
--r4:#e8c54a; --r5:#9b7ce8; --r6:#e85a5a; --r7:#46cabf;
--r8:#c0d44e; --r9:#ee5d8f; --r10:#6f8bf2; --r11:#8fe85a;
--r12:#5ad8d8; --r13:#e0985a; --r14:#b88ce8; --r15:#56c878;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: thin; scrollbar-color: #353029 transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #353029; border-radius: 999px; border: 2px solid var(--panel); }
::-webkit-scrollbar-thumb:hover { background: #4a443c; }
::-webkit-scrollbar-track { background: transparent; }
html, body { margin: 0; height: 100%; overflow-x: hidden; }
body {
background:
radial-gradient(1200px 600px at 85% -10%, rgba(232,129,74,0.10), transparent 60%),
radial-gradient(900px 500px at -10% 110%, rgba(78,163,232,0.07), transparent 55%),
var(--bg);
color: var(--ink);
font-family: 'Spline Sans Mono', monospace;
font-size: 15px;
-webkit-font-smoothing: antialiased;
}
.wrap {
display: grid;
grid-template-columns: 1fr 340px;
grid-template-rows: auto 1fr auto;
gap: 14px;
height: 100vh;
padding: 16px;
}
header {
grid-column: 1 / -1;
display: flex;
align-items: baseline;
gap: 14px;
border-bottom: 1px solid var(--line);
padding-bottom: 8px;
}
.brandwrap { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; min-width: 0; }
.brand {
font-family: 'Fraunces', serif;
font-weight: 900;
font-size: 22px;
letter-spacing: -0.02em;
color: var(--ink);
margin: 0;
}
.brand span { color: var(--accent); }
.tagline { color: var(--ink-dim); font-size: 12px; letter-spacing: 0.04em; margin: 0; }
/* ---- editor side ---- */
.editor-col { display: flex; flex-direction: column; min-height: 0; gap: 10px; }
.drafts-bar { display: flex; flex-wrap: wrap; gap: 6px; flex: none; padding-bottom: 2px; }
.dtab {
display: flex; align-items: center; gap: 8px;
font-size: 12px; padding: 6px 12px; max-width: 170px;
background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px;
color: var(--ink-dim); cursor: pointer; white-space: nowrap;
transition: all .15s; user-select: none; flex: none;
}
.dtab .dtitle { overflow: hidden; text-overflow: ellipsis; }
.dtab:hover { color: var(--ink); }
.dtab.active { color: var(--ink); border-color: var(--accent); background: rgba(232,129,74,0.08); }
.dtab .x { color: var(--ink-dim); font-size: 13px; line-height: 1; }
.dtab .x:hover { color: var(--r6); }
.dtab.new { color: var(--accent); font-weight: 600; }
.editor-shell {
position: relative;
flex: 1;
min-height: 0;
background: var(--panel);
border: 1px solid var(--line);
border-radius: 14px;
overflow: hidden;
box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 14px 40px -22px rgba(0,0,0,.7);
transition: border-color .2s;
}
.editor-shell:focus-within { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
/* highlight layer + textarea share the exact same box metrics */
#highlight, #stresslayer, #editor {
position: absolute; inset: 0;
margin: 0; border: 0;
padding: 22px 24px;
font: inherit;
line-height: 1.9;
white-space: pre-wrap;
word-wrap: break-word;
overflow-y: auto;
letter-spacing: 0;
tab-size: 4;
}
.editor-shell.rhythm #highlight,
.editor-shell.rhythm #stresslayer,
.editor-shell.rhythm #editor { line-height: 3.2; }
#highlight {
pointer-events: none;
color: var(--ink);
z-index: 1;
}
#highlight .anno { color: #6a5f52; }
#highlight .hdr { color: #8a7d6c; font-weight: 700; }
#gutter { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
#gutter .bracket {
position: absolute; left: 7px; width: 7px;
border: 2.5px solid currentColor; border-right: 0;
border-top-left-radius: 7px; border-bottom-left-radius: 7px;
}
#gutter .bracket.allit { left: 15px; width: 5px; border-width: 2px; }
#gutter .tick {
position: absolute; left: 7px; width: 7px; height: 2.5px; border-radius: 999px;
}
#gutter .tick.allit { left: 15px; width: 5px; }
#editor::selection { background: rgba(232,129,74,0.22); color: transparent; }
#stresslayer {
pointer-events: none;
color: transparent;
z-index: 0;
}
.sw { position: relative; }
.sd {
position: absolute; left: 0; right: 0; top: 2.2em;
text-align: center; font-size: 8px; letter-spacing: 2px;
line-height: 1; color: var(--ink); white-space: nowrap;
}
#editor {
background: transparent;
color: transparent;
caret-color: var(--accent);
resize: none;
z-index: 2;
outline: none;
}
#editor::placeholder { color: #5a5249; }
.sample-chip {
position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
z-index: 4; padding: 8px 16px; border-radius: 999px;
background: var(--panel-2); border: 1px solid var(--line);
color: var(--ink-dim); font-size: 12px; cursor: pointer;
font-family: inherit; transition: all .15s;
}
.sample-chip:hover { color: var(--accent); border-color: var(--accent); transform: translateX(-50%) translateY(-1px); }
/* colored rhyme segments — background tints only, so the textarea
text on top stays crisp and box metrics stay identical */
.hseg { border-radius: 4px; transition: filter .2s ease, opacity .2s ease; }
.editor-shell.focusing .hseg[data-g].lit { color: var(--ink); filter: brightness(1.7) saturate(1.4); }
.toolbar {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.btn {
font-family: inherit; font-size: 13px;
background: var(--panel-2);
color: var(--ink);
border: 1px solid var(--line);
padding: 8px 14px;
border-radius: 8px;
cursor: pointer;
transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--accent); color: #1a120c; border-color: var(--accent); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); color: #1a120c; }
.scheme-readout {
margin-left: auto; color: var(--ink-dim); font-size: 12px;
letter-spacing: 0.15em;
}
.scheme-readout b { color: var(--accent-2); letter-spacing: 0.15em; }
.scheme-readout .offline { color: var(--r6); letter-spacing: 0.02em; }
.mtoggle {
display: flex; align-items: center;
color: var(--ink-dim); font-size: 12px; cursor: pointer; user-select: none;
padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
background: transparent;
transition: color .15s, border-color .15s, background .15s;
}
.mtoggle input { position: absolute; opacity: 0; pointer-events: none; }
.mtoggle:hover { color: var(--ink); border-color: #4a443c; }
.mtoggle:has(input:checked) {
color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent);
background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 2px; }
/* ---- side panel ---- */
aside {
background: var(--panel);
border: 1px solid var(--line);
border-radius: 12px;
display: flex; flex-direction: column;
min-height: 0;
overflow: hidden;
}
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab {
flex: 1; padding: 12px 0; text-align: center; cursor: pointer;
font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
color: var(--ink-dim); background: transparent; border: 0;
font-family: inherit; transition: color .15s;
}
.tab.active { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.tab:hover { color: var(--ink); }
.panel-body { padding: 16px; overflow-y: auto; flex: 1; }
#tab-lookup { display: flex; flex-direction: column; overflow: hidden; }
#tab-lookup > :not(#lookupScroll) { flex: 0 0 auto; }
#lookupScroll {
flex: 1; min-height: 0; overflow-y: auto;
margin: 0 -16px -16px; padding: 0 16px 16px;
}
.lookup-row { display: flex; gap: 8px; }
.lookup-hint { font-size: 11px; margin: 8px 2px 0; }
.lookup-hint b { color: var(--accent-2); font-weight: 500; }
#histBar { color: var(--ink-dim); font-size: 12px; margin: 8px 2px 0; min-height: 0; }
#histBar .hist { cursor: pointer; }
#histBar .hist:hover { color: var(--accent); }
.res-label.sub { color: #6a5f52; margin: 8px 0 2px; }
.lookup-row input {
flex: 1; font-family: inherit; font-size: 14px;
background: var(--panel-2); border: 1px solid var(--line);
color: var(--ink); padding: 9px 12px; border-radius: 8px; outline: none;
}
.lookup-row input:focus { border-color: var(--accent); }
.seg { display: flex; gap: 4px; margin: 14px 0 10px; }
.seg button {
flex: 1; font-family: inherit; font-size: 11px; letter-spacing: .04em;
background: var(--panel-2); color: var(--ink-dim); border: 1px solid var(--line);
padding: 7px 0; border-radius: 7px; cursor: pointer; text-transform: uppercase;
}
.seg button.active { color: var(--accent); border-color: var(--accent); }
.results { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.defhead { margin-top: 14px; font-size: 15px; }
.defphon { font-size: 12px; margin: 4px 0 2px; line-height: 1.6; }
.defphon i { color: var(--accent-2); font-style: normal; }
.defs { margin-top: 6px; }
.defs .def { font-size: 12px; color: var(--ink-dim); line-height: 1.7; }
.defs .def i { color: var(--accent-2); font-style: normal; }
.chip {
font-size: 13px; background: var(--panel-2); border: 1px solid var(--line);
color: var(--ink); padding: 5px 10px; border-radius: 999px; cursor: pointer;
transition: all .12s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.common { font-weight: 600; }
.chip.rare { color: var(--ink-dim); opacity: .75; }
.chip.near { border-style: dashed; color: var(--ink-dim); }
.chip.indraft::after { content: " ✓"; color: var(--accent-2); }
.chip.near:hover { color: var(--accent); }
/* meaning chips that also rhyme with the entry — gold = sound,
brightness = strength, same grammar as the pad */
.chip.chime { border-color: var(--accent-2); }
.chip.chime::before { content: "♪ "; color: var(--accent-2); }
.chip.chime.soft { border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line)); }
.chip.chime.soft::before { opacity: .55; }
/* rhyme chips that echo what the draft is about — orange = your song */
.chip.fits { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.chip.fits:not(.indraft)::after { content: " ✦"; color: var(--accent); }
.muted { color: var(--ink-dim); font-size: 13px; line-height: 1.6; }
.res-label { font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--ink-dim); margin:16px 0 4px; }
/* beats */
.beat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.beat {
background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px;
padding: 12px; cursor: pointer; transition: all .15s;
}
.beat:hover { border-color: var(--accent); }
.beat.playing { border-color: var(--accent); background: rgba(232,129,74,0.1); }
.beat .name { font-weight: 600; font-size: 13px; }
.beat .bpm { color: var(--ink-dim); font-size: 11px; margin-top: 2px; }
.transport { margin-top: 16px; }
.tempo-row { display:flex; align-items:center; gap:10px; margin-top: 8px; }
.tempo-row input[type=range] { flex:1; accent-color: var(--accent); }
.tempo-val { font-variant-numeric: tabular-nums; color: var(--accent-2); min-width: 64px; text-align:right; font-size:13px;}
.beat-controls { display:flex; gap:8px; margin-top:12px; align-items:center; }
.beat-ind { display:flex; gap:6px; justify-content:center; margin-top:10px; }
.transport { margin-bottom: 14px; }
.beat-controls { margin-top: 0; }
.beat-ind span {
width:9px; height:9px; border-radius:50%;
background: var(--line); transition: background .05s;
}
.beat-ind span.on { background: var(--accent); }
footer {
grid-column: 1 / -1;
color: var(--ink-dim); font-size: 12px; text-align: center; padding: 2px 0 4px;
}
footer a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line); }
footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }
/* the explore toggle only earns its place where hover doesn't exist */
.touch-only { display: none; }
@media (any-pointer: coarse){ .touch-only { display: flex; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #3a342d; border-radius: 6px; border: 2px solid var(--panel); }
/* ---- mobile: stack the panel under the editor ---- */
.ghost { color: var(--ink-dim); opacity: .6; }
.ghost-key {
display: inline-block; margin-left: 7px; padding: 1px 5px;
border: 1px solid var(--line); border-radius: 4px;
font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
color: var(--ink-dim); opacity: .8; vertical-align: 1px;
}
.ghost-menu {
position: absolute; z-index: 6; min-width: 130px;
background: var(--panel-2); border: 1px solid var(--line);
border-radius: 8px; padding: 4px;
box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.ghost-menu .gm-item {
padding: 5px 10px; border-radius: 5px; cursor: pointer;
font-size: 13px; color: var(--ink);
display: flex; justify-content: space-between; gap: 14px;
}
.ghost-menu .gm-syl { color: var(--ink-dim); letter-spacing: 2px; }
.ghost-menu .gm-dot {
display: inline-block; width: 7px; height: 7px; border-radius: 50%;
margin-left: 7px; vertical-align: 1px;
}
.ghost-menu .gm-fit, .ghost-fit { color: var(--accent); opacity: .9; }
.ghost-menu .gm-item.near { color: var(--ink-dim); }
.ghost-menu .gm-item.near > span:first-child::after {
content: " ~"; color: var(--ink-dim); opacity: .7;
}
.beta { font-size: 9px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .08em; vertical-align: 2px; }
.ghost-menu .gm-item.sel {
background: color-mix(in srgb, var(--accent) 22%, transparent);
color: var(--accent);
}
#legend {
position: fixed; z-index: 50; width: 340px;
background: var(--panel-2); border: 1px solid var(--line);
border-radius: 12px; padding: 14px 16px;
box-shadow: 0 14px 40px rgba(0,0,0,.55);
font-size: 12px; line-height: 1.55; color: var(--ink-dim);
pointer-events: none;
}
#legend h4 {
margin: 0 0 6px; font-size: 12px; letter-spacing: .08em;
text-transform: uppercase; color: var(--ink);
}
#legend p { margin: 6px 0; }
#legend .lg-pal { display: flex; gap: 3px; margin: 8px 0; }
#legend .lg-pal span { width: 14px; height: 8px; border-radius: 3px; }
#legend .lg-demo {
font-family: 'Spline Sans Mono', monospace; font-size: 13px;
margin: 8px 0; color: var(--ink);
}
#legend .lg-demo .chip { padding: 1px 4px; border-radius: 4px; }
#legend .lg-key {
display: grid; grid-template-columns: auto 1fr; gap: 7px 10px;
align-items: center; margin: 10px 0;
font-family: 'Spline Sans Mono', monospace; font-size: 13px;
color: var(--ink);
}
#legend .lg-key i { font-style: normal; font-family: 'Spline Sans Mono', monospace; font-size: 11px; color: var(--ink-dim); }
#legend .lg-key .chip { padding: 1px 5px; border-radius: 4px; justify-self: start; }
#legend kbd {
font-family: inherit; font-size: 10px; padding: 0 4px;
border: 1px solid var(--line); border-radius: 4px;
}
.btn, .tab { touch-action: manipulation; }
@media (max-width: 900px){
.wrap {
grid-template-columns: 1fr;
height: auto; min-height: 100dvh;
padding: 10px; gap: 10px;
/* keep content clear of notch / home indicator */
padding-left: max(10px, env(safe-area-inset-left));
padding-right: max(10px, env(safe-area-inset-right));
padding-bottom: max(10px, env(safe-area-inset-bottom));
}
header { flex-direction: column; align-items: flex-start; gap: 2px; padding-bottom: 8px; }
.brand { font-size: 24px; }
.editor-shell { min-height: 52dvh; }
#highlight, #stresslayer, #editor { font-size: 16px; } /* sub-16px makes iOS zoom-jump */
aside { min-height: 48dvh; }
.toolbar { gap: 8px; }
.scheme-readout { margin-left: 0; width: 100%; }
/* roomier tap targets */
.btn { padding: 11px 16px; font-size: 14px; }
.mtoggle { font-size: 13px; padding: 4px 2px; }
.tab { padding: 14px 0; }
.drafts-bar { gap: 8px; }
}
</style>
<script defer src="https://analytics.kennethreitz.org/script.js" data-website-id="2bb8ad58-25d3-41bf-aa4c-f7d236410e17"></script>
</head>
<body>
<noscript>
<p>RhymePad is a free rhyme scheme analyzer and writing pad for poets,
rappers, and songwriters. Paste or write lyrics and it color-codes the
rhyme scheme phonetically — perfect rhymes, internal rhymes, slant
rhymes, and multisyllabic rhymes — with a rhyming dictionary, syllable
counts, alliteration, and beats built in. It requires JavaScript.</p>
</noscript>
<div class="wrap">
<header>
<div class="brandwrap">
<h1 class="brand">Rhyme<span>Pad</span></h1>
<p class="tagline">a scratchpad for poets &amp; rappers — real phonetic rhyme detection</p>
</div>
</header>
<!-- EDITOR -->
<div class="editor-col">
<div class="drafts-bar" id="draftsBar"></div>
<div class="editor-shell">
<div id="stresslayer"></div>
<div id="gutter"></div>
<div id="highlight"></div>
<button class="sample-chip" id="sampleChip" hidden>see it in action — load a sample verse</button>
<textarea id="editor" spellcheck="false" placeholder="Start writing. Leave a blank line between stanzas.
Rhymes are detected phonetically — same color = same sound.
Line endings glow strongest; internal rhymes sit softer.
Double-click any word to look it up on the right."></textarea>
</div>
<div class="toolbar">
<button class="btn primary" id="copyBtn">Copy to clipboard</button>
<button class="btn" id="exportBtn" title="Download this draft as a color-coded PNG">Save PNG</button>
<button class="btn" id="shareBtn" title="Share via the system sheet — Notes, Messages, anywhere" hidden>Share</button>
<button class="btn" id="linkBtn" title="Copy a link that carries this whole draft — no account, no upload">Copy link</button>
<span class="sep"></span>
<label class="mtoggle"><input type="checkbox" id="rhymeToggle" checked> rhyme</label>
<label class="mtoggle"><input type="checkbox" id="allitToggle"> alliteration</label>
<label class="mtoggle"><input type="checkbox" id="stressToggle"> rhythm</label>
<label class="mtoggle"><input type="checkbox" id="suggestToggle" checked> suggest</label>
<label class="mtoggle touch-only"><input type="checkbox" id="exploreToggle"> explore</label>
<div class="scheme-readout" id="schemeReadout"></div>
</div>
</div>
<!-- PANEL -->
<aside>
<div class="tabs">
<button class="tab active" data-tab="lookup">Rhymes &amp; words</button>
<button class="tab" data-tab="beats">Beats</button>
</div>
<div class="panel-body" id="tab-lookup">
<div class="lookup-row">
<input id="lookupInput" placeholder="look up a word…" autocomplete="off">
</div>
<p class="muted lookup-hint" id="lookupHint">tip: <b>double-click any word</b> in your draft to look it up here</p>
<div class="seg" id="subSeg">
<button class="active" data-sub="explore">Explore</button>
<button data-sub="wordplay">Wordplay</button>
</div>
<div id="histBar"></div>
<div id="lookupScroll">
<div id="defBox"></div>
<div id="lookupResults">
<p class="muted">Type a word — or double-click one in your draft — and its whole entry appears: how it sounds, what describes it, what rhymes, what could replace it.</p>
</div>
</div>
</div>
<div class="panel-body" id="tab-beats" style="display:none">
<div class="transport">
<div class="beat-controls">
<button class="btn primary" id="playBeat">Play</button>
<button class="btn" id="stopBeat">Stop</button>
<button class="btn" id="tapBtn" title="Tap a few times to set the tempo">Tap</button>
<button class="btn" id="rapBtn" title="The browser raps your draft over the beat — one line per bar">Rap it <span class="beta">beta</span></button>
</div>
<div class="beat-ind" id="beatInd"><span></span><span></span><span></span><span></span></div>
<div class="tempo-row">
<span class="muted">Tempo</span>
<input type="range" id="tempo" min="60" max="180" value="90">
<span class="tempo-val" id="tempoVal">90 BPM</span>
</div>
<div class="tempo-row">
<span class="muted">Volume</span>
<input type="range" id="vol" min="0" max="100" value="70">
<span class="tempo-val" id="volVal">70%</span>
</div>
</div>
<div class="beat-grid" id="beatGrid"></div>
</div>
</aside>
<footer>built by <a href="https://kennethreitz.org" rel="author">Kenneth Reitz</a> · <a href="https://kennethreitz.org/essays/2026-06-11-rhymepad_seeing_the_sound">how it hears rhymes</a> · <a href="mailto:me@kennethreitz.org?subject=RhymePad">contact</a> · word data from <a href="https://en.wiktionary.org/" rel="external">Wiktionary</a> (CC&nbsp;BY-SA) &amp; <a href="https://tatoeba.org/" rel="external">Tatoeba</a> (CC&nbsp;BY)</footer>
</div>
<script type="module" src="js/core.js"></script>
</body>
</html>