So here is a really simple script for a start. It abbreviates Saint to St., Street to St and Avenue to Ave. But only if the street name has more than 15 letters.
Copy and paste it into WMET then position your view over few streets and use '1 (run once)' button to test it.
Code: Select all
if('<your country>' == segment.country)
{
if(segment.street.length > 15)
segment.street = segment.street
// please reference javascript replace for details
.replace(/\bSaint\b/, "St.")
.replace(/\bStreet\b/, "St")
.replace(/\bAvenue\b/, "Av")
;
}
Re: [Script] WME Mass Edit Tool (WMET)