Back to LanguageTool Homepage - Privacy - Imprint

Wikipedia specific MOS rules + "Due to the fact that" fix


(TryHardDieHard) #1
<rule id="ID" name="Replace "#"">

 <pattern>
  <token>#</token>
 </pattern>
 <message>Replace "#" with <suggestion>No.</suggestion> or <suggestion>number</suggestion> when referring to numbers or rankings.</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Number_signs</url>
 <example correction=''><marker>#</marker></example>
 <example>number</example>
 <example>No.</example>
</rule>
<rule id="ID" name="Replace "12 pm" with "noon"">

 <pattern>
  <token>12</token>
  <token>pm</token>
 </pattern>
 <message>Replace "12 pm" with <suggestion>noon</suggestion> for clarity.</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Time_of_day</url>
 <example correction=''><marker>12 pm</marker></example>
 <example>noon</example>
</rule>
<rule id="ID" name="Replace "12 am" with "midnight"">

 <pattern>
  <token>12</token>
  <token>am</token>
 </pattern>
 <message>Replace "12 am" with <suggestion>midnight</suggestion> for clarity.</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Time_of_day</url>
 <example correction=''><marker>12 am</marker></example>
 <example>midnight</example>
</rule>
<rule id="ID" name="Replace "currently" with a specific date">

 <pattern>
  <token>currently</token>
 </pattern>
 <message>Replace "currently" with a specific date, as "currently" will change over time.</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Current</url>
 <example correction=''><marker>currently</marker></example>
 <example>date</example>
</rule>
<rule id="ID" name="Replace "wasn't" with "was not".">

 <pattern>
  <token>wasn</token>
  <token>'</token>
  <token>t</token>
 </pattern>
 <message>Replace "wasn't" with "was not".</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Contractions</url>
 <example correction=''><marker>wasn't</marker></example>
 <example>it's</example>
</rule>
<rule id="ID" name="Replace "it's" with "it is".">

 <pattern>
  <token>'</token>
  <token>s</token>
 </pattern>
 <message>Replace "it<suggestion>s" with </suggestion>it is'.</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Contractions</url>
 <example correction=''>it<marker>'s</marker></example>
 <example>it is</example>
</rule>
<rule id="ID" name="Correct "Do to that fact that".">

 <pattern>
  <token>Do</token>
  <token>to</token>
  <token>the</token>
  <token>fact</token>
  <token>that</token>
 </pattern>
 <message>Use <suggestion>due to</suggestion> or <suggestion>because of</suggestion> to fix spelling and readability of this sentence.</message>
 <url>https://public.wsu.edu/~brians/errors/dueto.html</url>
 <example correction=''><marker>Do to the fact that</marker></example>
 <example>Due to</example>
 <example>Because of</example>
</rule>

These are fairly wikipedia-centric, so adding them to "Wikicheck" seems like the best approach.


(Daniel Naber) #2

Thanks, I've added these and they should become active on http://community.languagetool.org/wikiCheck/?lang=en in 24 hours. Please let me know if that doesn't work. For future contributions, it would be great if you could use complete sentences as examples, as these are also displayed in our application.


(TryHardDieHard) #3

Will do. Thanks.


(TryHardDieHard) #4

I forgot to add a space after the two examples. Please use the code below for a corrected version.

<rule id="ID" name="Replace "#"">

 <pattern>
  <token>#</token>
 </pattern>
 <message>Replace "#" with <suggestion>No. </suggestion> or <suggestion>number </suggestion> when referring to numbers or rankings.</message>
 <url>https://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style#Number_signs</url>
 <example correction=''><marker>#</marker></example>
 <example>number </example>
 <example>No. </example>
</rule>

(Daniel Naber) #5

Thanks, I've changed that.