Add WordCensor SE5 plugin#273
Merged
Merged
Conversation
Port of the SE4 WordCensor: replaces the first ~50% of each offensive word with random grawlix characters (#@!?$%&). Optionally wraps the censored word in <font color="#ff0000">...</font>. Built on Plugin-Shared, so theme passing, SRT parsing, and the plugin boot all come for free. The bundled BadWords.txt is the same list as the SE4 version. Single-character entries and very short words are left alone; multi-word phrases (e.g. "blow job") are matched verbatim before the single-word pass. UI mirrors the AmericanToBritish preview pattern: per-line checkbox list with the original (muted) and censored (SemiBold) versions, a "Highlight in red" toggle that re-runs the preview live, Select all / Select none, accent Apply, and "No offensive words found" as the empty state. The colour-red preference is persisted via the plugin Settings round-trip. Workflow .github/workflows/word-censor.yml mirrors the other SE5 plugin workflows; se5-plugins.json gets a Word censor entry pointing at the planned se5-word-censor-v1.0 release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Port of the SE4 WordCensor plugin, the third SE5 plugin built on top of `Plugin-Shared` (after AmericanToBritish + BritishToAmerican).
Engine
`WordCensorEngine` replaces the first ~50% of each offensive word with random grawlix characters (`@ # ! ? $ % &`). Optionally wraps the censored word in `…`. Single-word entries from the bundled list are matched case-insensitively as whole words; multi-word phrases (`blow job`, `god damn`) are matched verbatim before the single-word pass.
`BadWords.txt` is the same list the SE4 version shipped (76 entries) — embedded as a resource of the plugin assembly.
UI
Same preview pattern as AmericanToBritish:
Build + index
Test plan
🤖 Generated with Claude Code