Catch writing that doesn't follow Intercom style guide rules
Last updated 3 years ago by skaelv .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eliza-bot 
SYNC missed versions from official npm registry.

Elizabot: Catch content style guide violations

Elizabot finds style errors by comparing input text against a set of incorrect terms in the retext-intercom repo. Elizabot explains why your word choices are incorrect according to the Intercom content and documentation style guides (for example, "avoid anthropomorphism"), and suggests alternatives.

You can run eliza-bot from the command line, or install plugins for the text editors Atom and Sublime Text that check your text as you type.

eliza-bot command line screenshot


  1. Make sure you have node.js installed.
  2. Open a Terminal window.
  3. Run npm install -g eliza-bot to install eliza-bot, which will also install ic-retext as a module within eliza-bot.

If you run into a permissions error, run sudo npm install -g eliza-bot instead.


  1. Open a Terminal window.
  2. Run npm update -g eliza-bot to update eliza-bot, which will also update ic-retext.

Using the Atom linter

Install eliza-bot, then see the readme for linter-eliza-bot.

Using the Sublime Text linter

Install eliza-bot, then see the readme for sublimelinter-eliza-bot.

Using the command line

You can run eliza-bot from the command line for extra functionality.

Check a specific file

Say example.md contains the following text:

Login to the Intercom Manual to customise the Intercom point of sale application.

Run eliza-bot on example.md:

eliza-bot example.md

This yields:

1:1-1:9    warning  “Login to” is not Intercom style. Use “log into” instead. (Login is a noun, not a verb.)              login to
1:14-1:28  warning  “Intercom Manual” is not Intercom style. Use “Intercom Help Center” instead. (Incorrect branded name.)  intercom manual
1:32-1:41  warning  “customise” is not Intercom style. Use “customize” instead. (Use American spelling.)                  customise
1:46-1:67  warning  “Intercom point of sale” is not Intercom style. Use “Intercom POS” instead. (Incorrect branded name.)   intercom point of sale

⚠ 4 warnings

You can run eliza-bot on any text file type, including Ruby.

Check a directory

When no input files are given to eliza-bot, it searches for markdown and text files in the current directory.

If you want to search other types of files, you can use wildcards to create your eliza-bot command.

To search all Ruby files within your current directory, for example, run:

eliza-bot *.rb

To search all Ruby files recursively within your current directory, run:

eliza-bot **/*.rb

Write eliza-bot messages to a file

If you want to write the results of a eliza-bot check to a file, use the tee command.

eliza-bot *.rb | tee output.txt

Check a string

If you want to check a string within your terminal:

echo "Login to the Intercom Manual to customise colours in the Intercom point of sale application." | eliza-bot

Get help

Run eliza-bot --help for more information. You can also check out Titus Wormer's original alex.js application for info about the API, which we haven't looked into yet.


Add rules

See the readme in ic-retext.

Make changes to eliza-bot

Create an issue or pull request in this repo.

Make changes to the Atom linter

See the readme for linter-eliza-bot.

Current Tags

  • 1.0.3                                ...           latest (3 years ago)

4 Versions

  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (23)
Dev Dependencies (12)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |