MWIC(1)
π NAME π
okay bestie, welcome to the MWIC(1) manual β this page is all about mwic, aka Misspelled Words In Context β¨ it's giving βspell-checker that shows the receipts in context,β and honestly? iconic.
π¦ SYNOPSIS π¦
mwic [-l lang] [option...] [file...]
πΈ DESCRIPTION πΈ
mwic is a spell-checker that groups possible misspellings together and shows them in their contexts π. This is useful for checking technical documents, which often contain words that are not included in standard dictionaries. No cap β it's literally built for the weird-word girlies.
β¨ OPTIONS β¨
-llang,--languagelang β spell-check for this language. The default isenπ--list-languagesβ print list of available languages π--blacklistfile β treat words from the external dictionary as misspelled. The dictionary can be in the format used by Lintian, or in the format used by codespell, or in the format used by kde-spellcheck (part of kde-dev-scripts); or it can be plain newline-separated word list. This option can be used multiple times π«Ά--camel-caseβ split camel-cased compound words. For example, treateggBaconAndSpamas 4 separate words π«--input-encodingenc β assume this input encoding. The default isUTF-8:replace(UTF-8 encoding with error handler replacing malformed characters withU+FFFD) π-ffmt,--output-formatfmt β if fmt isplain, output plain text verbatim and highlight misspellings with the^character. This is the default if stdout is not a terminal. If fmt iscolor, escape control characters and highlight misspellings with colors. This is the default if stdout is a terminal π-r,--reverseβ print words in reverse order, that is, the most common words first π₯--compactβ omit blank lines in output π--limitn β assume that words that occurred more than n times are spelled correctly π--max-context-widthn β limit context width to n characters. The default is30β--suggestn β suggest up to n corrections π-h,--helpβ show help message and exit π¦--versionβ show version information and exit πΈ
πΏ ENVIRONMENT πΏ
PAGERβ if stdout is a terminal,mwicpipes the output through$PAGER. The default ispager(if it exists) ormoreπLESSβ if this variable is unset,mwicsets it to-FX, or to-FXRif the output is in color β¨LVβ if this variable is unset, and the output is in color,mwicsets this variable to-cπ
ποΈ FILES ποΈ
Spell-checking can be eased by using dictionaries of commonly misspelled words. mwic doesn't ship with one, but it can use a number of dictionaries from third-party projects:
- Lintian:
- Linux kernel:
- codespell:
- kde-dev-scripts:
π EXAMPLE π
$ mwic --blacklist /usr/share/lintian/data/spelling/corrections --compact rfc1927.txt
heirarchical:
| β¦g paper clips vs small ones; heirarchical assembly
^^^^^^^^^^^^
multipart:
| β¦tes the degree of binding of multipart documents:
^^^^^^^^^
reycled:
| 1) staples could be reycled for a small credit
^^^^^^^
...
EMail, edu, isi:
| EMail: rogers@isi.edu
^^^^^ ^^^ ^^^
electonic:
| drawer of the electonic desk on home PCs
| 3) electonic staples should have a standaβ¦
^^^^^^^^^
π SEE ALSO π
also check spellintian(1) and codespell(1); and βEnglish for software localisationβ at <http://jbr.me.uk/linux/esl.html> by Justin B Rye π
this page is from mwic version 0.7.10, dated 2023-02-23, and it's the MWIC(1) manual β periodt, go spell-check something cute π
π¦ where this page comes from
- nixos 26.05: mwic 0.7.10
- nixpkgs unstable: mwic 0.7.10
- opensuse-leap 16.0: mwic 0.7.10-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms