Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
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 3,073 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.