Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
retext-repeated-words
Advanced tools
Check for repeated words with retext.for
npm:
npm install retext-repeated-words
Say we have the following file, example.txt
:
Well, it it doesn’t have to to be. Like a fish in the
the sea.
And our script, example.js
, looks like this:
var vfile = require('to-vfile')
var report = require('vfile-reporter')
var unified = require('unified')
var english = require('retext-english')
var stringify = require('retext-stringify')
var repeated = require('retext-repeated-words')
unified()
.use(english)
.use(repeated)
.use(stringify)
.process(vfile.readSync('example.txt'), function(err, file) {
console.error(report(err || file))
})
Now, running node example
yields:
example.txt
1:7-1:12 warning Expected `it` once, not twice retext-repeated-words retext-repeated-words
1:26-1:31 warning Expected `to` once, not twice retext-repeated-words retext-repeated-words
1:51-2:4 warning Expected `the` once, not twice retext-repeated-words retext-repeated-words
⚠ 3 warnings
retext().use(repeatedWords)
Check for repeated words.
the best exhibition they had had since
)D. D. will pop up with...
)Duran Duran...
)retext-indefinite-article
— Check if indefinite articles are used correctlyretext-redundant-acronyms
— Check for redundant acronymsSee contributing.md
in retextjs/retext
for ways to get
started.
This organisation has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.
FAQs
retext plugin to check for for repeated words
The npm package retext-repeated-words receives a total of 15,927 weekly downloads. As such, retext-repeated-words popularity was classified as popular.
We found that retext-repeated-words demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.