retext
Natural language processor powered by plugins
Last updated 8 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install retext 
SYNC missed versions from official npm registry.

retext

Build Coverage Downloads Size Sponsors Backers Chat

retext is a natural language processor powered by plugins part of the unified collective.

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 retext

Use

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! :cop:', 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 warning

Contribute

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.

License

MIT © Titus Wormer

Current Tags

  • 7.0.1                                ...           latest (8 months ago)
  • 1.0.0-rc.4                                ...           next (5 years ago)

50 Versions

  • 7.0.1                                ...           8 months ago
  • 7.0.0                                ...           a year ago
  • 6.0.2                                ...           a year ago
  • 6.0.1                                ...           2 years ago
  • 6.0.0                                ...           2 years ago
  • 5.0.0                                ...           3 years ago
  • 4.0.0                                ...           4 years ago
  • 3.0.0                                ...           4 years ago
  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
  • 1.0.0-rc.4                                ...           5 years ago
  • 1.0.0-rc.3                                ...           5 years ago
  • 1.0.0-rc.2                                ...           5 years ago
  • 1.0.0-rc.1                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.5.0-rc.2                                ...           6 years ago
  • 0.5.0-rc.1                                ...           6 years ago
  • 0.4.0                                ...           6 years ago
  • 0.4.0-rc.2                                ...           6 years ago
  • 0.4.0-rc.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.3.0-rc.2                                ...           6 years ago
  • 0.3.0-rc.1                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.2.0-rc.5                                ...           6 years ago
  • 0.2.0-rc.4                                ...           6 years ago
  • 0.2.0-rc.3                                ...           6 years ago
  • 0.2.0-rc.2                                ...           6 years ago
  • 0.2.0-rc.1                                ...           6 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
  • 0.1.0-rc.6                                ...           6 years ago
  • 0.1.0-rc.5                                ...           6 years ago
  • 0.1.0-rc.4                                ...           6 years ago
  • 0.1.0-rc.3                                ...           6 years ago
  • 0.1.0-rc.2                                ...           6 years ago
  • 0.1.0-rc.1                                ...           6 years ago
  • 0.0.12                                ...           6 years ago
  • 0.0.11                                ...           6 years ago
  • 0.0.10                                ...           6 years ago
  • 0.0.9                                ...           6 years ago
  • 0.0.8                                ...           6 years ago
  • 0.0.6                                ...           6 years ago
  • 0.0.5                                ...           6 years ago
  • 0.0.4                                ...           6 years ago
  • 0.0.3                                ...           6 years ago
  • 0.0.2                                ...           6 years ago
Maintainers (1)
Downloads
Today 8
This Week 57
This Month 20
Last Day 12
Last Week 247
Last Month 916
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |