Residential is regulated by the Residential Code of New York State which references the 2002 NEC. Commercial electrical wiring is based on the Building Code of New York State which references the 2005 NEC. This is a statewide law and any communities who are enforcing different editions of the NEC are doing so without authorization.