Documentation
¶
Overview ¶
Package unswell analyzes English prose offline with an extensible rule engine. It never discovers files, reads environment variables, prints, exits, or uses the network. Style findings are results; operational failures are Go errors. A rule that exhausts its own candidate budget on one document abstains there instead: the result records the abstention and the other rules' findings stay.
Index ¶
- Constants
- Variables
- type Assessment
- type ChangeOptions
- type ChangeSelection
- type ChangedDocument
- type Contribution
- type DocumentResult
- type Engine
- func (e *Engine) Analyze(ctx context.Context, src document.Source) (Result, error)
- func (e *Engine) AnalyzeAll(ctx context.Context, sources []document.Source) (RunResult, error)
- func (e *Engine) AnalyzeChanged(ctx context.Context, before, after []document.Source) (RunResult, error)
- func (e *Engine) AnalyzeChangedWithOptions(ctx context.Context, before, after []document.Source, options ChangeOptions) (RunResult, error)
- func (e *Engine) Catalog() []rule.Descriptor
- func (e *Engine) FeatureIDs() []string
- func (e *Engine) OriginModelIdentity() *ProbabilityModel
- func (e *Engine) PolicyForFile(name string) (config.Policy, error)
- func (e *Engine) PreparedFeatureIDs() []string
- func (e *Engine) PreparedUnitKinds() []string
- func (e *Engine) ProbabilityModelIdentity() *ProbabilityModel
- func (e *Engine) ResolvedPolicy(name string) (config.Policy, error)
- type FeatureBlockBinding
- type FeatureCollection
- type FeatureSource
- type FeatureUnit
- type Finding
- type GateDecision
- type GateReason
- type GitSelection
- type Location
- type Manifest
- type Options
- type PolicyChange
- type PolicyComparison
- type PreparedFeatureCollection
- type PreparedFeatureSource
- type PreparedFeatureUnit
- type ProbabilityModel
- type Result
- type RuleAbstention
- type RunError
- type RunResult
- type Suppression
- type SuppressionTarget
Constants ¶
const FeatureBlockBindingContract = "mapped-block-v1"
FeatureBlockBindingContract identifies complete mapped-text block bindings.
const FeatureCollectionVersion = "unswell-feature-collection-v1"
FeatureCollectionVersion identifies the optional saved collection structure.
const PreparedFeatureCollectionVersion = "unswell-prepared-feature-collection-v1"
PreparedFeatureCollectionVersion identifies optional prepared measurements.
const SchemaVersion = "1.0.0-alpha.1"
SchemaVersion versions the saved result contract independently of CLI flags.
const Version = "0.1.0-alpha.4"
Version is the release identity used in canonical results.
Variables ¶
var BuildCommit = "development"
BuildCommit identifies release builds. Set it with -ldflags at build time. Applications should not change this value while engines are running.
Functions ¶
This section is empty.
Types ¶
type Assessment ¶
type Assessment struct {
ChangeState string `json:"change_state,omitempty"`
ChangeFingerprint string `json:"change_fingerprint,omitempty"`
BaselineFingerprint string `json:"baseline_fingerprint,omitempty"`
BaselineState string `json:"baseline_state,omitempty"`
Path string `json:"path"`
Scope string `json:"scope"`
UnitID int `json:"unit_id"`
Span document.Span `json:"span"`
Words int `json:"words"`
SlopScore float64 `json:"slop_score"`
EffectiveSlopScore float64 `json:"effective_slop_score"`
SlopProbability *float64 `json:"slop_probability"`
ProbabilityStatus string `json:"probability_status"`
ProbabilityDetail string `json:"probability_detail,omitempty"`
OriginEstimate *float64 `json:"origin_estimate,omitempty"`
OriginStatus string `json:"origin_status,omitempty"`
OriginDetail string `json:"origin_detail,omitempty"`
Status string `json:"status"`
Contributions []Contribution `json:"contributions"`
EffectiveContributions []Contribution `json:"effective_contributions,omitempty"`
}
Assessment is a local, nondilutable index. A revision probability is present only when a compatible pack qualifies the unit; ProbabilityStatus always explains an unavailable estimate, and an index is never a probability.
type ChangeOptions ¶
type ChangeOptions struct {
TrustedPolicy bool
PolicyChanges []PolicyChange
}
ChangeOptions selects comparison against a caller-declared trusted engine policy. PolicyChanges describe external resource differences; the engine never loads them.
type ChangeSelection ¶
type ChangeSelection struct {
Version string `json:"version"`
Complete bool `json:"complete"`
Documents []ChangedDocument `json:"documents"`
ComparedUnits int `json:"compared_units"`
SelectedUnits int `json:"selected_units"`
}
ChangeSelection records structural comparison without granting baseline debt. Complete describes in-memory analysis; Git provenance belongs to the caller.
type ChangedDocument ¶
type ChangedDocument struct {
Path string `json:"path"`
BeforeHash string `json:"before_hash,omitempty"`
AfterHash string `json:"after_hash,omitempty"`
Status string `json:"status"`
FullReason string `json:"full_reason,omitempty"`
}
ChangedDocument identifies both versions and any reason for selecting a full file. A deleted document has no AfterHash and contributes no current source locations.
type Contribution ¶
type Contribution struct {
FindingID string `json:"finding_id"`
RuleID string `json:"rule_id"`
Group string `json:"group"`
Weight int `json:"weight"`
Activation int `json:"activation"`
Raw float64 `json:"raw"`
Effective float64 `json:"effective"`
RuleCap int `json:"rule_cap"`
GroupCap int `json:"group_cap"`
Reason string `json:"reason"`
}
Contribution explains fixed-point scoring and the effects of caps and deduplication.
type DocumentResult ¶
type DocumentResult struct {
GateMode string `json:"gate_mode,omitempty"`
Name string `json:"name"`
Format document.Format `json:"format"`
SourceHash string `json:"source_hash"`
ConfigHash string `json:"config_hash,omitempty"`
AppliedOverrides []string `json:"applied_overrides,omitempty"`
Bytes int `json:"bytes"`
ProseWords int `json:"prose_words"`
Blocks int `json:"blocks"`
Sentences int `json:"sentences"`
Excluded []document.Exclusion `json:"excluded"`
Source string `json:"source,omitempty"`
Maximum float64 `json:"paragraph_maximum"`
Median float64 `json:"paragraph_median"`
P90 float64 `json:"paragraph_p90"`
FlaggedFraction float64 `json:"eligible_paragraph_flagged_fraction"`
}
DocumentResult summarizes one source without including its prose by default.
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine is immutable after construction and supports concurrent calls. Custom rule and NLP implementations must uphold their documented concurrency contract.
func (*Engine) AnalyzeAll ¶
AnalyzeAll returns a deterministic, path-sorted result regardless of worker count or source order. It returns partial evidence and an error on incompleteness.
func (*Engine) AnalyzeChanged ¶
func (e *Engine) AnalyzeChanged(ctx context.Context, before, after []document.Source) (RunResult, error)
AnalyzeChanged analyzes complete source versions under this engine's fixed policy. Only changed or ambiguous findings and scored units affect the gate. All current evidence remains visible. New paths are selected in full; identical duplicates cannot silently inherit an unchanged state. Callers own revision discovery, clean-source verification, and policy selection.
func (*Engine) AnalyzeChangedWithOptions ¶
func (e *Engine) AnalyzeChangedWithOptions( ctx context.Context, before, after []document.Source, options ChangeOptions, ) (RunResult, error)
AnalyzeChangedWithOptions optionally uses this engine's policy and the before sources as trusted inputs. Only matching base permissions can suppress current findings. Resource changes trigger full selection under the trusted policy; they do not apply the candidate policy or automatically accept new baseline debt. Callers own resource loading, revision verification, and the trust assertion.
func (*Engine) Catalog ¶
func (e *Engine) Catalog() []rule.Descriptor
Catalog returns owned descriptors for the complete registered rule catalog.
func (*Engine) FeatureIDs ¶
FeatureIDs returns owned, canonical IDs explicitly requested for collection.
func (*Engine) OriginModelIdentity ¶
func (e *Engine) OriginModelIdentity() *ProbabilityModel
OriginModelIdentity returns the origin pack's declarations, or nil. An origin estimate is a separate experimental channel that no gate consults.
func (*Engine) PolicyForFile ¶
PolicyForFile returns an owned effective policy for a project-relative logical filename. An empty filename returns the base discovery and run-wide policy.
func (*Engine) PreparedFeatureIDs ¶
PreparedFeatureIDs returns owned, canonical IDs selected for prepared targets.
func (*Engine) PreparedUnitKinds ¶
PreparedUnitKinds returns owned, canonical kinds selected for preparation.
func (*Engine) ProbabilityModelIdentity ¶
func (e *Engine) ProbabilityModelIdentity() *ProbabilityModel
ProbabilityModelIdentity returns the revision pack's declarations, or nil.
func (*Engine) ResolvedPolicy ¶
ResolvedPolicy returns the shared policy resolved for a source name. It costs one lookup per call after the first file of its override combination, where PolicyForFile copies the whole policy. The result is read-only: the engine and every other caller of the same combination share its maps.
type FeatureBlockBinding ¶
type FeatureBlockBinding struct {
Contract string `json:"contract"`
TextSHA256 string `json:"text_sha256"`
Segments []document.Span `json:"segments"`
TrimmedSHA256 string `json:"trimmed_sha256"`
TrimmedSegments []document.Span `json:"trimmed_segments"`
}
FeatureBlockBinding identifies every mapped byte of an original extracted block. TextSHA256 includes whitespace, punctuation, and protected separators. Segments cover mapped text, including the source ranges of protected placeholders, not only counted tokens. Missing bindings cannot be inferred from token segments. Trimmed fields apply the same outer-whitespace trim as corpus unit preparation; original fields retain the actual input used by rules.
type FeatureCollection ¶
type FeatureCollection struct {
ActivationContract string `json:"activation_contract,omitempty"`
Version string `json:"version"`
BlockContract string `json:"block_contract"`
Requested []string `json:"requested"`
Sources []FeatureSource `json:"sources"`
}
FeatureCollection contains requested descriptive measurements, not model scores. The enclosing RunResult completion state applies: partial runs are not complete training or inference inputs. Values never include normalized words or keys.
type FeatureSource ¶
type FeatureSource struct {
RulesetHash string `json:"ruleset_hash,omitempty"`
Path string `json:"path"`
SourceHash string `json:"source_hash"`
PolicyHash string `json:"policy_hash"`
VocabularyHash string `json:"vocabulary_hash"`
Preprocessing string `json:"preprocessing"`
NLP nlp.Identity `json:"nlp"`
Capabilities []nlp.Capability `json:"capabilities"`
Units []FeatureUnit `json:"units"`
}
FeatureSource identifies the actual representation and policy used for a source.
type FeatureUnit ¶
type FeatureUnit struct {
Excluded bool `json:"excluded,omitempty"`
Binding *FeatureBlockBinding `json:"binding,omitempty"`
Scope string `json:"scope"`
UnitID int `json:"unit_id"`
Kind string `json:"kind"`
ContextHash string `json:"context_hash"`
Span document.Span `json:"span"`
Segments []document.Span `json:"segments"`
InputHash string `json:"input_hash,omitempty"`
Values []feature.Value `json:"values"`
}
FeatureUnit records one original block and its requested numeric values. Segments contain counted source tokens, without filling protected gaps. An unsupported measurement kind has no input hash or counted segments. Rule activations retain the source, context, and rule identities instead. Excluded units retain their binding but have no counted segments or numbers. Their source exclusion reason remains in DocumentResult.Excluded.
type Finding ¶
type Finding struct {
ChangeState string `json:"change_state,omitempty"`
ChangeFingerprint string `json:"change_fingerprint,omitempty"`
ID string `json:"id"`
RuleID string `json:"rule_id"`
RuleVersion string `json:"rule_version"`
Severity string `json:"severity"`
Gate string `json:"gate"`
Group string `json:"group"`
Scope string `json:"scope"`
Message string `json:"message"`
Primary Location `json:"primary"`
Related []Location `json:"related"`
Evidence rule.Evidence `json:"evidence"`
Fingerprint string `json:"fingerprint"`
Suppressed bool `json:"suppressed"`
SuppressionIDs []string `json:"suppression_ids,omitempty"`
BaselineState string `json:"baseline_state"`
BaselineFingerprint string `json:"baseline_fingerprint,omitempty"`
Derived bool `json:"derived"`
}
Finding is a rule activation enriched with policy, identity, and source locations.
type GateDecision ¶
type GateDecision struct {
Unchanged []GateReason `json:"unchanged,omitempty"`
Passed bool `json:"passed"`
Reasons []GateReason `json:"reasons"`
Accepted []GateReason `json:"accepted,omitempty"`
}
GateDecision reports policy separately from operational completion.
type GateReason ¶
type GateReason struct {
Code string `json:"code"`
Path string `json:"path"`
FindingID string `json:"finding_id"`
Message string `json:"message"`
}
GateReason identifies the exact local condition behind a policy failure.
type GitSelection ¶
type GitSelection struct {
RequestedRef string `json:"requested_ref"`
BaseCommit string `json:"base_commit"`
HeadCommit string `json:"head_commit"`
Clean bool `json:"clean"`
}
GitSelection records application-verified committed source provenance. The engine never invokes Git. Clean describes the selected inputs, not every file.
type Location ¶
type Location struct {
Path string `json:"path"`
Span document.Span `json:"span"`
Start document.Position `json:"start"`
End document.Position `json:"end"`
Segments []document.Span `json:"segments"`
Snippet string `json:"snippet,omitempty"`
}
Location contains original byte spans and Unicode code point positions.
type Manifest ¶
type Manifest struct {
Git *GitSelection `json:"git,omitempty"`
GateMode string `json:"gate_mode,omitempty"`
ToolVersion string `json:"tool_version"`
ToolCommit string `json:"tool_commit"`
ConfigHash string `json:"config_hash"`
ConfigIdentity string `json:"config_identity,omitempty"`
ConfigSources []config.SourceIdentity `json:"config_sources,omitempty"`
ConfigOverrides []config.OverrideIdentity `json:"config_overrides,omitempty"`
RulesetHash string `json:"ruleset_hash"`
ScoringProfile string `json:"scoring_profile"`
FeatureContract string `json:"feature_contract"`
Probability *ProbabilityModel `json:"probability,omitempty"`
Origin *ProbabilityModel `json:"origin,omitempty"`
NLP nlp.Identity `json:"nlp"`
Rules []rule.Descriptor `json:"rules"`
SelectionMode string `json:"selection_mode"`
Complete bool `json:"complete"`
NoGate bool `json:"no_gate"`
IncludeSource bool `json:"include_source"`
SkippedRules []string `json:"skipped_rules"`
// AbstainedRules names each rule that abstained on at least one document,
// sorted and unique. Such a rule did not cover every document of the run;
// RunResult.Abstentions lists the documents and reasons.
AbstainedRules []string `json:"abstained_rules,omitempty"`
}
Manifest records the exact execution policy and feature versions, without time.
type Options ¶
type Options struct {
// PreparedFeatures and PreparedKinds select descriptive target measurements.
// Both sets are required when either is nonempty; collection is off by default.
PreparedFeatures []string
PreparedKinds []string
// Features selects block measurements for the result. IDs form a set; unknown
// or repeated IDs are errors. Nil or empty disables result collection.
Features []string
// Model contains one explicitly selected revision-probability pack. It
// requires calibration.model: pack and is rejected without it.
Model []byte
// OriginModel contains one explicitly selected origin pack. It requires
// origin.model: pack, is rejected without it, and never affects the gate.
OriginModel []byte
// Baseline contains an explicitly selected artifact; nil disables comparison.
Baseline []byte
// CollectBaseline requests a validated snapshot for explicit create or update.
CollectBaseline bool
// GateMode overrides configuration with all or new; empty follows the policy.
GateMode string
Config []byte
ConfigBundle *config.Bundle
Rules []rule.Rule
RuleSets [][]byte
NLP nlp.Provider
Jobs int
IncludeSource bool
AllowEmpty bool
NoGate bool
}
Options injects all inputs. A nil Rules slice selects the builtin catalog; a nonnil slice replaces that catalog. RuleSets adds declarative YAML packs to the registry. Config and RuleSets contain bytes, never filenames.
type PolicyChange ¶
type PolicyChange struct {
Path string `json:"path"`
Kind string `json:"kind"`
BeforeHash string `json:"before_hash,omitempty"`
AfterHash string `json:"after_hash,omitempty"`
}
PolicyChange identifies a resource or structural permission change. Hashes are SHA-256 identities; an empty side means that the resource or permission is absent.
type PolicyComparison ¶
type PolicyComparison struct {
Version string `json:"version"`
Complete bool `json:"complete"`
FullScan bool `json:"full_scan"`
Changes []PolicyChange `json:"changes"`
}
PolicyComparison audits trusted-policy use. FullScan selects all current units for resource changes; permission changes can select individual complete files. This record proves neither organizational approval nor the checker's integrity.
type PreparedFeatureCollection ¶
type PreparedFeatureCollection struct {
Version string `json:"version"`
FeatureContract string `json:"feature_contract"`
UnitContract string `json:"unit_contract"`
Requested []string `json:"requested"`
Kinds []string `json:"kinds"`
Sources []PreparedFeatureSource `json:"sources"`
}
PreparedFeatureCollection contains descriptive values, never model scores. The enclosing run's completion state applies to every collection consumer.
type PreparedFeatureSource ¶
type PreparedFeatureSource struct {
TargetCount int `json:"target_count"`
Path string `json:"path"`
SourceHash string `json:"source_hash"`
PolicyHash string `json:"policy_hash"`
VocabularyHash string `json:"vocabulary_hash"`
ExtractionPolicyHash string `json:"extraction_policy_hash"`
PreparationHash string `json:"preparation_hash"`
IncludeQuotes bool `json:"include_quotes"`
IncludeStructure bool `json:"include_structure"`
NLP nlp.Identity `json:"nlp"`
Capabilities []nlp.Capability `json:"capabilities"`
Units []PreparedFeatureUnit `json:"units"`
}
PreparedFeatureSource binds actual source, policy, extraction, and NLP inputs. PreparationHash covers UnitContract, extraction policy, and both switches. PolicyHash and VocabularyHash conservatively bind the entire effective policy.
type PreparedFeatureUnit ¶
type PreparedFeatureUnit struct {
Binding nlp.UnitBinding `json:"binding"`
InputHash string `json:"input_hash"`
Segments []document.Span `json:"segments"`
Values []feature.Value `json:"values"`
}
PreparedFeatureUnit keeps complete target/context mappings separate from the counted token segments. Its parent block ID is not a unique target identifier.
type ProbabilityModel ¶
type ProbabilityModel struct {
PackID string `json:"pack_id"`
SHA256 string `json:"sha256"`
Version string `json:"version"`
Task string `json:"task"`
Rubric string `json:"rubric"`
Kind string `json:"kind"`
DeclaredStatus string `json:"declared_status"`
HumanCorpus string `json:"human_corpus"`
Evaluation string `json:"evaluation,omitempty"`
MinWords int `json:"min_words"`
}
ProbabilityModel repeats the declarations of the pack behind reported estimates. The engine checks compatibility and consistency, never the truth of an acceptance, corpus, or evaluation statement.
type Result ¶
type Result = RunResult
Result is the same report contract restricted to one source by Analyze.
type RuleAbstention ¶
type RuleAbstention struct {
Path string `json:"path"`
RuleID string `json:"rule_id"`
RuleVersion string `json:"rule_version"`
Reason string `json:"reason"`
Detail string `json:"detail,omitempty"`
}
RuleAbstention records one rule that declined to judge one document for a declared reason, such as an exhausted candidate budget. The document stays measured by every other rule and the run stays complete; the abstaining rule contributes no findings and no activation values for that document.
type RunResult ¶
type RunResult struct {
PreparedFeatures *PreparedFeatureCollection `json:"prepared_features,omitempty"`
Features *FeatureCollection `json:"features,omitempty"`
PolicyComparison *PolicyComparison `json:"policy_comparison,omitempty"`
Changes *ChangeSelection `json:"changes,omitempty"`
BaselineSnapshot *baseline.Snapshot `json:"baseline_snapshot,omitempty"`
Baseline *baseline.Comparison `json:"baseline,omitempty"`
SchemaVersion string `json:"schema_version"`
Status string `json:"status"`
Manifest Manifest `json:"manifest"`
Documents []DocumentResult `json:"documents"`
Findings []Finding `json:"findings"`
Assessments []Assessment `json:"assessments"`
Gate GateDecision `json:"gate"`
Errors []RunError `json:"errors"`
Suppressions []Suppression `json:"suppressions,omitempty"`
// Abstentions lists each rule that declined one document, sorted by path
// and rule ID. Manifest.AbstainedRules names the affected rules once.
Abstentions []RuleAbstention `json:"abstentions,omitempty"`
}
RunResult is the immutable input shared by every reporter. Returned slices are owned by the caller and do not alias the engine.
type Suppression ¶
type Suppression struct {
TrustState string `json:"trust_state,omitempty"`
TrustFingerprint string `json:"trust_fingerprint,omitempty"`
ID string `json:"id"`
Kind string `json:"kind"`
RuleIDs []string `json:"rule_ids"`
Reason string `json:"reason"`
Directive Location `json:"directive"`
End *Location `json:"end,omitempty"`
Targets []SuppressionTarget `json:"targets"`
FindingIDs []string `json:"finding_ids"`
UsedRules []string `json:"used_rules"`
Status string `json:"status"`
}
Suppression records an explicit permission and links it to retained raw findings. A partially used or unused permission is an error when reject_unused is true.
Source Files
¶
- analyze.go
- baseline_collect.go
- baseline_engine.go
- baseline_identity.go
- capabilities.go
- changes.go
- changes_gate.go
- clone.go
- feature_collect.go
- feature_result.go
- feature_rules.go
- features.go
- gate.go
- prepared_collect.go
- prepared_result.go
- prepared_select.go
- probability_engine.go
- probability_gate.go
- result.go
- scoring.go
- suppression.go
- trusted_policy.go
- trusted_suppressions.go
- unswell.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package baseline records explicit acceptance of existing editorial debt.
|
Package baseline records explicit acceptance of existing editorial debt. |
|
Package builtin constructs the versioned alpha rule catalog without init hooks.
|
Package builtin constructs the versioned alpha rule catalog without init hooks. |
|
cmd
|
|
|
docscatalog
command
Command docscatalog renders the builtin rule catalog as the JSON data file that the documentation site's rules page reads.
|
Command docscatalog renders the builtin rule catalog as the JSON data file that the documentation site's rules page reads. |
|
genschema
command
Command genschema derives the saved-result JSON schema from the public types.
|
Command genschema derives the saved-result JSON schema from the public types. |
|
repocheck
command
Command repocheck validates the repository's source and CI contracts.
|
Command repocheck validates the repository's source and CI contracts. |
|
unswell
command
Command unswell checks English prose against a local editorial policy.
|
Command unswell checks English prose against a local editorial policy. |
|
Package config compiles strict, offline YAML policy against an explicit catalog.
|
Package config compiles strict, offline YAML policy against an explicit catalog. |
|
Package document defines source coordinates and the neutral prose model.
|
Package document defines source coordinates and the neutral prose model. |
|
Package extract provides source-preserving prose extraction from text and syntax trees.
|
Package extract provides source-preserving prose extraction from text and syntax trees. |
|
Package feature computes versioned descriptive measurements from extracted prose.
|
Package feature computes versioned descriptive measurements from extracted prose. |
|
goanalysis
module
|
|
|
internal
|
|
|
appconfig
Package appconfig loads local policy resources at the CLI and MCP startup boundary.
|
Package appconfig loads local policy resources at the CLI and MCP startup boundary. |
|
cli
Package cli owns command parsing, filesystem discovery, streams, and exit codes.
|
Package cli owns command parsing, filesystem discovery, streams, and exit codes. |
|
mapping
Package mapping builds source-preserving normalized prose.
|
Package mapping builds source-preserving normalized prose. |
|
pathglob
Package pathglob compiles bounded project-relative path patterns.
|
Package pathglob compiles bounded project-relative path patterns. |
|
repopolicy
Package repopolicy checks repository contracts against the actual source tree.
|
Package repopolicy checks repository contracts against the actual source tree. |
|
suppress
Package suppress binds explicit source permissions to complete prose units.
|
Package suppress binds explicit source permissions to complete prose units. |
|
terms
Package terms matches explicit vocabulary at complete token boundaries.
|
Package terms matches explicit vocabulary at complete token boundaries. |
|
textutil
Package textutil shares text boundaries without changing source mappings.
|
Package textutil shares text boundaries without changing source mappings. |
|
Package model trains numerical classifiers and separate calibration mappings in Go.
|
Package model trains numerical classifiers and separate calibration mappings in Go. |
|
Package nlp defines backend capabilities and prepares mapped prose units.
|
Package nlp defines backend capabilities and prepares mapped prose units. |
|
english
Package english adapts Prose's tokenizer, Punkt segmenter, and POS tagger.
|
Package english adapts Prose's tokenizer, Punkt segmenter, and POS tagger. |
|
Package probability decodes explicitly supplied editorial revision-probability packs and decides per-unit applicability before any estimate is reported.
|
Package probability decodes explicitly supplied editorial revision-probability packs and decides per-unit applicability before any estimate is reported. |
|
Package report renders a completed result without analyzing or reading sources.
|
Package report renders a completed result without analyzing or reading sources. |
|
Package rule defines explicit rule registration, evidence, and configuration.
|
Package rule defines explicit rule registration, evidence, and configuration. |
|
Package ruleset compiles bounded, declarative editorial rules from YAML bytes.
|
Package ruleset compiles bounded, declarative editorial rules from YAML bytes. |