The Wordlint package

[Tags:library, program]

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 ( and Emacs (


Change log changelog
Dependencies base (==4.7.*), boxes (==0.1.*), cmdargs (>=0.10.0 && <0.11.0) [details]
License OtherLicense
Copyright 2014-2015
Author GB Gardner
Category Text
Home page
Source repository head: git clone git://
Uploaded Fri Feb 27 01:15:12 UTC 2015 by bgbgbg
Distributions NixOS:
Downloads 1318 total (25 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2015-02-27 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees