Documentation
Everything spintax in one place: the syntax reference, a template-authoring series, open-source engines (JavaScript, PHP, Python, Object Pascal, .NET) and working tools — the browser playground, Spintax Studio, worked examples and the AI-to-template workflow. Start with the syntax reference, then pick the guide that matches your task.
Start here
Syntax Reference
Complete reference for all spintax markup: enumerations, permutations, variables, includes, comments, and post-processing.
What is Spintax?
What spintax is, where it came from, and how AI changes everything about template-based content generation.
Nested Spintax
Deep-dive into nesting: arbitrary depth, cross-element composition, and the innermost-first resolution model.
Authoring guides
Reverse authoring mindset
Write the final text first. Add spintax markup last. The mental model that makes every template readable.
Variables & multi-site reuse
How variables turn one template into many sites without footprint. Precedence, reroll gotchas, separator collisions.
Permutations in practice
From simple lists to title-style serial headings. Separator rules, clamping, and the per-element override.
Grammar-safe synonymization
Keep every resolved variant readable. Binding rules for English agreement, and the full Russian-cases section: case families, preposition binding, gender and governance.
Template composition
Variables as already-rendered HTML chunks. The three-level item → section → orchestrator pipeline that handles real-world catalogues, payment pages, and feature lists.
Conditional 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.
Plural 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.
Repairing spintax templates
A finished template that still renders dirty is repaired, not rewritten: detect the defect, apply the one named recipe for its class, re-check. The catalogue, the lint codes, and the prompt that keeps a model on the recipe.
Engines & packages
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.
Spintax 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.
Spintax engines — the family
One syntax, independent engines — JavaScript, PHP, Python, Object Pascal and .NET — held to one shared golden corpus. Pick by runtime; install, quick start and where they differ.
Tools & resources
Spintax playground
Write a template, define variables, render N variants right in the browser. Inline error highlighting. Share via URL.
Spintax editors
Spintax Studio, the native Windows editor, plus VS Code and Sublime Text extensions — and the GTW archive, the prototype the language grew from.
Spintax by Example
A finished paragraph reverse-authored into a rich template — variables, permutations, conditionals, plurals and cases, with real renders.
Writing templates with AI
Spintax Studio now drafts and checks the template for you; or do it by hand — the prompt, the chat / skill / MCP setups, and the nine mistakes language models reliably make in spintax.
The spintax MCP server
Four tools — validate, render, analyze, and the authoring guide — for an agent. Two doors: hosted spintax.net/mcp and local @spintax/mcp (no caps, no network at runtime, #include from disk).
Spintax for cold email
Flat {a|b|c} is what every sending tool gives you. Permutations and conditionals multiply the same email by 144 without rewriting a line — the arithmetic, measured, and the workflow for senders that do not speak the syntax.
Spintax for n8n
The community node, as a hands-on guide: render a unique email per lead or a distinct product description per storefront, and let your own LLM draft, validate and repair the template. No credentials; the engine is bundled in.
What AI content actually costs
Real per-article prices across Claude, GPT, Gemini, Grok, DeepSeek, Qwen, Kimi, Mistral (August 2026). Cache, batch, and when pay-per-article stops making sense.
New: Spintax for n8n — one Render-per-row flow for lead lists and product feeds alike.