Standardized the grammar and spoken_word modules on a shared editorial_review validator

This commit is contained in:
2026-05-14 09:30:10 -05:00
parent b103bb2e7d
commit 6dae15656d
11 changed files with 9 additions and 65 deletions

View File

@@ -15,8 +15,6 @@ Built-in validator construction is package-owned under `internal/validators/<val
- `internal/validators/spoken_form_plausibility`
- `internal/validators/meaning_reversal_review`
- `internal/validators/editorial_review`
- `internal/validators/grammar_review`
- `internal/validators/spoken_word_review`
Registry and chain wiring stay in:
- `internal/validators/registry.go`
@@ -67,10 +65,6 @@ Current 1.0 boundary:
- checks for likely meaning reversal or semantic contradiction.
- `editorial_review`
- performs conservative editorial safety review.
- `grammar_review`
- checks grammar-stage proposals for grammar-focused safety constraints.
- `spoken_word_review`
- checks spoken-word-stage proposals for dysfluency-cleanup safety constraints.
## Built-in module chains
@@ -100,7 +94,7 @@ Current built-in chains resolved from `internal/validators/chains.go`:
- `confidence_threshold`
- `protected_terms`
- `non_empty_corrected_text`
- `spoken_word_review`
- `editorial_review`
- `meaning_reversal_review`
- `grammar`
@@ -109,7 +103,7 @@ Current built-in chains resolved from `internal/validators/chains.go`:
- `confidence_threshold`
- `protected_terms`
- `non_empty_corrected_text`
- `grammar_review`
- `editorial_review`
- `meaning_reversal_review`
## Protected terms construction