from game Europa Universalis IV - Microsoft Store Edition(Jump to Specific Release)
As a country not starting with a female heir, have a female heir and a Castle in your capital.