MWIC(1)

πŸ“¦
version 0.7.10 Β· 4 versions
, in nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 ✨

  • -l lang, --language lang β€” spell-check for this language. The default is en πŸ’…
  • --list-languages β€” print list of available languages 🌈
  • --blacklist file β€” 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, treat eggBaconAndSpam as 4 separate words 🐫
  • --input-encoding enc β€” assume this input encoding. The default is UTF-8:replace (UTF-8 encoding with error handler replacing malformed characters with U+FFFD) πŸ’œ
  • -f fmt, --output-format fmt β€” if fmt is plain, output plain text verbatim and highlight misspellings with the ^ character. This is the default if stdout is not a terminal. If fmt is color, 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 πŸŽ€
  • --limit n β€” assume that words that occurred more than n times are spelled correctly πŸ‘‘
  • --max-context-width n β€” limit context width to n characters. The default is 30 ⭐
  • --suggest n β€” 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, mwic pipes the output through $PAGER. The default is pager (if it exists) or more πŸ’–
  • LESS β€” if this variable is unset, mwic sets it to -FX, or to -FXR if the output is in color ✨
  • LV β€” if this variable is unset, and the output is in color, mwic sets 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:

πŸ“ 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