eliza-bot v1.0.3
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.

Installing
- Make sure you have node.js installed.
- Open a Terminal window.
- Run
npm install -g eliza-botto 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.
Updating
- Open a Terminal window.
- Run
npm update -g eliza-botto 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.mdThis yields:
example.md
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 warningsYou 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 *.rbTo search all Ruby files recursively within your current directory, run:
eliza-bot **/*.rbWrite 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.txtCheck 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-botGet 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.
Contributing
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.