Vale and prose linting
Contents
Vale is a prose linter that enforces PostHog's writing style across the website: docs, blog posts, newsletters, and more.
It catches spelling mistakes and style inconsistencies based on rules we define – like the unforgivable use of em dashes.
Why use a prose linter?
Prose is infinitely diverse. Different authors, tones, and writing goals make inconsistencies easy to introduce and a nightmare to maintain.
A prose linter creates a baseline. It automatically enforces the core mechanical and stylistic rules we care about most as a brand, so our writing stays consistent.
"Never send an LLM to do a linter's job." – someone
LLMs can generate drafts and reviews, but they are not reliable linters. They're slow and expensive compared to deterministic tools.
Use Vale to detect issues, then use LLMs to hep fix them.

Getting started
Install Vale
Run linting
For real-time linting in your code editor, install the Vale VS Code extension.
Style rules
Styles are enforced by a collection rules and checks written as YAML files. We can organize these rules into directories to create different style guides for different areas of our website.
Vale then applies these rules hierarchically and in combination with each other.