@faircopy/rules-default 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +21 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -146,12 +146,29 @@ error[no-rhetorical-scaffolding]: avoid "Without X / With X" — drop the setup
146
146
 
147
147
  Flags non-inclusive terms and suggests neutral alternatives.
148
148
 
149
- Default terms include `guys`, `manpower`, `whitelist`, `blacklist`, `master`, `slave`, `crazy`, `insane`, `dumb`, `lame`, `sanity check`, `blind spot`, `grandfathered`, and `mankind`.
150
-
151
149
  ```
152
150
  error[no-non-inclusive-language]: replace "guys" with a neutral alternative such as "everyone, team, folks"
153
151
  ```
154
152
 
153
+ **Default terms:**
154
+
155
+ | Term | Suggested alternatives |
156
+ |---|---|
157
+ | `guys` | `everyone`, `team`, `folks` |
158
+ | `manpower` | `workforce`, `staffing`, `personnel` |
159
+ | `whitelist` | `allowlist` |
160
+ | `blacklist` | `denylist`, `blocklist` |
161
+ | `master` | `primary`, `main`, `leader` |
162
+ | `slave` | `secondary`, `replica`, `follower` |
163
+ | `crazy` | `unexpected`, `intense`, `extreme` |
164
+ | `insane` | `extreme`, `unbelievable`, `remarkable` |
165
+ | `dumb` | `unhelpful`, `poor`, `uninformed` |
166
+ | `lame` | `unimpressive`, `inadequate`, `weak` |
167
+ | `sanity check` | `quick check`, `confidence check`, `verification` |
168
+ | `blind spot` | `unaware area`, `gap`, `oversight` |
169
+ | `grandfathered` | `legacy status`, `exempted` |
170
+ | `mankind` | `humanity`, `humankind`, `people` |
171
+
155
172
  **Options:**
156
173
 
157
174
  ```ts
@@ -177,6 +194,8 @@ rules: {
177
194
 
178
195
  Single-word terms always match with word boundaries, so `master` will not flag `masterpiece`. Default multi-word phrases such as `sanity check` and `blind spot` use `exact: true`, so `sanity checker` is not flagged. Set `exact: false` on a custom multi-word term to match it as a substring anywhere in the text.
179
196
 
197
+ `allowedTerms` is case-insensitive: adding `master` also permits `Master` or `MASTER`.
198
+
180
199
  ---
181
200
 
182
201
  ### `no-redundant-phrases`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faircopy/rules-default",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "Default ruleset for faircopy: no-complex-sentences, no-em-dash, no-weasel-words, no-rhetorical-scaffolding, no-non-inclusive-language, no-redundant-phrases, no-passive-voice, no-cliches, no-repetitive-sentence-startings, no-filler-words",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,7 +20,7 @@
20
20
  "prepublishOnly": "pnpm run build"
21
21
  },
22
22
  "dependencies": {
23
- "@faircopy/core": "1.19.0"
23
+ "@faircopy/core": "1.20.0"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "latest",