New York Domestic Relations Law
Sec.
§
231
Residence of Married Persons
If a married person dwells within the state when he or she commences an action against his or her spouse for divorce, annulment or separation, such person is deemed a resident thereof, although his or her spouse resides elsewhere.