prose

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package prose checks text against the mechanical parts of .claude/rules/writing.md.

Index

Constants

View Source
const IgnoreMarker = "prose:ignore"

IgnoreMarker on a line skips every check for that line.

Variables

This section is empty.

Functions

func Phrases

func Phrases() []string

Phrases returns the phrases the checker rejects, in any case.

func Words

func Words() []string

Words returns the words the checker rejects as whole words, in any case. .claude/rules/writing.md lists the same words, and a test keeps them in sync.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

Checker holds compiled rules. Build one with NewChecker.

func NewChecker

func NewChecker() *Checker

NewChecker compiles the rules.

func (*Checker) Check

func (c *Checker) Check(name string, data []byte) []Finding

Check returns the findings for one file. name decides whether Markdown-only rules apply.

type Finding

type Finding struct {
	Path    string
	Line    int
	Column  int
	Message string
}

Finding is one rule violation.

func (Finding) String

func (f Finding) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL