Package Exports
- retext
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (retext) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
retext
retext is a natural language processor powered by plugins part of the unified collective.
- API by unified
- Parses natural language to the tree with
retext-latin - nlcst syntax tree
- Plugins transform the tree
- Compiles the tree to markdown using
retext-stringify
Don’t need the parser? Or the compiler? That’s OK.
Sponsors
|
🥇 ZEIT |
🥇 Gatsby |
🥇 Netlify |
Holloway |
You? |
Read more about the unified collective on Medium »
Install
npm:
npm install retextUse
var retext = require('retext')
var profanities = require('retext-profanities')
var emoji = require('retext-emoji')
var report = require('vfile-reporter')
retext()
.use(profanities)
.use(emoji, {convert: 'encode'})
.process('He’s set on beating your butt for sheriff! 👮', function(err, file) {
console.log(String(file))
console.error(report(err || file))
})Yields:
He’s set on beating your butt for sheriff! 👮
1:26-1:30 warning Be careful with “butt”, it’s profane in some cases butt retext-profanities
⚠ 1 warningContribute
See contributing.md in retextjs/.github for ways
to get started.
See support.md for ways to get help.
Ideas for new plugins and tools can be posted in retextjs/ideas.
A curated list of awesome retext resources can be found in awesome retext.
This project has a Code of Conduct. By interacting with this repository, organisation, or community you agree to abide by its terms.