# @ashlr/lexicon

Fixes the names and jargon speech-to-text gets wrong before your agent acts on a dictated prompt.

- **Type:** MCP server
- **Trust:** 60/100 (B), scored on the package rubric
- **Verification:** community-indexed — nobody has claimed this listing
- **Version:** 0.5.4
- **Author:** io.github.ashlrai
- **License:** Unknown
- **npm:** @ashlr/lexicon
- **Source:** https://github.com/ashlrai/lexicon
- **Compatible clients:** claude-code, cursor, copilot, gemini (basis: transport)

## Trust

60/100 (B), scored on the package rubric
- Publisher verified: no
- Install scripts: nothing suspicious found
- Prompt-injection scan: not run
- Obfuscation scan: not run
- Evidence age: 6 days

## Security scan

- **Status:** clean
- **Scanned:** 2026-09-28T21:57:17.982Z
- **Version scanned:** 0.5.4
- **CVEs:** none found by OSV at scan time

## Tools

24 declared. Statically extracted from the shipped source — a floor on the surface, not a census.
- `pbcopy` — pbpaste / pbcopy (macOS)
- `xclip` — xclip -selection clipboard -o / -i (X11)
- `xsel` — xsel --clipboard --output / --input (X11)
- `powershell`
- `injected` — injected read/write
- `harvest_repo` — Scan a repository for proper nouns an STT engine is likely to mangle: package and dependency names, git authors, README brands, the project directory.
- `suggest_terms` — Propose new aliases, terms and never-words from the user's voice history, usage and repo.
- `apply_suggestion` — Apply a suggestion returned by suggest_terms after the user accepted it: 'alias' merges the alias into the term, 'term' adds the term (aliases auto-suggested wh
- `list_packs` — List the starter packs shipped with the lexicon (developer, ai, business, voice-tools: curated names with the misspellings STT produces for them) and which are 
- `add_pack` — Install one starter pack from list_packs into the global lexicon (or the project .lexicon.yaml with scope: project).
- `import_dictionary` — Import a dictionary the user already has (Wispr Flow CSV, Superwhisper JSON, macOS Text Replacement plist, espanso YAML, plain text 'Canonical: alias1, alias2',
- `lexicon_doctor` — Answers "is lexicon set up for this user, and what is the one command that fixes it" in a single call.
- `install_client` — Register the lexicon MCP server (and, for Claude Code, its hooks) in an agent client's config: claude, codex, cursor, windsurf, gemini, vscode or claude-desktop
- `setup_lexicon` — One-shot onboarding: seed the lexicon with the user's company and name, register the MCP server and hooks in their agent clients, optionally harvest the repo an
- `serve_status` — Check whether the local lexicon API (`lexicon serve`, used by the browser extension, Claude Desktop, Shortcuts and the menu bar app) is running on 127.0.0.1:417
- `normalize_transcript` — Fix the proper nouns speech-to-text got wrong, using this user's personal lexicon of names, brands, acronyms and identifiers.
- `add_term` — Teach the lexicon a name, so dictation is corrected to it from now on.
- `remove_term` — Delete a term from the user's lexicon by canonical spelling (case-insensitive).
- `list_terms` — List the user's lexicon terms, global and project merged. Optional case-insensitive substring filter over canonical
- `export_lexicon` — Export the merged lexicon in a format for another tool: 'claude-md' (markdown for CLAUDE.md / system prompts), 'markdown', 'text', 'wispr', 'superwhisper', 'whi
- `learn_correction` — Record that the user corrected a spelling: they meant `meant`, but the transcript or you wrote `heard`.
- `suggest_canonical` — Look up what a garbled word was probably meant to be.
- `lexicon_stats` — Counts of terms and aliases, total hits, the most-used terms, terms that never fired, and a per-file breakdown of the merged lexicon.
- `trust_project` — Manage trust for a repo's .lexicon.yaml, which is merged only after the user approves it (it can inject text into every session).

## Install

**Verdict: review** — Installable, but 1 thing to check first: No publisher has proved control of this listing; it is indexed, not vouched for.
**Cautions** (coverage gaps and advisories — never blocking)
- No publisher has proved control of this listing; it is indexed, not vouched for.
**Config** (claude-code):
```json
"{\n  \"mcpServers\": {\n    \"lexicon\": {\n      \"command\": \"npx\",\n      \"args\": [\n        \"-y\",\n        \"@ashlr/lexicon\"\n      ]\n    }\n  }\n}"
```

## Blast radius

Extensive to critical — no credential declaration found, from the publisher, the upstream registry, or the README. Known so far: deletes data; runs on your machine.
- Floor 37, ceiling 61 (tier: unknown)
- `unknown` means the floor and ceiling land in different bands — not measured enough to name one. It does not mean low.
- This is impact, not likelihood. A high radius is not a defect: a filesystem server is supposed to write files. It is never part of the trust score.

## Machine-readable views of this entry

- Signed JSON: https://forgeregistry.com/api/v1/packages/%40ashlr%2Flexicon
- Install plan: https://forgeregistry.com/api/v1/packages/%40ashlr%2Flexicon/install-plan
- Alternatives: https://forgeregistry.com/api/v1/alternatives/%40ashlr%2Flexicon
- HTML page: https://forgeregistry.com/registry/%40ashlr%2Flexicon
- MCP: POST https://forgeregistry.com/api/mcp → `forge_get_package` / `forge_install_plan`

## About this document

Generated by Forge (https://forgeregistry.com) — a compact rendering of the same record served, signed, at the JSON URL above. Trust and scan facts are the registry's own measurements; anything Forge did not measure is named as unmeasured rather than omitted.
