Skip to content

Commit

Permalink
Fix to allow singular remain
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 20, 2022
1 parent 9941c03 commit c756859
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions en.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const retextProfanitiesEn = factory({
'children',
'dy', // Singular of `dies`.
'pro', // Singular of `pros`.
'remain', // Singular of `remains`
'so', // Singular of `sos`.
'dice', // Plural of `die`.
'fus' // Plural of `fu`.
Expand Down
10 changes: 10 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,14 @@ test('profanities', async () => {
['3:1-3:6: Don’t use `whore`, it’s profane'],
'should not warn about `who are` contractions'
)

const remain = await retext()
.use(retextProfanities)
.process('Only two minutes still remain in the game.')

assert.deepEqual(
remain.messages.map(String),
[],
'should not warn about `remain`'
)
})

0 comments on commit c756859

Please sign in to comment.