Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions data/en/misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,10 @@
- take action
inconsiderate:
- pull the trigger
- type: basic
note: Avoid idioms that describe violence toward animals.
considerate:
- solve two problems at once
- achieve two goals at once
inconsiderate:
- kill two birds with one stone
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"devDependencies": {
"@types/mdast": "^4.0.0",
"@types/node": "^20.0.0",
"c8": "^9.0.0",
"c8": "7.3.0",
"is-hidden": "^2.0.0",
"mdast-util-heading-range": "^4.0.0",
"prettier": "^3.0.0",
Expand Down
1 change: 1 addition & 0 deletions rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ to allow them.
| `journeyman-journeywoman` | [or](#or) | `journeywoman` (female), `journeyman` (male) | `journeyperson` |
| `journeymen-journeywomen` | [or](#or) | `journeywomen` (female), `journeymen` (male) | `journeypersons` |
| `just` | [basic](#basic) | `just` | |
| `kill-two-birds-with-one-stone` | [basic](#basic) | `kill two birds with one stone` | `solve two problems at once`, `achieve two goals at once` |
| `king-queen` | [or](#or) | `empress` (female), `queen` (female), `emperor` (male), `king` (male) | `ruler` |
| `kingmaker-queenmaker` | [or](#or) | `queenmaker` (female), `kingmaker` (male) | `power behind the throne` |
| `kings-queens` | [or](#or) | `empresses` (female), `queens` (female), `emperors` (male), `kings` (male) | `rulers` |
Expand Down
13 changes: 13 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ test('retext-equality', async function (t) {
ancestors: [],
column: 19,
fatal: false,
file: '',
message:
'Unexpected potentially insensitive use of `birth defect`, in somes cases `has a disability`, `person with a disability`, `people with disabilities` may be better',
line: 1,
Expand Down Expand Up @@ -460,6 +461,18 @@ test('retext-equality', async function (t) {
])
})

await t.test(
'should support `kill two birds with one stone`',
async function () {
assert.deepEqual(
await process('We can kill two birds with one stone here.'),
[
'1:8-1:37: Unexpected potentially insensitive use of `kill two birds with one stone`, in somes cases `solve two problems at once`, `achieve two goals at once` may be better'
]
)
}
)

await t.test('should support `dummy`', async function () {
assert.deepEqual(
await process(
Expand Down