SPELL(1)
π spell(1) β the manual, but make it a group chat π
okay so real talk, this page is from the User Contributed Perl Documentation corner of the manual-verse (iykyk), and it's literally just spell, a whole little program that scans a file for misspelled words. she's not fancy, she's not flashy, she's just doing her job and doing it well. periodt. π
β¨ NAME β¨
spell β scan a file for misspelled words π¦
β¨ SYNOPSIS β¨
spell [-d dict] [-c|-x] [-v] [-i] [+extra_list] [file ...]
β¨ DESCRIPTION β¨
so here's the vibe: spell reads in a file and splits it into words, then compares each unique word against a dictionary file. and bestie, listen β all comparisons and reporting are done in lower case, no cap. the "misspelled" words get printed on standard output, and that's it, that's the whole personality. π
the options are as follows, and yes we're going through every single one:
-dfile β use file as the dictionary instead of the default system dictionary. like, be your own lexicographer, go off. π-cβ check the dictionary for "close" matches. each misspelled word will be followed by a list of indented close matches. and what counts as a close match? a close match is one where it matches a word in the dictionary if1character is deleted, or1letter is added, or any2adjacent characters are swapped. that's the whole rule, fr fr. π-xβ same as-cabove. literally the same. she's an alias, she's an icon, she's a legend. β¨-vβ show suffix expansion. some words are inferred by modifying words in the dictionary, and this shows you how that was done on some of your words, so you can double check if it did it right. lowkey the most useful flag here ngl β like, trust but verify. π-iβ use interactively. prompts for words, processes words after each line instead of after whole file(s), and quits at the first blank line. > do not use on a file. this is for typing in words from standard in, okay? also prints descriptive titles and has a very basic pager. she's giving CLI wizard energy, and the pager is basic but it's hers. π§+extra_list β add the file extra_list to the list of dictionaries to check against. stack those dictionaries, bestie, build your own word empire. πΈ
flags may be grouped, e.g. spell -icv, and can be specified in any order. chaotic? maybe. flexible? absolutely. main character energy. π
if no file is specified, words to check will be read from standard input. but β and this is important β the -i flag should be used if you're going to type words in by hand. don't try to be clever, just use -i. π«Ά
β¨ SEE ALSO β¨
ispellβ the other one, the classic one, the β¨vintageβ¨ one/usr/dict/wordsβ the word list, in its natural habitat
and okay, a little lore: the author (we'll get to him) says "I did not create a word list, but found one without restriction (compiled for linux) at:" β and then hits you with this absolute antique:
"ftp://ftp.cs.unc.edu/pub/users/faith/linux/linux.words.2.tar.gz"
an FTP URL in the year of our lord. iconic. ancient. protect her. ποΈ
β¨ RESTRICTIONS β¨
okay so this is the "manage your expectations" section, and honestly? respect. π«‘
this program is only as good as your word list (and maybe not that good β use the -v switch at least once. that's not a suggestion, that's a vibe check). the author did not compile the word list and cannot vouch for it. and like, remember this is a tool and not a replacement for your own thinking. π§ β¨
anyone who depends wholly on a spell checker without doing their own proofreading deserves what they get (or worse). I accept no liability for any consequences of using this program.
π the delivery. the drama. the accuracy. no notes.
also, this program only finds the misspelled words β it is up to you to decide if they are really wrong and replace them yourself. she finds the problem, you fix the problem. teamwork. π«Ά
and a lil dev note: the author's focus in writing this program was portability, therefore he did not use some things that may have speeded things up. however perl itself is quick enough that it still does pretty good even with the slower method. slay for portability, honestly. π
β¨ BUGS β¨
"I know of no bugs at this time." πππ
(he says, with a couple of things that may make it run a bit faster and documentation that may be made a little clearer. so like, not bugs. just opportunities. growth mindset. π¦)
β¨ AUTHOR β¨
Gregory L. Snow, (Greg), snow@biostat.washington.edu β the man, the myth, the perl enjoyer. ππ
β¨ COPYRIGHT and LICENSE β¨
this program is copyright (c) Gregory L. Snow 1999. π
this program is free and open software. you may use, modify, or distribute this program (with or without modifications) to your hearts content. however he takes no responsibility for your use or misuse of this program. fair. balanced. legally sound. as it should be. π
and that's the whole page, bestie!! this one's from perl v5.42.2, dated 2026-02-15, and it was literally the most fun a manual page has ever been. go spell-check something and then go proofread it yourself like a responsible legend. mwah. πβ¨ππ¦
π¦ where this page comes from
- alpine 3.24: perl-power-tools-doc 1.053-r1 Β· GPL-2.0-or-later AND Artistic-1.0-Perl AND Artistic-2.0 AND BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms