vocabularycheck

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package vocabularycheck owns glossary and pitfall-tag vocabulary policy.

Index

Constants

View Source
const (
	// PropertyCorrectness is the protected property for vocabulary validity.
	PropertyCorrectness checkresult.Property = "correctness"
	// PropertyHeuristic is the protected property for vocabulary warnings.
	PropertyHeuristic checkresult.Property = "heuristic-quality"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Input

type Input struct {
	GlossaryEnabled  bool
	Authored, Merged []glossary.Record
	Domains          []string
	Tags             map[string]string
	Pitfalls         pitfall.Corpus
}

Input is a defensive prepared semantic projection.

type Results

type Results struct {
	Glossary checkresult.Result
	Tags     checkresult.Result
}

Results keeps glossary and tag results distinct so aggregation can preserve their established error and advisory placements without inspecting kinds.

func Evaluate

func Evaluate(input Input) (Results, error)

Evaluate evaluates each vocabulary concern once over prepared values.

Jump to

Keyboard shortcuts

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