Is she still laying eggs? Is she growing male type feathering? Sometimes hens develop ovarian issues and look and behave more like roosters.
If you can't have a rooster, she isn't one, so she's still legal, although some neighbor could maybe complain using a noise ordinance.
It's actually...