Wordlint: Plaintext prose redundancy linter.
This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.
Warnings:
- 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users.
Wordlint locates matching pairs of words repeated within a user-defined distance. Text may be linted by distance between words (that is, by word count), by line count, and/or by percentage of the total words in the file. For details on running the program, see README or the included man page. Internally, Wordlint separates a text file (or stdin) into a list of Words, after processing user flags. An instance of the Word datatype consisting of a String that contains a lemma; its line and column coordinates; and its "position": an Int or Float depending on the type of check invoked by the user. This list is first filtered by the user-defined minimum length of the lemma. Next, items are matched by their lemma and exclusive coordinates before being added to a list of Wordpairs, a data structure containing two Words and the difference between their respective "positions". If multiple types are specified, all Int positions are converted to the Double type and the resulting lists are intersected to produce the final results. Finally, these Wordpairs are optionally filtered by the difference in their positions (another user-specified option). All remaining Wordpairs are processed for printing to stdout in machine-readable (default) or human-readable format. Plugins exist for integration with Vim (https://github.com/gbgar/Wordlint.vim) and Emacs (https://github.com/gbgar/wordlint.el).
Properties
Versions | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.2.0.0, 0.2.0.1, 0.2.0.2, 0.2.0.3, 0.2.0.4, 0.2.1.0 |
---|---|
Change log | changelog |
Dependencies | base (>=4.8.0.0 && <4.9.0.0), boxes (>=0.1 && <0.2), cmdargs (>=0.10.0 && <0.11.0) [details] |
License | LicenseRef-GPL |
Copyright | 2014-2016 |
Author | GB Gardner |
Maintainer | gbgar@users.noreply.github.com |
Category | Text |
Home page | https://github.com/gbgar/Wordlint |
Source repo | head: git clone git://github.com/gbgar/Wordlint.git |
Uploaded | by bgbgbg at 2016-05-17T22:56:11Z |
Modules
[Index]
Downloads
- Wordlint-0.2.1.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
Package maintainers
For package maintainers and hackage trustees