Lexaudit

io.github.nareykoPublished by GitHub account nareykov0.3.1Updated Nov 7, 2026

Locale vocabulary audit (calques, inventeds, foreign slips). Local CLI via stdio — no hosted API.

VerifiedSTDIODesktop onlyKnowledge & MemoryDeveloper Tools

Overview

AI-generated overview

Local stdio MCP server for lexaudit, a multilingual vocabulary auditor that flags calques, false friends and invented words and ranks which pages to fix first.

What you can do
  • Audit files or whole projects for odd, wrong or borrowed words in seven languages and get a ranked queue of pages to fix first
  • Explain why a specific word was flagged, with status, reason and an editorial hint
  • Re-rank pages by weighting or source and expand a known bad word into a to-do list of affected pages
  • Compare two audit runs and optionally request a second opinion from a language model on your own endpoint
  • Reports only; it does not edit the texts
When to use it
Useful when you write or translate articles, courses or documentation in English, German, Spanish, Polish, Russian, Swedish or Ukrainian and want a short prioritized list of suspicious vocabulary rather than a noisy spellchecker.
Requirements
Runs as a local process via uvx (or pipx) from the PyPI package lexaudit. CPU only, no account, no API key and no config file required. Spelling dictionaries download automatically into the user cache, so network access is needed for that step.
Before you install
It only reports and never changes your texts, but some commands write files: reports go into an output folder and expand-needle can write a queue file to a path you give. The optional label command sends text to a language model endpoint you supply. Expect a notable rate of flagged words on clean pages.

Installation

In SourceWeft

  1. Open Lexaudit in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

lexaudit

Finds odd, wrong or copied-from-another-language words in your texts, and tells you which pages to fix first.

In plain words

You write or translate articles, courses or documentation. A normal spellchecker shouts about every brand name, abbreviation and long German word, and still misses the words that really hurt: a word copied from another language ("calque"), a real word used with the wrong meaning ("false friend"), or a word someone invented.

lexaudit reads your files, ignores the harmless things, and gives you a short ranked list: "look at this page first." It runs on an ordinary laptop in about a second. No graphics card, no internet, no account.

It only reports. It never changes your texts.

Unknown terms? See the glossary.
0.3.0 prep and publish path: docs/p1-INDEX.md.

  • Languages: English (en), German (de), Spanish (es), Polish (pl), Russian (ru), Swedish (sv), Ukrainian (uk)
  • Hardware: CPU only
  • Author: Vadim Nareyko (github.com/nareyko, Founder at Arviser Sp. z o.o.)
  • License: dual MIT package and AGPL-3.0-or-later hosted SaaS (details)

[How lexaudit works]


Try it in 30 seconds

bash
pipx run lexaudit audit --path . --locale en --check# or: uvx lexaudit audit --path . --locale en --check

Missing spelling dictionaries download automatically into your user cache. No GPU. No config file required. Exit code 1 means confirmed calques or invented words remain.

Optional helpers: lexaudit doctor, lexaudit fetch-dicts, lexaudit init.

Check a file or a whole project

bash
# One file or folder, no settings file neededuv run lexaudit audit --path ./README.md --locale en
# Or create starter settings first, then check everythinguv run lexaudit inituv run lexaudit audit --locale en

Open the report

The reports are in the output folder, one subfolder per language. Start with queue.md:

markdown
| score | unique_suspects | path | top_words ||---|---|---|---|| 12.0 | 2 | docs/en/en-04-defect-known-calques.md | orientir surveyness || 6.0 | 1 | docs/en/en-05-defect-false-friend.md | denseness || 1.6 | 2 | docs/en/en-03-clean-unseen-jargon.md | vinylester haulout |

A higher score means "look here first". top_words shows the words behind the score.

Ask why a word was flagged

bash
uv run lexaudit explain orientir --locale en
text
word: orientir (normalized: orientir, locale: en)status: calque (tier: confirmed)reason: loan-calque-orientir | detectors: calque, hunspelleditorial hint: working rule / ballpark / figures - not orientir

Reproduce our test results

bash
uv run lexaudit audit --config examples/synthetic-demo/lexaudit.config.yaml

Then open tmp/synthetic-demo-out/<language>/queue.md.


How good is it? An honest answer

We built a 42-page test set in all 7 languages: 21 clean technical pages and 21 pages with planted problems. Some problems are known to the rules, some are brand new words the rules have never seen. Details: docs/synthetic-benchmark.md.

[Benchmark results]

SetupBad page in top 2Bad page in top 3Recall@2Recall@3MAP (0 to 1, higher is better)Known problems foundBrand-new neologisms foundCombined planted problemsClean-page FP / 1k tokensTime
A. Plain spellchecker0.0%23.8%0.0%23.8%0.3890.0% (0/26)0.0% (0/7)0.0% (0/33)81.20.48 s
B. Plus your word lists7.1%23.8%4.8%23.8%0.4210.0% (0/26)0.0% (0/7)0.0% (0/33)47.10.56 s
C. Full lexaudit100.0%100.0%66.7%100.0%1.000100.0% (26/26)100.0% (7/7)100.0% (33/33)47.12.97 s

What this means:

  • Pages with known problems come first in every language. The plain spellchecker puts clean pages first.
  • Known-rule problems: 100.0% (26/26). Unseen single-occurrence neologisms (Zipf + char n-gram / affix-glue): 100.0% (7/7). Combined planted problems (honest fraction): 100.0% (33/33).
  • With exactly 3 defective pages per locale, Recall@2 is 66.7% when the top-2 slots are both bad (Precision@2 = 100.0%). Precision@3 / Recall@3 are 100.0% (singleton inventeds outrank repeated domain jargon).
  • Clean-page false positives: 47.1 unique flagged words per 1000 tokens (36 unique FP / 764 tokens).
  • Domain terms that recur on a page (or sit in H1/title) are tagged domain-term-candidate, nearly zero-weighted in ranking, and listed under Suggested glossary additions.

Documentation

Start with docs/README.md.

GuideWhat you learn
GlossaryEvery term in plain words
BenchmarkThe 42-page test, step by step
ArchitectureWhat goes in, what comes out
PipelineThe gates every word passes
CLI referenceAll commands
Agent workflowFrom report to fixed page
Scores and metricsHow pages are scored

[Word classification ladder]


More commands

bash
# Re-rank pages, filter by source (docs, academy, model_pack)uv run lexaudit rank --locale ru --mode weighted --sources=docs
# Add every page that contains a known bad word to your to-do listuv run lexaudit expand-needle --needle orientir --locale all \  --write-queue /abs/path/to/rewrite-queue.md
# Optional: ask a language model for a second opinion (your own endpoint)uv run lexaudit label --locale ru --top-pages 20 --top-words 50 --tiers likely,weak --profile cpu
# Compare two runsuv run lexaudit diff --baseline .../report.json --current .../report.json --out /tmp/diff.json

For contributors

Setup and checks:

bash
uv sync --extra devuv run ruff check . && uv run ruff format --check .uv run mypy --strict src/uv run pytestuv run python scripts/crap_report.pyuv run mutmut run && uv run python scripts/check_mutation_score.py --min-percent 80uv build

Test layers: unit and integration tests (branch coverage 80% or more), the 7-language benchmark, property-based fuzzing (Hypothesis), golden regression with a read-only check of your files, JSON Schema contract, complexity gate (CRAP), mutation testing (kill rate 80% or more).

Pictures in docs/images are generated from code: run python scripts/render_diagrams.py (needs Inkscape and Pillow). Never edit the JPG files by hand.

License

WhatLicense
PyPI / this repo’s code (CLI, library, YAML rules, packs)MIT — use in products and private SaaS is fine under MIT
Intended future hosted multi-tenant network service (not shipped here)Policy text: AGPL-3.0-or-later — not a second license on the MIT wheel
Benchmark corpora & fetched spelling dictionariesLICENSE-THIRD-PARTY.md + upstream *.license.txt

Full wording: docs/licensing.md. Adding rules: docs/contributing-rules.md.

Origin and author

Created and maintained by Vadim Nareyko (github.com/nareyko). It grew out of auditing multilingual courses and encyclopedias at FairHelm.

Source: README.md at commit 86a0130

Tools

0
SourceWeft started this package once in an isolated sandbox, without credentials, to list its tools. That failed: the server did not start.

Version history

1
  1. v0.3.1LatestOct 30, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts