If it's truly a duplex (as opposed to a townhouse, condo, etc) the building inspectors in this area would require the separating wall to be a 4 hour wall constructed of masonry and extending thru the roof in order for it to be calssoifed as "two structures"