v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Editing Dwarf Fortress Wiki:AutoWikiBrowser/Typos

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.


The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
  
 
Typo-fixing regex list for AutoWikiBrowser. Copied from [https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos]. see that page for more details.
 
Typo-fixing regex list for AutoWikiBrowser. Copied from [https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos]. see that page for more details.
 
Modifications:
 
* skip converting hyphens to en-dashes (very common)
 
* skip fixing hyphenated adverbs (very common)
 
* don't flag redundant words
 
* don't replace wrong apostrophe symbols
 
  
 
===New additions===
 
===New additions===
Line 134: Line 128:
 
<Typo word="Corps of Engineers" find="\bCorp\s+of\s+Engineers\b" replace="Corps of Engineers"/>
 
<Typo word="Corps of Engineers" find="\bCorp\s+of\s+Engineers\b" replace="Corps of Engineers"/>
 
<!--"0–0" added January 2020 [[Special:Diff/937135347]]-->
 
<!--"0–0" added January 2020 [[Special:Diff/937135347]]-->
 +
<Typo word="0–0" find="\b(\d+)(?<=\s\d+)[-—](\d+)(?=\s+(?:a(?:cademic|dvantage|gainst|t|way)|career|d(?:ef(?:eat|icit)|raw)|edge|final|game|home|in|l(?:ead|oss)|mark|o(?:n|ver(?:time)?)|r(?:ecord|out|un)|sc(?:hool\s+year|ore(?:line)?)|s(?:e(?:asons?|ries)|h(?:ootout|utout))|s(?:plit|tart|weep)|t(?:erm|ie|o|riumph)|upset|v(?:ictory|ote)|wi(?:n|th))\b)(?<!\b7\d7-\d+)" replace="$1–$2"/>
 
<!--Typo word="2–1" find="\b(\d+)(?<=\s\d+)[-—](\d+)(?=[,\.;\n\)])(?<!\b(?:Boeing|Columbia|Dash|LCCN|I(?:EC|NCITS|S[BS]N|SO(?:/IEC)?)|ANSI(?:/VITA)?|FIPS|N(?:ACA|[oO]\.?:?)|[nN]umber:?|#:?|P(?:art|ublication)|S(?:ection|/[nN]:?)|s/[nN]:?|VITA|Widow)\s+\d+[-—]\d+)(?<!\b(?:\d(?:[-—][02-9]\d|\d[-—][02-9]\d\d)|\1[-—]\1\b|7\d7-\d+))" replace="$1–$2"/-->
 
<!--Typo word="2–1" find="\b(\d+)(?<=\s\d+)[-—](\d+)(?=[,\.;\n\)])(?<!\b(?:Boeing|Columbia|Dash|LCCN|I(?:EC|NCITS|S[BS]N|SO(?:/IEC)?)|ANSI(?:/VITA)?|FIPS|N(?:ACA|[oO]\.?:?)|[nN]umber:?|#:?|P(?:art|ublication)|S(?:ection|/[nN]:?)|s/[nN]:?|VITA|Widow)\s+\d+[-—]\d+)(?<!\b(?:\d(?:[-—][02-9]\d|\d[-—][02-9]\d\d)|\1[-—]\1\b|7\d7-\d+))" replace="$1–$2"/-->
 
<Typo word="north–south" find="\b[nN]orth(?<=(?:,|\b(?:[a-z]+|The))\s+\w+)(east|west)?[-/][sS]outh(east|west)?\b(?!\s+[A-Z])" replace="north$1–south$2"/>
 
<Typo word="north–south" find="\b[nN]orth(?<=(?:,|\b(?:[a-z]+|The))\s+\w+)(east|west)?[-/][sS]outh(east|west)?\b(?!\s+[A-Z])" replace="north$1–south$2"/>
Line 303: Line 298:
 
<Typo word="Hand-to-hand" find="\b([hH])and\s+to\s+hand\b(?=\s+(?:b(?:attles?|rawl(?:er|ing|s?))|co(?:mbat(?:ants?|s?)|ntacts?)|f(?:ight(?:er|ing|s?)|oreplay)|kill(?:er|ing|s?)|s(?:cuffles?|truggles?)|training|w(?:arfares?|eapons?)))" replace="$1and-to-hand"/>
 
<Typo word="Hand-to-hand" find="\b([hH])and\s+to\s+hand\b(?=\s+(?:b(?:attles?|rawl(?:er|ing|s?))|co(?:mbat(?:ants?|s?)|ntacts?)|f(?:ight(?:er|ing|s?)|oreplay)|kill(?:er|ing|s?)|s(?:cuffles?|truggles?)|training|w(?:arfares?|eapons?)))" replace="$1and-to-hand"/>
 
<Typo word="Above-mentioned" find="\babove(?<=\b[tT]he\s+above)\s+mentioned\b" replace="above-mentioned"/>
 
<Typo word="Above-mentioned" find="\babove(?<=\b[tT]he\s+above)\s+mentioned\b" replace="above-mentioned"/>
 +
<Typo word="Easily" find="\b([eE])asill?y-(?=[a-z]+(?:able\b|ed\b))(?![a-z]+-)" replace="$1asily "/>
 
<Typo word="Smallpox" find="\b([sS])mall[–‑−—―\s]+po(?:cks|x)\b" replace="$1mallpox"/>
 
<Typo word="Smallpox" find="\b([sS])mall[–‑−—―\s]+po(?:cks|x)\b" replace="$1mallpox"/>
 
<Typo word="Dependent upon" find="\b([dD])ependant\s+upon\b" replace="$1ependent upon"/>
 
<Typo word="Dependent upon" find="\b([dD])ependant\s+upon\b" replace="$1ependent upon"/>
Line 629: Line 625:
 
<Typo word="#x000f3;" find="&#x000[fF]3;" replace="ó"/>
 
<Typo word="#x000f3;" find="&#x000[fF]3;" replace="ó"/>
 
<Typo word="#x000E9;" find="&#x000[eE]9;" replace="é"/>
 
<Typo word="#x000E9;" find="&#x000[eE]9;" replace="é"/>
 +
</syntaxhighlight>
 +
 +
====New: remove redundant words====
 +
:''Per [[WP:TERSE]], Articles should use only necessary words. This does not mean using fewer words is always better; rather, when considering equivalent expressions, choose the more concise.''
 +
<syntaxhighlight lang="xml">
 +
<Typo disabled="remain" find="\bcontinue\s*to\s*remain\b" replace="remain"/>
 +
<Typo word="Debuted" find="\bfirst\s+d([eé])but(e[ds]?|ing)\b" replace="d$1but$2"/>
 +
<Typo word="been found" find="been\s+(?:found\s+previously|previously\s+found)" replace="been found" />
 +
<Typo word="rule of thumb" find="\bgeneral\s+rule(s)?[-–‑−—―\s]+of[-–‑−—―\s]+thumb\b" replace="rule$1 of thumb"/>
 +
<Typo word="fellow_" find="\bfellow\s+(band\s?mates?|c(?:lass\s?mates?|rew\s?mates?|o(?:[-–‑−—―\s]+workers?|lleagues?|m(?:patriots?|rades?)|workers?))|team\s?mates?)\b" replace="$1"/>
 +
<Typo word="fact" find="\bactual\s+fact\b" replace="fact"/>
 +
<Typo word="past" find="\bpast\s+(histories|memories|records)\b" replace="$1"/>
 +
<Typo word="estimated at" find="\b([eE])stimated\s+at\s+(?:a(?:bout|pprox(?:imately|\.)|round)|roughly)\b" replace="$1stimated at"/>
 +
<Typo word="Merge/Combined/Joined" find="\b([cC]ombin(?:e[ds]?|ing)|[jJ]oin(?:ed|ing|s?)|[mM]erg(?:e[ds]?|ing))\s+together\b" replace="$1"/>
 +
<Typo word="result" find="\bend\s+result\b" replace="result"/>
 +
<Typo word="outcome" find="\b(?:end|final)\s+outcome\b" replace="outcome"/>
 +
<Typo word="eliminate (1)" find="\b(?:absolutely|completely|entirely|fully|totally)\s+eliminat(e[ds]?|ing)\b" replace="eliminat$1"/>
 +
<Typo word="eliminate (2)" find="\b([eE])liminat(e[ds]?|ing)\s+(?:absolutely|completely|entirely|fully|totally)\b" replace="$1liminat$2"/>
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 4,084: Line 4,098:
 
====Punctuation====
 
====Punctuation====
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 +
<Typo word="'s" find="(?<=\w)[;’´ˈ׳᾿‘′Ꞌꞌ`]s\b(?<!'\w[;’´ˈ׳᾿‘′Ꞌꞌ`]s|&[#\w]{1,99};s)" replace="'s"/><!--semicolon or apostrophe-like symbols for apostrophe; ignore potential wiki markup, and "&xxx;" (HTML entities)-->
 
<Typo word="Hers/Ours/Theirs/Yours" find="\b([hH]e|[oO]u|[tT]hei|[yY]ou)r[';’´ˈ׳᾿‘′Ꞌꞌ`]s\b" replace="$1rs"/>
 
<Typo word="Hers/Ours/Theirs/Yours" find="\b([hH]e|[oO]u|[tT]hei|[yY]ou)r[';’´ˈ׳᾿‘′Ꞌꞌ`]s\b" replace="$1rs"/>
 
<Typo word="e.g." find="\b([eE]\.g)([,\s])" replace="$1.$2"/>
 
<Typo word="e.g." find="\b([eE]\.g)([,\s])" replace="$1.$2"/>

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)