Well, the UK is an agglomeration of kingdoms/nations. In Celtic languages (and Latin) which have grammatical gender, the country name is invariably feminine
Britannia : feminine, Hibernia : feminine
Éire : feminine
Cymru : feminine
Alba : feminine
Kernow : feminine
Mannin : feminine
In Old...