WME Road Name Helper NP

Check suffix and common word abbreviations without leaving WME

作者
kid4rm90s
今日安裝
0
安裝總數
4
評價
0 0 0
版本
2025.06.18.02
建立日期
2025-06-03
更新日期
2025-06-18
尺寸
27.4 KB
授權條款
MIT
腳本執行於

WME Road Name Helper NP

Description

WME Road Name Helper NP is a Tampermonkey/Greasemonkey userscript for the Waze Map Editor (WME). It assists editors by checking road name suffixes and common preceding words against standard abbreviations, providing real-time feedback and suggestions directly within the WME interface.

This script aims to improve data consistency and accuracy in Waze map data by guiding users to use official or community-agreed-upon abbreviations.


Features

  • 🛣️ Highway Suggestions:
    Highway codes (e.g. NH01 - रारा०१) are suggested only when you type the exact code (like NH01-).

  • ⬆️ Auto-Capitalization:
    Highway codes like nh01 are automatically capitalized to NH01.

  • 🟢 First Word Capitalization:
    Automatically capitalizes the first word in the road name.

  • ✂️ Prefix/Middle/Suffix Correction:
    Suggests corrections for abbreviations not just at the end (suffix), but also for words in the middle or prefix of the name (e.g. Mount Everest RoadMt Everest Rd).

  • 🔄 Tab Key Support:
    Press Tab to instantly accept a suggestion.

  • 📝 Visual Feedback:
    Clear color-coded feedback for valid, suggested, or info states.

  • 🧠 Smart Suffix & Word Handling:
    Checks both suffixes (like “Road”, “St”, etc.) and common words (like “Mount” → “Mt”, “Saint” → “St”, etc.).

  • Real-time Suffix Analysis: As you type a road name, the script analyzes the last word (potential suffix).

    • Validates if the typed suffix is an approved abbreviation (e.g., "Rd" for "Road").
    • Validates if the typed suffix is a known word that should not be abbreviated (e.g., "Lane").
    • Suggests correct abbreviations if a full word is typed (e.g., "Street" -> "St").
    • Suggests completions for partially typed abbreviations or full words (e.g., "Str" -> "St", "Ave" -> "Av").
  • General Word Abbreviation: Checks words before the suffix for common abbreviations.

    • Suggests abbreviations for common words (e.g., "Mount" -> "Mt", "Saint" -> "St").
    • Validates existing abbreviations for these words.
  • Title Case Normalization: Suggests proper title casing for the entire road name.

  • Integrated UI:

    • Displays feedback directly below the street name input field in the address edit card.
    • Uses color-coded status indicators:
      • Green (Valid): The current input is standard.
      • Yellow (Check): A suggestion is available. Clicking the helper applies the suggestion.
      • Blue (Info): General information or no specific rule matched.
    • Provides clear messages about the status or suggested changes.
  • "The X" Name Handling: Recognizes "The [Name]" or "The [Name] [Suffix]" patterns (e.g., "The Esplanade") and advises against abbreviating them.


Installation

  1. Ensure you have a userscript manager extension installed in your browser (e.g., Tampermonkey for Chrome/Edge/Firefox, or Greasemonkey for Firefox).
  2. Navigate to the script's page on Greasy Fork.
  3. Click the "Install" button provided by your userscript manager.
  4. The script will automatically run when you are on the Waze Map Editor page.

Example

  • Typing nh01- will suggest NH01 - रारा०१.
  • Typing mount everest road will suggest Mt Everest Rd.
  • Typing yogikuti marg lane will suggest Yogikuti Marga Ln.

Credits

Based on the original "WME Standard Suffix Abbreviations" script by Brandon28AU.
This version ("Mod") includes enhancements for general word abbreviations and other refinements.


License

MIT