ドキュメント
spintaxテンプレートマークアップのガイドとリファレンス。
ここから始める
作成ガイド
Reverse authoring mindset
Write the final text first. Add spintax markup last. The mental model that makes every template readable.
ENVariables & multi-site reuse
How variables turn one template into many sites without footprint. Precedence, reroll gotchas, separator collisions.
ENPermutations in practice
From simple lists to title-style serial headings. Separator rules, clamping, and the per-element override.
ENGrammar-safe synonymization
Keep every resolved variant readable. Binding rules for English agreement — and a full Russian-cases section in the RU version.
ENTemplate composition
Variables as already-rendered HTML chunks. The three-level item → section → orchestrator pipeline that handles real-world catalogues, payment pages, and feature lists.
ENConditional spintax
The {?VAR?then|else} pre-pass for value-driven branching. Three forms, truthy rules, two-pass pipeline, and why it is not a random pick.
ENPlural agreement
Pick the correct grammatical noun form by count: 1 язык, 2 языка, 5 языков. RU/UK/BE and SR/HR/BS 3-form, EN-style 2-form. The first spintax engine to ship plurals as a first-class primitive.
エンジンとパッケージ
Spintax for JavaScript
The open-source @spintax/core engine on npm. Parse, render, validate spintax on Cloudflare Workers, Node, and in the browser. Zero deps, MIT, parity-verified against the WordPress plugin.
ENSpintax for PHP
The open-source spintax/core engine on Packagist. Conditionals, plural agreement and safe includes — not just {a|b|c}. Zero deps, MIT, PHP 8.0+, bound to the same cross-engine corpus.
ENSpintax engines — the family
One syntax, four independent engines — JavaScript, PHP, Python and Object Pascal — held to one shared golden corpus. Pick by runtime; install, quick start and where they differ.
ツールとリソース
Spintax playground
Write a template, define variables, render N variants right in the browser. Inline error highlighting. Share via URL.
Spintax エディタ
VS Code と Sublime Text の拡張、ブラウザ・プレイグラウンド — そして構文を定めた GTW のアーカイブ。
ENSpintax by Example
A finished paragraph reverse-authored into a rich template — variables, permutations, conditionals, plurals and cases, with real renders.
ENWriting templates with AI
The working method: what to feed the model, the prompt, the chat / skill / MCP setups, and the nine mistakes language models reliably make in spintax.
AIコンテンツの実際のコスト
Claude、GPT、Gemini、Grok、DeepSeek、Qwen、Mistralにおける記事1本あたりの実価格 (2026年7月)。キャッシュ、batch、そして記事ごとの課金が割に合わなくなるとき。
その他のガイドを計画中:WordPress統合。