Word Aligner

io.github.tinygodsdev由 GitHub 账号 tinygodsdev 发布v1.0.0更新于 Oct 24, 2026

Turn a phrase and its translation into a shareable word-alignment diagram.

已验证Streamable HTTP可网页运行知识与记忆媒体与设计

概览

AI 生成的概览

一个远程 MCP 服务器,可将两行或多行堆叠文本生成可分享的词对齐示意图,并返回链接和预览图。

可以做什么
根据堆叠的多行文本(如译文与原文、注释或 IPA)创建词对齐示意图,标出各行之间哪些词相互对应,并返回可分享的链接和预览图。
适用场景
适合需要展示短语与译文逐词对应关系、制作行间注释,或为课程、语法笔记、人造语言文档生成可分享图示的场景。
运行要求
远程 Streamable HTTP 端点;未声明需要身份验证、环境变量或请求头。README 说明其无需认证即可使用。
安装前请注意
提交的文本会发送到第三方服务并编码进可分享链接,请避免发送敏感或私密内容。该工具只生成链接和预览图,不会修改已有数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Word Aligner,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.tinygodsdev%2Fword-aligner/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "word-aligner": {
      "type": "http",
      "url": "https://aligner.tinygods.dev/mcp"
    }
  }
}

README

Aligner — word-by-word translation visualizer

aligner.tinygods.dev

Word Aligner is a free web tool that shows which word matches which across stacked lines of text. Type or paste a sentence and its translation, click a word and then its match on the line above or below, and curved connectors draw the alignment between them. Add extra rows for glosses or IPA, then export the diagram or share it with a link.

No accounts, no machine translation — you stay in control of every link. Great for lessons, social posts, grammar notes, and conlang documentation.

[Linking words between “Hello world” and its French translation]

What it's for

  • Language learners — see exactly why a translation says what it does: which source word became which target word, what gets dropped, and where word order changes.
  • Teachers — build handouts, slides, and flashcards; export a clean PNG or SVG and drop it into a lesson without retyping anything.
  • Linguists — produce Leipzig-style interlinear glosses with morpheme alignment, case/agreement tags, and free translations.
  • Conlangers — show how a constructed language maps onto English, with custom script fonts, gloss rows, and IPA.

What it does

  • Multi-line alignment — stack as many rows as you need (source, translation, gloss, IPA); links connect vertically adjacent lines.
  • Manual word linking — click a word, then its match; supports one-to-many and many-to-one links and freely crossing connectors for reordered translations.
  • Interlinear glosses & IPA — add annotation tiers above or below any line.
  • Right-to-left scripts — Hebrew, Arabic, and mixed LTR/RTL layouts.
  • Vertical writing systems — stand the whole diagram up as columns for Japanese tategaki, Chinese, or traditional Mongolian; characters stack or the line rotates, chosen per line, so a horizontal translation stays readable beside it.
  • Tokenization control — choose how text splits into word boxes (split characters, a join marker for fixed expressions, optional punctuation handling).
  • Per-line typography — font, size, spacing, and direction per line; custom and Google Fonts.
  • Exports — PNG, SVG, PDF, and a self-contained HTML file; exports match the preview, including custom-font shaping.
  • Shareable URLs — the whole alignment (text, links, and visual settings) is encoded in a ?data= link.

Examples

Browse ready-made examples — bilingual pairs, Turkish interlinear with IPA, RTL scripts, vertical Japanese and traditional Mongolian, Tagalog compounds, Japanese–Chinese–English word order, and more interlinear glosses — at aligner.tinygods.dev/examples. Open any one in the editor to adapt it.

[Turkish interlinear preview with glosses, IPA, and connectors]

[Conlang example with a custom script font and interlinear glosses]

How it works

Edit your lines in the line editor, then link words in the preview.

[Aligner line editor with stacked lines and word-splitting summary]

Tune colors, tokenization, and fonts in settings, then export or share.

[Export options: PNG, SVG, PDF, and HTML]

Word alignment vs. interlinear vs. parallel text

  • Interlinear translation places a gloss directly under each source word — compact, but it hides reordering. Aligner keeps both sentences on their own line and draws connectors, so reorderings, splits, and merges stay obvious.
  • Parallel text is side-by-side bilingual reading for long-form study. Aligner focuses on one sentence pair at a time with explicit connectors showing which tokens correspond.

API

Word Aligner has a free HTTP API for generating alignment links programmatically.

POST https://aligner.tinygods.dev/api/alignContent-Type: application/json
{  "lines": ["Hello world", "Bonjour le monde"],  "alignments": [[0, 0, 1, 0], [0, 1, 1, 2]]}

Returns { "url": "https://aligner.tinygods.dev/?data=..." }.

Supports per-line options (font, size, RTL), global visual settings (palette, line style, background), pair-level gap control, and multi-line stacks with selective connectors.

Using Word Aligner as an AI agent tool

The word-aligner-skill/ directory is a ready-to-install skill that teaches AI assistants (Claude, ChatGPT, etc.) how to use the API. Once installed, it enables flows like:

"Translate 'я хочу спать' into English and show me the word alignment."

The agent translates, calls the API, and returns a shareable link.

  • For Claude: point your Claude project at this repository or add the contents of word-aligner-skill/SKILL.md as a custom instruction.
  • For ChatGPT: zip word-aligner-skill/ and upload it as a custom Skill.

Install instructions and a downloadable archive are also on the site: aligner.tinygods.dev/skill.

MCP server

There is also an MCP server at https://aligner.tinygods.dev/mcp that exposes a single create_word_alignment tool. It returns a shareable link plus a preview image, and runs inside the same app over Streamable HTTP with no auth. Connect it in Claude:

bash
claude mcp add --transport http word-aligner https://aligner.tinygods.dev/mcp

See docs/mcp-server.md for ChatGPT Developer Mode setup and the tool schema.

Learn more

Created by Dani Polani. See other tools for linguistics and conlanging.

来源:README.md,提交 c794a8b

工具

1

create_word_alignment

Create word alignment diagram

Create a shareable Word Aligner diagram that shows which words match across two or more stacked lines of text (a translation and its source, an interlinear gloss, IPA, etc.). Returns a URL that opens the interactive diagram, plus a preview image. Use this when the user wants to translate a phrase and show word correspondences, align a translation with its source (including RTL scripts like Hebrew or Arabic, or vertically written ones like Japanese and Mongolian), or build a Leipzig-style interlinear gloss. Word indices are 0-based token positions. Tokenize each line the same way the tool does before assigning indices: - Whitespace always splits ("I have been going" -> I[0] have[1] been[2] going[3]). - The characters in settings.tokenSplitChars (default ".-|") also split and are then removed from the rendered text, so "go.PST.IPFV" becomes three tokens (go, PST, IPFV) and the dots disappear. For Leipzig glosses set tokenSplitChars to "-|" to keep the dots. - Punctuation stays attached by default ("Hello, world!" -> Hello,[0] world![1]). - In RTL lines, word 0 is the logically first word (rightmost on screen); index in reading order. - Japanese and Chinese are written without spaces and nothing is segmented for you: put spaces where the alignment units should be. For a vertically written script set settings.axis to "columns". Every line then becomes a vertical column and the connectors run sideways. Set orientation per line: "vertical" stacks the characters (Japanese, Chinese), "sideways" rotates the line a quarter turn (traditional Mongolian, and Latin runs inside vertical text), "upright" leaves a translation as horizontal word boxes. The first line is the leftmost column, so for Japanese and Chinese, whose columns read right to left, list the translation first and the script second. Each alignment is [lineA, wordA, lineB, wordB]; the two lines must be neighbours in the stack (|lineA - lineB| = 1), which means one above the other in rows and side by side in colu

输入参数lines必填pairssettingsalignments

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分