Original sentence: Catalonia (Catalan: Catalunya, Spanish: Cataluña, Aranese: Catalonha) is an autonomous community within Spain in the north-east of the Iberian peninsula.Catalonia consists of the Spanish provinces of Barcelona, Girona, Lleida and Tarragona, an area of 32,114 km² with a population of 7,134,697 (2006 figures).Catalonia shares borders with France and Andorra to the north, with Aragon to the west, and with Valencia to the south: to the east there is a 580 km Mediterranean coastline.In the middle ages, it formed the most populous part of the medieval Crown of Aragon
Edited sentence: Catalonia (Catalan: Catalunya, Spanish: Cataluña, Aranese: Catalonha) is a region in the north-east of the Iberian peninsula which formed the most populous part of the medieval Crown of Aragon and which is now an autonomous community within Spain.Catalonia shares borders with France and Andorra to the north, with Aragon to the west, and with the Valencian Community to the south: to the east there is a 580 km Mediterranean coastline.Modern Catalonia consists of the Spanish provinces of Barcelona, Girona, Lleida and Tarragona, an area of 32,114 km² with a population of 7,134,697 (2006 figures).The historical territory of the Principality of Catalonia also included most of what is now the French département of the Pyrénées-Orientales, ceded to France by the Treaty of the Pyrenees in 1659