New York/Validator Discussion View history

Revision as of 17:15, 12 October 2015 by PesachZ (talk | contribs) (Created page with "Several NY editors have put together a [//j.mp/NYvalidator NY Localization Package for WME Validator] specialized for New York which will increase Validators effectiveness. Th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Several NY editors have put together a NY Localization Package for WME Validator specialized for New York which will increase Validators effectiveness. The packages serves two major functions:

  • While editing in NY, it highlights issues specific to NYS.
  • While editing anywhere else it highlights some national issues not included in the original script. It also fixes some built in validator checks so they are more accurate for US standards. (e.g. removes highlight from N. in a name).

NOTE:You must have the main script WME Validator installed for this package to function.

More information on the localization package, and a changelog showing updates, etc. is available on the scripts Greasyfork.org page.

A list explaining all the available checks is also posted in this forum.

You can bring up comments or questions about this in
 WME Validator Localization Package for NY (& rest of USA) forum topic.

It is highly recommended you install and keep this package running alongside WME Validator all the time.


Disabling individual checks

Each individual check in WME Validator has an identifying number displayed in the popup (or report).

Individual check highlights on the map can be turned off in the validator search settings by typing !###, * (### = the check number). To disable multiple highlights you can separate with commas for example !128, !131, * (make sure to leave the star (*) at the end so it allows everything else. These checks will still display in the left panel when clicking on a segment, or in a report.


To completely disable a check from the NY Localization Package, there is the option of editing the script code and commenting it out. For example if you primarily edit outside NY to disable check #131, you can in the script itself by commenting out the code for that check.

To fully disable check #131 in the script, you will have to update the script locally on your machine and enclose the check in comment codes (/*...*/). It should then look like this.

/*
  //  #131 ##Check that all segments have NY as state. This check is active everywhere.
  "131.enabled": true,
  "131.params": {
    "titleEN": "Not New York",
    "problemEN": "The segment is assigned to another state",
    "solutionEN": "Make sure you are editing in NY and change it. If you are editing outside NY you can disable this check by entering \"!131, *\" (without the quotes) in the Reported As: field of Validators search settings (magnifying glass)",
    "template": "${state}",
    "regexp": "!/^New York/"
  },
*/


Modifying individual checks

Alternatively you can modify your copy of the script updating the check to add in your state to the code, so it won't flag in your state(s) or in NY. For Example if you primarily edit in NY, NJ, CT, and CA, you can set the package to only alert you for segments showing a state name that is not one of those four states.

To add in your state(s) modify just the line that says regexp to include your state(s) exactly as they appear in WME. You will have to enclose the state names in parenthesis, and place a pipe (|) between each name like this. "regexp": "!/^(New York|New Jersey|Connecticut|California)/"

NOTE: if modifying the regex of other more complex checks, be sure you properly escape the code for use in the Javascript.