SPELL(1)

๐Ÿ“ฆ
version 0_git20260208 ยท 3 versions
, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

๐Ÿฆ‹ the SPELL(1) glow-up: spell, sprog, and the quest for no typos ๐Ÿฆ‹

okay so bestie, this is the SPELL(1) page from the General Commands Manual, and it is literally about finding spelling errors. no cap. ๐Ÿ’–

๐Ÿ’– NAME ๐Ÿ’–

spell, sprog โ€” find spelling errors. (yes, both of them, we love a duo โ€” slay)

โœจ SYNOPSIS โœจ

here's the shape of it, character for character:

spell [ options ] ...  [ file ] ...

sprog [ options ] [ -f file ]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

so spell looks up words from the named files (standard input default) in a spelling list, and places possible misspellings โ€” words not sanctioned there โ€” on the standard output. it's highkey giving "spellcheck but make it Unix," and I'm obsessed. ๐Ÿซถ

it also ignores constructs of troff(1) and its standard preprocessors. (iykyk, formatting goblins stay out of the group chat.) it understands these options:

  • -b โ€” check British spelling. ๐Ÿ‡ฌ๐Ÿ‡ง
  • -v โ€” print all words not literally in the spelling list, with derivations.
  • -x โ€” print, marked with every stem as it is looked up in the spelling list, along with its affix classes.

policy time, and it is strict: as a matter of policy, spell does not admit multiple spellings of the same word. variants that follow general rules are preferred over those that don't, even when the unruly spelling is more common. thus, in American usage, modelled, sizeable, and judgment are rejected in favor of modeled, sizable, and judgement. agglutinated variants are shunned: crewmember and backyard cede to crew member and back yard (noun) or back-yard (adjective). periodt. ๐Ÿ’… fr fr.

๐Ÿ“ FILES ๐Ÿ“

file vibe check:

  • /lib/amspell โ€” American spelling list. ๐Ÿฆ…
  • /lib/brspell โ€” British spelling list. ๐Ÿซ–
  • /bin/sprog โ€” the actual spelling checker. it expects one word per line on standard input, and takes the same arguments as spell. ๐Ÿ‘‘

๐ŸŒฑ SOURCE ๐ŸŒฑ

  • /bin/spell โ€” the script. iconic.
  • /src/cmd/spell โ€” source for sprog.

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

๐Ÿซ  BUGS ๐Ÿซ 

  • ngl, the heuristics of deroff(1) used to excise formatting information are imperfect. yeah, imperfect, not me being dramatic. ๐Ÿ˜ญ
  • the spelling list's coverage is uneven; in particular biology, medicine, and chemistry, and perforce proper names, not to mention languages other than English, are covered very lightly. so don't come for it about your niche biochem fave, okay? ๐Ÿ™ˆ

okay that's the whole SPELL(1) page, bestie โ€” the footer is literally just SPELL(1), no version/date lore, and I respect the minimalist queen energy. ๐Ÿ’…โœจ