Skip to content

Fixes common grammar and usage errors in Stack Exchange posts with the click of a button

Notifications You must be signed in to change notification settings

viziionary/Stack-Exchange-Editor-Toolkit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 

Repository files navigation

Stack Exchange Editor Toolkit

View on Stack Apps

About

This userscript adds a button to edit pages on Stack Exchange sites that fixes most common grammatical and usage errors with a click and automatically composes an editing summary based on the changes made.

Usage

Example Usage

Rules

The rules included in the standard script are as follows:

  • Uppercases lowercase "i"s in posts
  • Corrects to proper spelling/capitalization of "Stack Overflow" and "Stack Exchange" in order to fit the legal naming requirements
  • Expands "SO" and "SE" to "Stack Overflow" and "Stack Exchange," respectively
  • Corrects to proper spelling/capitalization of...
  • JavaScript
  • JSFiddle
  • jQuery
  • HTML
  • CSS
  • JSON
  • AJAX
  • AngularJS
  • PHP
  • Upvote/Downvote
  • Capitalizes the first letter of new lines
  • Removes common greetings
  • Removes "thanks" and similar phrases
  • Removes "Edit:" and similar modifiers
  • Replaces the now-banned mysite.domain with example.domain

Expandability

The script can be easily expanded by adding rules to the edits dictionary with the format given below:

anArbitraryName: {
    expr: /aRegularExpressionForMatching/,
    replacement: "What to replace it with (may include captured text like $1)",
    reason: "an unpunctuated reason starting with a lowercase letter that will be formatted automatically and inserted into the edit summary"
},

If you fix any of my rules or come up with new ones, feel free to make a pull request.

If you notice any odd behavior of the script, please report an issue (this may seem obvious, but odd behavior might not seem like a "bug" in the traditional sense).

About

Fixes common grammar and usage errors in Stack Exchange posts with the click of a button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%