Skip to main content

Crate dwg_core

Crate dwg_core 

Source
Expand description

Deterministic Writing Guard core analysis engine. Implements deterministic rules that flag AI-styled prose based on configurable phrase lists and structural heuristics.

Structs§

Analyzer
Analyzer encapsulates compiled rules for reuse across files.
BuzzwordConfig
Phrase container for throttled expressions (soft suggestions).
CommentPolicy
Config
Top-level configuration for the analyzer.
Diagnostic
Style diagnostic emitted by the analyzer.
DocumentReport
Summary statistics for a document.
Limits
Hard limits for stylistic constructs per document section.
Location
Location metadata in 1-based line/column coordinates.
PhraseList
Phrase container for banned expressions.
ProfileConfig
File matching configuration to attach rule overrides.
ProfileRules
Profile-specific rule overrides applied to matched files.
RepoRules
ScoreThresholds
Thresholds for warnings / failures expressed as flags per 100 words.
Whitelist
Whitelisted tokens and phrases that should not trigger diagnostics.

Enums§

Category
Rule category identifiers.
HeadingStyle
Heading capitalisation policy.
QuoteStyle
Preferred quotation mark style.