GNU Spell

Unix spell clone

Edition 1.0, for GNU Spell version 1.0

April 6, 1996

by Thomas Morgan


Table of Contents


1 Overview

GNU Spell is a spell checking program which prints each misspelled word on a line of its own. It is designed as a clone of the standard Unix spell program, and implemented as a wrapper for Ispell. Spell accepts as its arguments a list of files to read from. Within that list, the magical file name `-' causes Spell to read from standard input. In addition, when called with no file name arguments, Spell assumes that it should process standard input.

Spell is most useful when used in conjunction with other programs, because its output is minimalistic. Human users are usually more comfortable with verbose output. See Info file `ispell', node `Top', for an screen-oriented spelling checker.

2 Invoking Spell

The format for running GNU Spell is:

spell [option]... [file]...

Spell supports the following options:

`--version'
`-V'
Print the version number of Spell on the standard error output and then exit.
`--british'
`-b'
Use the British dictionary rather than American. Unavailable unless this dictionary was installed with Ispell.
`--dictionary=file'
`-d file'
Use the named dictionary.
`--help'
`-h'
Print an informative help message describing the options and then exit.
`--ispell=program'
`-i program'
Call program as Ispell.
`--all-chains'
`-l'
Ignored; for compatibility.
`--number'
`-n'
Print the line number of each misspelled word along with the word itself.
`--print-file-name'
`-o'
Print the file name which contained the misspelled words on each line before the word.
`--stop-list=file'
`-s file'
Ignored; for compatibility.
`--verbose'
`-v'
When a word is not found in its literal form in the dictionary, it is printed.
`--print-stems'
`-x'
Ignored; for compatibility.

3 Example

Using GNU Spell is quite simple. Here's an example, which you can try when in the directory of Spell's source code.

$ spell --print-file-name --number sample
sample:1: Tihs
sample:1: si
sample:1: fo
sample:1: Splel
sample:1: worsd
sample:1: spellled
sample:1: worng
sample:2: fi
sample:2: cna
sample:2: dael
sample:2: fiel
sample:2: Foo
sample:2: bza
sample:2: baz

The words printed on standard output are all the (purposely) misspelled words in `sample'. Notice the options `--print-file-name' and `--number' (see section 2 Invoking Spell). They are responsible for the prefix you see on each line, `sample:lineno '.

4 Problems

If you find a bug in GNU Spell, or have any questions, comments, or suggestions about it, please send electronic mail to `bug-gnu-utils@prep.ai.mit.edu'. When sending bug reports, include the version number, which you can find by running `spell --version'. Also include in your message the operating system you are using, the output that the program produced, the output you expected, which options you invoked Spell with, and any other details that you think may be useful. Keep in mind that facts are more usually more helpful than guesses.

Concept Index

b

  • bugs
  • e

  • example
  • g

  • getting help
  • h

  • help
  • i

  • invoking
  • o

  • options
  • overview
  • p

  • problems
  • s

  • sample
  • suggestions
  • u

  • usage
  • v

  • version

  • This document was generated on 27 May 2000 using the texi2html translator version 1.51a.