WME Validator Localization Package for NY (& rest of USA)
Over the past couple of weeks I've been working with several other editors; xanderb, tythesly, dsfargeg, and timbones to develop this localization package to customize Validator for our guidelines and preferences in NYC, NYS, and the rest of the country.
The package can be downloaded from Greasyfork here j.mp/NYvalidator
You must have WME Validator installed for this to function.
This script is still young and may contain errors, and false positives. If you see it highlighting anything which should not be highlighted (ie it is mapped corectly), please reach out to the authors. We will investigate and try to update this package accordingly.
The authors (tythesly, dsfargeg, and PesachZ) can be contacted via PM.
This package has been designed to not use either of the custom check slots available in Validator through the settings panel. The checks which are specific to NYS are designed so they only highlight segments in NY.
The only NYS specific check which is active everywhere by necessity due to its nature is #131 (segment state check). When editing outside NYS this check can be easily really disabled by typing in the Reported As: field of Validators search settings (click the magnifying glass). (See screenshot)
Therefore you may keep this package installed and running always, whenever you are using Validator, without it interfering with your editing.
As always with any validator highlight, the items highlighted are meant to draw you attention to a possible problem for you to investigate. If after investigating you determine that the map is setup correctly as is, you do not need to change the map "just to make Validator happy". If this does happen please bring it to our attention, so we can fine tune the filters.
I hope using the NY Localization package, will make editing more efficient, and accurate.
https://wiki.waze.com/wiki/images/d/d4/ ... _check.png
Complete List of Checks for United States (v1.1.8)
See Settings->About->Available checks
Localization Fallback Rules:
New York State, USA → United States
82 checks are enabled for United States:
New Local Checks
34 checks are disabled for United States:
The package can be downloaded from Greasyfork here j.mp/NYvalidator
You must have WME Validator installed for this to function.
This script is still young and may contain errors, and false positives. If you see it highlighting anything which should not be highlighted (ie it is mapped corectly), please reach out to the authors. We will investigate and try to update this package accordingly.
The authors (tythesly, dsfargeg, and PesachZ) can be contacted via PM.
This package has been designed to not use either of the custom check slots available in Validator through the settings panel. The checks which are specific to NYS are designed so they only highlight segments in NY.
The only NYS specific check which is active everywhere by necessity due to its nature is #131 (segment state check). When editing outside NYS this check can be easily really disabled by typing
Code: Select all
!131, *
Therefore you may keep this package installed and running always, whenever you are using Validator, without it interfering with your editing.
As always with any validator highlight, the items highlighted are meant to draw you attention to a possible problem for you to investigate. If after investigating you determine that the map is setup correctly as is, you do not need to change the map "just to make Validator happy". If this does happen please bring it to our attention, so we can fine tune the filters.
I hope using the NY Localization package, will make editing more efficient, and accurate.
https://wiki.waze.com/wiki/images/d/d4/ ... _check.png
Complete List of Checks for United States (v1.1.8)
See Settings->About->Available checks
Localization Fallback Rules:
New York State, USA → United States
82 checks are enabled for United States:
New Local Checks
- Not New York (#131)
The segment matched custom conditions.
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): wiki
Current configuration for United States:[/size]Code: Select all
"131.params": { "titleEN": "Not New York", "problem": "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/", },
- Improper Exit Naming (#132)
This segment has an entrance / exit name which does not follow the USA standards for exit naming, or is a ramp with non entrance / exit name.
For numbered exits use "Exit(s) ##: Name / Other Name". For entrances & unnumbered exits use "to Name / Other Name". Separate all shields and names with slashes (/) and spaces. Verify if this is supposed to be a ramp: wiki
Current configuration for United States:[/size]Code: Select all
"132.params": { "titleEN": "Improper Exit Naming", "problemEN": "This segment has an entrance / exit name which does not follow the USA standards for exit naming, or is a ramp with non entrance / exit name", "solutionEN": "For numbered exits use \"Exit(s) ##: Name / Other Name\". For entrances & unnumbered exits use \"to Name / Other Name\". Separate all shields and names with slashes (/) and spaces. Verify if this is supposed to be a ramp", "template": "${rank}#${street}", "regexp": "/4#(?!(Exit|to|$))|( |\\b)(To|[Ee](?!xits? [\\dA-Z-]+:)[Xx][Ii][Tt][Ss]?( [Tt][Oo])?:?|to:|TO|Exits? \\d+[\\w\\-]*( \\/ | \\- | |:[ \\w]*:))( |\\b|$)/", },
- Improper City Naming (#133)
This segment has a generated city name which is not its' proper name.
Fill out the form to have teh city renamed, and contact your SM or RC to finalize the process: wiki
Current configuration for United States:[/size]Code: Select all
"133.params": { "titleEN": "Improper City Naming", "problemEN": "This segment has a generated city name which is not its' proper name", "solutionEN": "Fill out the form to have teh city renamed, and contact your SM or RC to finalize the process", "template": "${city}#${altCity[#]}", "regexp": "/(^|#)Greater [\\w -]+ Area|[\\w -]+\\(\\d+\\)(#|$)/", },
- Potential Incorrect BANNER Abbreviation (#134)
Name abbreviation may be incorrect. Alternative routes should be labeled ALT and abbreviations ALT, BUS, BYP, CONN, LOOP, SCN, SPUR, or TRUCK should be in ALL CAPS.
Change abbreviation to ALT, BUS, BYP, CONN, LOOP, SCN, SPUR, or TRUCK in ALL CAPS.
Current configuration for United States:[/size]Code: Select all
"134.params": { "titleEN": "Potential Incorrect BANNER Abbreviation", "problemEN": "Name abbreviation may be incorrect. Alternative routes should be labeled ALT and abbreviations ALT, BUS, BYP, CONN, LOOP, SCN, SPUR, or TRUCK should be in ALL CAPS", "solutionEN": "Change abbreviation to ALT, BUS, BYP, CONN, LOOP, SCN, SPUR, or TRUCK in ALL CAPS", "template": "${street}#{altStreet[#]}", "regexp": "/!?[0-9].+(Alt|Bus(iness)?|Byp|Conn?|L(oo)?p|Scn|Spu?r|Truck)\\b/", },
- NYS Minimum Lock Levels (#136)
NYC has higher locking levels than the rest of NYS. Ferries and RR should be locked as well.
Lock the segment to at least; PS>=3, mH>=4, MH>=5, FW>=5, Ramp>=highest connection, Ferry>=5, RR>=2: wiki
Current configuration for United States:[/size]Code: Select all
"136.params": { "titleEN": "NYS Minimum Lock Levels", "problemEN": "NYC has higher locking levels than the rest of NYS. Ferries and RR should be locked as well", "solutionEN": "Lock the segment to at least; PS>=3, mH>=4, MH>=5, FW>=5, Ramp>=highest connection, Ferry>=5, RR>=2", "template": "${state}:${city}#${type}:${lock}", "regexp": "/^New York:((New York|Manhattan|Queens|Brooklyn|Bronx|Staten Island)#(6:[1-4]|7:[1-3]|2:[12])|.*#(15:[1-4]|18:1))/", },
- Improper Cardinal Usage (#137)
This check is also compatible with Nebraska state roads usage.
This name contains a cardinal direction (NEWS) which does not match wiki guidelines.
If this cardinal should be spoken as a direction by TTS, make sure it has space on either side of it. If this cardinal should be spoken by TTS as a letter, follow it with a period. All cardinals should be capitalized: wiki
Current configuration for United States:[/size]Code: Select all
"137.params": { "titleEN": "Improper Cardinal Usage", "problemEN": "This name contains a cardinal direction (NEWS) which does not match wiki guidelines", "solutionEN": "If this cardinal should be spoken as a direction by TTS, make sure it has space on either side of it. If this cardinal should be spoken by TTS as a letter, follow it with a period. All cardinals should be capitalized", "template": "${street} ${altStreet[#]}", "regexp": "/(^| )([NEWS]?[news][NEWS]?|[\"']?(([ns]|N(?!-\\d{1,3}\\b)|S(?!-\\d{1,2}[A-Z]\\b))[EeWw]?|[EeWw])['\":;-]|[\"']([NnSs][EeWw]?|[EeWw])['\":-]?)(\\b|\\d| |$)/", },
- Incorrect Hwy Name Prefix (#138)
NY follows national guidelines for hwy naming prefixes (I-##, US-##, CR-##, FS-##), and uses NY-## for state routes.
Rename the Street or Alt Street: wiki
Current configuration for United States:Edited 2015-10-10[/size]Code: Select all
"138.params": { "titleEN": "Incorrect Hwy Name Prefix", "problemEN": "NY follows national guidelines for hwy naming prefixes (I-##, US-##, CR-##, FS-##), and uses NY-## for state routes", "solutionEN": "Rename the Street or Alt Street", "template": "${state}:${street}#${altStreet[#]}", "regexp": "/^New York:.*\\b((([Uu]\\.? ?( S|S(?!-\\d)[- ]|S\\.|s\\.?)|[Nn](?! \\d)(ew )?(y|Y- |[Yy]ork)? ?|[Ss]tate |[Ss] ?[RrHh]|[Cc]o(unty)? ?|[Rr]o?u?[Tt]e?|[Ff](s|S(?!-\\d)|[Rr]))([Ss][Pp][Uu][Rr]|[Rr]((ou)?(te)?|(oa)?d)|[Hh]((igh)?[Ww]a?[Yy])?)?|Ny|NY=|I- |[Cc]([HhrSs]|R(?!-\\d))|([Ii]|[NnCcUu][YyRrSs])[ =])[- ]{0,2}\\d+|([Uu] ?[Ss][- ]?)?([Hh](igh)?[Ww]a?[Yy] )?[Ff] ?([Ss] ?|[Ss]? ?[Rr])(oa)?d? )/", },
- Bad TTS Street name (#139)
Streets that start with St and Dr result in TTS reading Street or Drive.
Add a period after St or Dr at the beginning of the street name: wiki
Current configuration for United States:[/size]Code: Select all
"139.params": { "titleEN": "Bad TTS Street name", "problemEN": "Streets that start with St and Dr result in TTS reading Street or Drive", "solutionEN": "Add a period after St or Dr at the beginning of the street name", "template": "${street}#${altStreet[#]}", "regexp": "/((^|#|(\\/|[NEWS]|Rue|Place)\\s)(St|Dr)|(Jr|Rev)) /", },
- Incorrectly abbreviated street name (#171)
Updated to no longer flag N. cardinals, and checks against the recommended abbreviations in the wiki.
The street name has incorrect abbreviation, or character.
Check upper/lower case, a space before/after the abbreviation and the accordance with the abbreviation table. Remove any comma (,), backslash (\), or semicolon (;): wiki
Current configuration for United States:Edited 2015-10-10[/size]Code: Select all
"171.params": { "regexp": "/((?!(\\bPhila|\\bPenna|.(\\bWash|\\bCmdr|\\bProf|\\bPres)|..(Adm|\\bSte|\\bCpl|\\bMaj|\\bSgt|\\bRe[vc]|\\bR\\.R|\\bGov|\\bGen|\\bHon|\\bCpl)|...(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|...(#| )[NEWSR])).{5}\\.|(?!(hila|enna|(\\bWash|\\bCmdr|\\bProf|\\bPres)|.(\\bAdm|\\bSte|\\bCpl|\\bMaj|\\bSgt|\\bRe[vc]|\\bR\\.R|\\bGov|\\bGen|\\bHon|\\bCpl)|..(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|..(#| )[NEWSR])).{4}\\.|(?!(ila|nna|(ash|mdr|rof|res)|(\\bAdm|\\bSte|\\bCpl|\\bMaj|\\bSgt|\\bRe[vc]|\\bR\\.R|\\bGov|\\bGen|\\bHon|\\bCpl)|.(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|.(#| )[NEWSR])).{3}\\.|(?!(la|na|(sh|dr|of|es)|(dm|te|pl|aj|gt|e[vc]|\\.R|ov|en|on|pl)|(\\bSt|\\b[JSD]r|\\bLt|\\bFt)|(#| )[NEWSR])).{2}\\.|(#|^)[^NEWSR]?\\.)|(((?!\\bO).|#|^)'(?![sl]\\b)|(?!\\bNat).{3}'l|(#|^).{0,2}'l)|(Dr|St)\\.(#|$)|,|;|\\\\|((?!\\.( |#|$|R))\\..|(?!\\.( .|#.|$|R\\.))\\..{2}|\\.R(#|$|\\.R))|[Ee]x(p|w)y|Tunl|Long Is\\b|Brg/", "problemEN": "The street name has incorrect abbreviation, or character", "solutionEN": "Check upper/lower case, a space before/after the abbreviation and the accordance with the abbreviation table. Remove any comma (,), backslash (\\), or semicolon (;)", },
- No lock on Freeway (#150)
The Freeway segment should be locked at least to Lvl 5.
Lock the segment.
Current configuration for United States:[/size]Code: Select all
"150.params": { "n": 5, },
- No lock on Major Highway (#151)
The Major Highway segment should be locked at least to Lvl 4.
Lock the segment.
Current configuration for United States:[/size]Code: Select all
"151.params": { "n": 4, },
- No lock on Minor Highway (#152)
The Minor Highway segment should be locked at least to Lvl 3.
Lock the segment.
Current configuration for United States:[/size]Code: Select all
"152.params": { "n": 3, },
- No lock on Primary Street (#154)
The Primary Street segment should be locked at least to Lvl 2.
Lock the segment.
Current configuration for United States:[/size]Code: Select all
"154.params": { "n": 2, },
- No lock on Ramp (#153)
Ramps generally connect to Freeways, so they should be locked to Lvl 5. If not connected to a freeway, verify that this meets the criteria to be a ramp.
Lock the segment, change it to a non-ramp type, or just verify it should be a ramp: wiki
Current configuration for United States:[/size]Code: Select all
"153.params": { "n": 5, "problemEN": "Ramps generally connect to Freeways, so they should be locked to Lvl 5. If not connected to a freeway, verify that this meets the criteria to be a ramp", "solutionEN": "Lock the segment, change it to a non-ramp type, or just verify it should be a ramp", },
Re: WME Validator Localization Package for NY (& rest of USA