STYLE(1) | User commands | STYLE(1) |
style - analyse surface characteristics of a document
style [-L language] [-l length]
[-r ari] [file...]
style [--language language] [--print-long
length] [--print-ari ari] [file...]
style -h|--help
style --version
Style analyses the surface characteristics of the writing style of a document. It prints various readability grades, length of words, sentences and paragraphs. It can further locate sentences with certain characteristics. If no files are given, the document is read from standard input.
Numbers are counted as words with one syllable. A sentence is a sequence of words, that starts with a capitalised word and ends with a full stop, double colon, question mark or exclamation mark. A single letter followed by a dot is considered an abbreviation, so it does not end a sentence. Various multi-letter abbreviations are recognized, they do not end a sentence as well. A paragraph consists of two or more new line characters.
Style understands cpp(1) #line lines for being able to give precise locations when printing sentences.
Kincaid = 11.8*syllables/wds+0.39*wds/sentences-15.59
ARI = 4.71*chars/wds+0.5*wds/sentences-21.43
Coleman-Liau = 5.88*chars/wds-29.5*sent/wds-15.8
Flesch Index = 206.835-84.6*syll/wds-1.015*wds/sent
Fog Index = 0.4*(wds/sent+100*((wds >= 3 syll)/wds))
Lix = wds/sent+100*(wds >= 6 char)/wds
Index | 34 | 38 | 41 | 44 | 48 | 51 | 54 | 57 | |||||||
School year | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
SMOG Grading = square root of (((wds >= 3 syll)/sent)*30) + 3
It was adapted to German by Bamberger and Vanecek in 1984, who changed the constant +3 to -2.
The word usage counts are intended to help identify excessive use of particular parts of speech.
The verb category "aux" measures the use of modal auxiliary verbs, such as "can", "could", and "should". Modal auxiliary verbs modify the mood of a verb.
Subordinating conjunctions connect clauses of unequal status. A subordinating conjunction links a subordinate clause, which is unable to stand alone, to an independent clause. Examples of subordinating conjunctions are "because," "although," and "even if."
On usage errors, 1 is returned. Termination caused by lack of memory is signalled by exit code 2.
This program is GNU software, copyright 1997–2007 Michael Haardt <michael@moria.de>.
It contains contributions by Jason Petrone <jpetrone@acm.org>, Uschi Stegemeier <uschi@morwain.de> and Hans Lodder.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
There was a style command on old UNIX systems, which is now part of the AT&T DWB package. The original version was bound to roff by enforcing a call to deroff.
deroff(1), diction(1)
Cherry, L.L.; Vesterman, W.: Writing Tools—The STYLE and DICTION programs, Computer Science Technical Report 91, Bell Laboratories, Murray Hill, N.J. (1981), republished as part of the 4.4BSD User's Supplementary Documents by O'Reilly.
Coleman, M. and Liau,T.L. (1975). 'A computer readability formula designed for machine scoring', Journal of Applied Psychology, 60(2), 283-284.
September 2, 2017 | GNU |