Wikipedia:AutoWikiBrowser/Typos/Guide

From Wikipedia, the free encyclopedia

These are the typo regular expressions for RegExTypoFix and wikEd, development is now open to the public.

Please add to or improve these regular expressions!

Contents

[edit] Adding/changing a misspelling

  • If you don't know how to make a change yourself, suggest it here, where a knowledgeable user will add it for you and perhaps improve it.
  • Avoid having a rule detect a correct spelling of any word ("false positive")
  • Check the Rejected Words list
  • Aim to have a single regular expression for each word if possible.
  • Keep in mind every addition/possibility of a word taxes more CPU and slows the scanning process
  • Update the rule name if you change something that affects it
  • In changing or adding a rule, edit only the appropriate section of this page, rather than the whole (large and getting larger!) page, which also taxes CPU and bandwidth.
  • Remember that only typos outside of wikimarkup are fixed, so all rules to fix for example, a template call will not work.

[edit] Writing regexes

  • Don't use quantifiers * and + with anything other than \s or a single letter. Don't use them at all, if possible. Quantifiers put extra strain on CPU and are prone to do not what you expect them to.
  • Test regexes.
    • Test them with AWB regex tester or something similar before adding here.
    • Test them with AWB or WikiEd immediately after you added them. If they don't work, remove first, analyze later.

[edit] TODO:

  • Remove duplications.
  • Expand regular expressions to accept more suffixes (e.g., "-ing" "-ed" "-able") and prefixes.
    • Keep in mind some regular expressions purposely correct only certain versions of a word to avoid false positives. These should be marked with an underscore character "_" at the beginning or end of the word= entry.
  • Remove any rare words.

[edit] Typo list

All changes to this list are live. AWB loads directly from this list whenever someone invokes the RETF option.