Merges premise elements ordered by precedence into a formatted address
Formats an address element
Test for whether a string begins with a unit prefix
E.g. Back of 10A
=> true
Returns true if string matches rule (iii) of exception rule (above)
Non-desctructively return last elem
Exception Rule indicators: i) First and last characters of the Building Name are numeric (eg ‘1to1’ or ’100:1’) ii) First and penultimate characters are numeric, last character is alphabetic (eg 12A’) iii) Building Name has only one character (eg ‘A’)
Returns an array of localities according to precedent recorded in
localityElements
Detects whether a building name contains a range