Giter Site home page Giter Site logo

cdlm / textlint Goto Github PK

View Code? Open in Web Editor NEW

This project forked from damiencassou/textlint

1.0 3.0 0.0 32.78 MB

Allows to integrate TextLint (http://scg.unibe.ch/research/textlint) within various text editors

Home Page: http://scg.unibe.ch/research/textlint

Vim Script 20.70% Shell 9.87% Emacs Lisp 69.43%

textlint's Introduction

Introduction

Written text is an important component in the process of knowledge acquisition and communication. Poorly written text fails to deliver clear ideas to the reader no matter how revolutionary and ground-breaking these ideas are. Providing text with good writing style is essential to transfer ideas smoothly. While we have sophisticated tools to check for stylistic problems in program code, we do not apply the same techniques for written text. TextLint is a ruled-based tool to check for common style errors in natural language. TextLint provides a structural model of written text and an extensible rule-based checking mechanism.

Watch two screencasts and a presentation to get an overview of TextLint.

TextLint implements various stylistic rules that its authors collected over the years, and that are described in

  • The Elements of Style, by William Strunk Jr. and E. B. White
  • On Writing Well, by William Zinsser

TextLint is a research project of the Software Composition Group (SCG) from the University of Bern (related publications).

TextLint is currently accessible through:

Setup instructions for Emacs

With el-get

If you use el-get you are lucky, just add the following recipe:

(:name textlint
    :type git
    :url "git://github.com/DamienCassou/textlint.git"
    :website "http://scg.unibe.ch/research/textlint"
    :description "Allows the integration of TextLint within Emacs"
    :load "textlint.el")

Now you can use TextLint.

Without el-get

If you do not use el-get, download the project archive file from the github project, unzip, update your load-path, and load "textlint.el".

You then have to customize the variables in the textlint group using M-x customize-group RET textlint RET. You at least need to configure textlint-location-textlint.

Now you can use TextLint.

Using TextLint under Emacs

You can now visit a text file and type M-x textlint-run RET. When you see "Compilation finished", you can start using C-x ` to visit the next error message and move to the text that caused it.

Setup instructions for Vim

The recommended installation procedure is to use pathogen or Vundle.

For pathogen, just unzip the textlint archive or checkout the TextLint repository under ~/.vim/bundle.

For Vundle, add this line to your .vimrc, then invoke :BundleInstall in Vim:

Bundle 'DamienCassou/textlint'

Using TextLint under Vim

To invoke TextLint, use the :TextLint command from your text buffer. For convenience, there is a predefined shortcut: <leader>tl. Once TextLint has finished, Vim's quickfix window will open; you can then navigate between TextLint suggestions with the normal :cn and :cp commands. Consult :help quickfix for more details.

Setup instructions for TextMate

Double click on "TextLint.tmbundle" to install TextLint. Open a LaTeX or plain text file and press Ctrl+Shift+V to run TextLint. Alternatively select "Bundles > TextLint > RunText Lint" from the menu.

Support

If you want to report problems do that on the Issues page.

If you want to propose the integration for a new editor or fix an existing integration, please fork the project and start a pull request.

If you want to change the TextLint engine or just have a look at it, get it from the SCG website. Please propose patches by email to the developers.

textlint's People

Contributors

damiencassou avatar cdlm avatar renggli avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.