Definition of the attica are the territory of Athens in ancient Greece where the Ionic dialect was spoken .