
####################################################################################################
###																								 ###
###						   	Падежи титулов наследника с прописной буквы							 ###
###																								 ###
###																								 ###
###						   Титулы прописаны с уже готовыми окончаниями!							 ###
###				В большинстве из них учитывается пол, задающийся папкой government_names		 ###
###																								 ###
###			Именительный (Кто, что?) - "[FRA.GetTitleHeirIM_CAP]" : "Дофин", "Дофинесса"  		 ###
###			Родительный (Кого, чего?) - "[FRA.GetTitleHeirRD_CAP]" : "Дофина", "Дофинессы"  	 ###
###			Дательный (Кому, чему?) - "[FRA.GetTitleHeirDT_CAP]" : "Дофину", "Дофинессе" 	 	 ###
###			Винительный (Кого, что?) - "[FRA.GetTitleHeirVN_CAP]" : "Дофина", "Дофинессу" 		 ###
###			Творительный (Кем, чем?) - "[FRA.GetTitleHeirTV_CAP]" : "Дофином", "Дофинессой"	  	 ###
###			Предложный (О ком, о чём?) - "[FRA.GetTitleHeirPR_CAP]" : "Дофине", "Дофинессе"	  	 ###
###																								 ###
###						  			 Локализация в: gks_titleCAP								 ###
###																								 ###
####################################################################################################

defined_text = {
	name = GetTitleHeirIM_CAP
	#stateless_society
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_german_empire
	text = {
		localisation_key = KRONPRINZ_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANZADEH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHIN_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#georgian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = georgian
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIK_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIK_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = MIRZA_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOT_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILEUS_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWABZADA_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAMZADA_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWABZADA_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MIRZA_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = ABETO_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#march_eastern_christian_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			is_female = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			is_female = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			is_female = no
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			is_female = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			is_female = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			is_female = yes
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_papal_government
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_theocracy
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_IM_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = tribal
		}
	}
	#stateless_society
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_polish_republic
	text = {
		localisation_key = KRONPRINZEN_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHINE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIKAH_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIKAH_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = SHEIKHA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = SHEIKHA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIRAD_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCESS_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOTISSA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILISSA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = LE_ELT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCESS_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#muslim_republic
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_bureaucratic_despotism
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_republic
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_IM_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = tribal
		}
	}
}

defined_text = {
	name = GetTitleHeirRD_CAP
	#stateless_society
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_german_empire
	text = {
		localisation_key = KRONPRINZ_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANZADEH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHIN_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#georgian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = georgian
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIK_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIK_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = MIRZA_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOT_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILEUS_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWABZADA_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAMZADA_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWABZADA_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MIRZA_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = ABETO_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#march_eastern_christian_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			is_female = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			is_female = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			is_female = no
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			is_female = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			is_female = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			is_female = yes
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_papal_government
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_theocracy
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_RD_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = tribal
		}
	}
	#stateless_society
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_polish_republic
	text = {
		localisation_key = KRONPRINZEN_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHINE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIKAH_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIKAH_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = SHEIKHA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = SHEIKHA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIRAD_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCESS_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOTISSA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILISSA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = LE_ELT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCESS_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#muslim_republic
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_bureaucratic_despotism
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_republic
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_RD_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = tribal
		}
	}
}

defined_text = {
	name = GetTitleHeirDT_CAP
	#stateless_society
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_german_empire
	text = {
		localisation_key = KRONPRINZ_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANZADEH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHIN_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#georgian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = georgian
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIK_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIK_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = MIRZA_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOT_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILEUS_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWABZADA_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAMZADA_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWABZADA_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MIRZA_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = ABETO_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#march_eastern_christian_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			is_female = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			is_female = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			is_female = no
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			is_female = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			is_female = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			is_female = yes
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_papal_government
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_theocracy
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_DT_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = tribal
		}
	}
	#stateless_society
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_polish_republic
	text = {
		localisation_key = KRONPRINZEN_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHINE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIKAH_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIKAH_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = SHEIKHA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = SHEIKHA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIRAD_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCESS_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOTISSA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILISSA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = LE_ELT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCESS_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#muslim_republic
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_bureaucratic_despotism
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_republic
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_DT_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = tribal
		}
	}
}

defined_text = {
	name = GetTitleHeirVN_CAP
	#stateless_society
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_german_empire
	text = {
		localisation_key = KRONPRINZ_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANZADEH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHIN_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#georgian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = georgian
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIK_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIK_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = MIRZA_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOT_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILEUS_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWABZADA_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAMZADA_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWABZADA_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MIRZA_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = ABETO_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#march_eastern_christian_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			is_female = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			is_female = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			is_female = no
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			is_female = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			is_female = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			is_female = yes
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_papal_government
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_theocracy
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_VN_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = tribal
		}
	}
	#stateless_society
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_polish_republic
	text = {
		localisation_key = KRONPRINZEN_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHINE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIKAH_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIKAH_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = SHEIKHA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = SHEIKHA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIRAD_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCESS_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOTISSA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILISSA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = LE_ELT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCESS_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#muslim_republic
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_bureaucratic_despotism
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_republic
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_VN_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = tribal
		}
	}
}

defined_text = {
	name = GetTitleHeirTV_CAP
	#stateless_society
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_german_empire
	text = {
		localisation_key = KRONPRINZ_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANZADEH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHIN_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#georgian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = georgian
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIK_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIK_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = MIRZA_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOT_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILEUS_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWABZADA_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAMZADA_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWABZADA_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MIRZA_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = ABETO_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#march_eastern_christian_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			is_female = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			is_female = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			is_female = no
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			is_female = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			is_female = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			is_female = yes
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_papal_government
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_theocracy
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_TV_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = tribal
		}
	}
	#stateless_society
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_polish_republic
	text = {
		localisation_key = KRONPRINZEN_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHINE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIKAH_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIKAH_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = SHEIKHA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = SHEIKHA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIRAD_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCESS_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOTISSA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILISSA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = LE_ELT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCESS_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#muslim_republic
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_bureaucratic_despotism
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_republic
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_TV_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = tribal
		}
	}
}

defined_text = {
	name = GetTitleHeirPR_CAP
	#stateless_society
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_german_empire
	text = {
		localisation_key = KRONPRINZ_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANZADEH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANZADEH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHIN_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHIN_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#georgian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = georgian
		}
	}
	text = {
		localisation_key = PRINCE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = georgian
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIK_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIK_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = MIRZA_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOT_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILEUS_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWABZADA_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAMZADA_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWABZADA_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = MIRZA_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = ABETO_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = ABETO_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHICH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMAR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#march_eastern_christian_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			is_female = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			is_female = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			is_female = no
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}

	#gov_holy_horde
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			is_female = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			is_female = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			is_female = yes
			government_rank = 3
			OR = {
				has_reform = holy_horde_reform
				has_reform = crusading_kingdom_reform
				has_reform = militarized_crusader_order_reform
			}
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANZADEH_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_papal_government
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_theocracy
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_PR_CAP
		trigger = {
			has_female_heir = no
			government_rank = 3 
			government = tribal
		}
	}
	#stateless_society
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = stateless_society
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = stateless_society
		}
	}
	#kongo_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = tribal
		}
	}
	#kongo_monarchy_kingdom
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = KON
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = KON
			government = monarchy
		}
	}
	#islamic_caliphate
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_country_modifier = unified_islam
		}
	}
	#gov_polish_republic
	text = {
		localisation_key = KRONPRINZEN_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			culture_group = germanic
			government_rank = 3
			OR = {
				tag = HLR
				tag = GER
			}
			government = monarchy
		}
	}
	#yuan_empire
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				tag = YUA
				AND = {
					tag = OIR
					has_reform = celestial_empire
				}
			}
			government = monarchy
		}
	}
	#ilkhanate_march
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			tag = ILK
			is_march = yes
		}
	}
	#celestial_parliament
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = celestial_empire
			has_reform = parliamentary_reform
		}
	}
	#Subject Specific
	#ottoman_marches
	text = {
		localisation_key = PASHAZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			is_march = yes
			religion_group = muslim
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#ottoman_vassals
	text = {
		localisation_key = BEYSADI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			religion_group = muslim
			NOT = { is_march = yes }
			overlord = {
				primary_culture = turkish
			}
		}
	}
	#march_christian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			NOT = { religion = orthodox }
			NOT = { religion = coptic }
			is_march = yes
		}
	}
	#gov_papal_government_elector
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
				is_elector = yes
		}
	}
	#palatine_electorate
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			tag = PAL
		}
	}
	#palatine_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PAL
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PAL
		}
	}
	#herzegovina_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government_rank = 3 }
			tag = HRZ
		}
	}
	#HRE
	#holy_roman_electors_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			is_elector = yes
			is_emperor = no
			NOT = { tag = HAB } #Archdukes
		}
	}
	#holy_roman_electors_bishoprics
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
			is_elector = yes
			is_emperor = no
		}
	}
	#Shogunate
	#japanese_shogunate
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = JAP
			government = monarchy
			NOT = { has_reform = shogunate }
		}
	}
	#islamic_syncretism_kingdoms
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { religion_group = muslim }
			has_country_flag = sultan_titles_for_non_muslims
		}
	}
	#french_kingdom
	text = {
		localisation_key = DAUPHINE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	text = {
		localisation_key = DAUPHINE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = revolutionary_empire_reform }
			OR = {
				tag = FRA
				tag = AUV
			}
		}
	}
	#sharifs_of_mecca
	text = {
		localisation_key = SHARIFZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	text = {
		localisation_key = SHARIFZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			OR = {
				tag = HED
				tag = MDA
				tag = MFL
			}
		}
	}
	#avar_nutsals
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = AVR
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = AVR
			government = monarchy
		}
	}
	#dais_of_najran
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			tag = NJR
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			tag = NJR
		}
	}
	#malian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = MAL
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = MAL
		}
	}
	#arabic_tribal
	text = {
		localisation_key = MALIKAH_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = AMIRZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			primary_culture = bedouin_arabic
			government = tribal
		}
	}
	#muslim_tribal
	text = {
		localisation_key = MALIKAH_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = muslim
			government = tribal
			NOT = { has_reform = steppe_horde }
		}
	}
	#kathiawar_tribal_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = KAT
				primary_culture = sindhi
			}
		}
	}
	#sistan_monarchy
	text = {
		localisation_key = SHEIKHA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = SIS
		}
	}
	text = {
		localisation_key = SHAHDOKHT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = SIS
		}
	}
	#More Specific Monarchies
	#persian_monarchy
	text = {
		localisation_key = SHEIKHA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = iranian
		}
	}
	text = {
		localisation_key = SHAHDOKHT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = iranian
		}
	}
	#somali_monarchy
	text = {
		localisation_key = AMIRAD_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = somali
		}
	}
	text = {
		localisation_key = AMIRAD_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = somali
		}
	}
	#lithuanian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = LIT
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = LIT
			government = monarchy
		}
	}
	#cristopher_of_bavaria_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				AND = {
					tag = DAN
					government = monarchy
					has_ruler = "Christopher III"
				}
				has_ruler_flag = has_proclaimed_archking_title
			}
		}
	}
	#hunyadi_regent_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HUN
			government = monarchy
	#		has_ruler = "János"
			has_heir = "Ladislaus Postumus"
		}
	}
	#austrian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			tag = HAB
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			tag = HAB
			government = monarchy
		}
	}
	#turkish_monarchy
	text = {
		localisation_key = VALI_AHAD_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = turkish
		}
	}
	text = {
		localisation_key = VALI_AHAD_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = turkish
		}
	}
	#theodoro_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = FEO
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = FEO
		}
	}
	#croatian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = croatian
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = croatian
		}
	}
	#finnish_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = finnish
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = finnish
		}
	}
	#grand_duchy_of_tuscany
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = TUS
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = TUS
		}
	}
	#grand_duchy_of_baden
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BAD
			has_idea = bad_grand_duchy
		}
	}
	#grand_duchy_of_luxembourg
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = LUX
			has_idea = lux_grand_duchy_of_luxembourg
		}
	}
	#serbian_feudal_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				has_reform = feudalism_reform
				has_reform = autocracy_reform
			}
			primary_culture = serbian
			religion = orthodox
		}
	}
	#serbian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy #All later monarchies
			primary_culture = serbian
		}
	}
	#byzantine_monarchy
	text = {
		localisation_key = PRINCESS_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = DESPOTISSA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	text = {
		localisation_key = SYMBASILISSA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BYZ
				tag = TRE
				tag = EPI
				tag = MOE
			}
		}
	}
	#greek_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = greek
				primary_culture = pontic_greek
			}
		}
	}
	#arakanese_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ARK
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ARK
		}
	}
	#pangasinan_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = PGS
			religion_group = eastern
		}
	}
	#albanian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ALB
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ALB
		}
	}
	#qing_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = QNG
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = QNG
		}
	}
	#egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = enlightened_despotism
				has_reform = letat_cest_moi_reform
				has_reform = regional_representation_reform
			}
			primary_culture = al_misr_arabic #Egyptian
			religion_group = muslim
		}
	}
	#pagan_egyptian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = al_misr_arabic #Egyptian
					religion = animism
				}
				primary_culture = old_egyptian
			}
		}
	}
	#pagan_greek_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = greek
					religion = animism
				}
				primary_culture = athenian
				primary_culture = spartan
				primary_culture = atlantean
			}
		}
	}
	#pagan_roman_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				AND = {
					primary_culture = umbrian
					religion = animism
				}
				primary_culture = roman
			}
		}
	}
	#jurchen_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			primary_culture = manchu
		}
	}
	#romanian_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = romanian
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = romanian
		}
	}
	#hyderabad_state_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = DEC
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = DEC
		}
	}
	#muslim_indian_monarchy
	text = {
		localisation_key = NAWAB_BEGUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = NIZAM_BEGUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	text = {
		localisation_key = PADISHAH_BEGUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = dravidian
				culture_group = western_aryan
				culture_group = hindusthani
				culture_group = eastern_aryan
				has_reform = indian_sultanate_reform
			}
			religion_group = muslim
		}
	}
	#bharat_monarchy
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BHA
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BHA
		}
	}
	#hindu_rajput_monarchy
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rajput
			religion = hinduism
		}
	}
	#maratha_peshwas
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = administrative_monarchy
				has_reform = clergy_in_administration_reform
				has_reform = of_noble_bearing_reform
				has_reform = meritocratic_focus_reform
			}
			primary_culture = marathi
			religion = hinduism
		}
	}
	#hindu_maratha_monarchy
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = marathi
			religion = hinduism
		}
	}
	#kaffa_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = KAF
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = KAF
		}
	}
	#ethiopian_monarchies
	text = {
		localisation_key = LE_ELT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	text = {
		localisation_key = LE_ELT_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion_group = christian
			OR = {
				primary_culture = amhara
				primary_culture = sidamo
				primary_culture = tigray
			}
		}
	}
	#nkore_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = NKO
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = NKO
		}
	}
	#bunyoro_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BNY
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BNY
		}
	}
	#lunda_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				primary_culture = lunda
				primary_culture = luba
			}
		}
	}
	#mutapa_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ZIM
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ZIM
		}
	}
	#torwa_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = RZW
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = RZW
		}
	}
	#rwanda_burundi_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = rwandan
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = rwandan
		}
	}
	#ganda_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = ganda
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = ganda
		}
	}
	#antemoro_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = ANT
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = ANT
		}
	}
	#betsimisaraka_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			tag = BTS
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			tag = BTS
		}
	}
	#filipino_rajanate
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				tag = BTU
				tag = MNA
				tag = CEB
			}
		}
	}
	#shan_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = shan
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = shan
		}
	}
	#burman_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = burman
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = burman
		}
	}
	#Less Specific Monarchies
	#barangay_polity
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = republic
			}
			NOT = { tag = SUL }
			NOT = { tag = MGD }
			primary_culture = filipino
		}
	}
	#south_slavic_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = south_slavic
			NOT = { tag = CLI }
		}
	}
	#irish_peerage_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
			OR = {
				tag = DMS
				tag = ORD
				tag = KID
				tag = ULS
			}
		}
	}
	#irish_clan_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			primary_culture = irish
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			primary_culture = irish
		}
	}
	#hebridean_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			primary_culture = highland_scottish
			government = monarchy
		}
	}
	#muscovite_monarchy
	text = {
		localisation_key = KNIAZHNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = KNIAZHNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	text = {
		localisation_key = TSAREVNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
			tag = MOS
		}
	}
	#russian_monarchy
	text = {
		localisation_key = KNIAZHNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	text = {
		localisation_key = TSAREVNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = principality
				has_reform = tsardom
			}
		}
	}
	#russian_feudal_monarchy
	text = {
		localisation_key = KNIAZHNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = KNIAZHNA_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	text = {
		localisation_key = PRINCESS_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			OR = {
				culture_group = east_slavic
				tag = PRM
			}
		}
	}
	#inti_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = inti
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = inti
		}
	}
	#mayan_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
			}
			religion = mesoamerican_religion
		}
	}
	#nahuatl_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = monarchy
				government = tribal
				has_reform = tribal_democracy_legacy
			}
			religion = nahuatl
		}
	}
	#chinese_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			culture_group = east_asian #Chinese
		}
	}
	#hindu_monarchy
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			religion = hinduism
		}
	}
	text = {
		localisation_key = RAJKUMARI_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			religion = hinduism
		}
	}
	#buddhist_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { government = tribal }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
		}
	}
	#muslim_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	text = {
		localisation_key = SHAHZADE_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = monarchy
			NOT = { has_reform = steppe_horde }
			religion_group = muslim
			NOT = { has_reform = feudal_theocracy }
		}
	}
	#Republics
	#If only two first levels used then reorder so that only 2 and 3 are used
	#If only two first levels used then reorder so that only 2 and 3 are used
	#muslim_republic
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			government = monarchy
			NOT = { has_reform = principality }
			OR = {
				religion = coptic
				religion = orthodox
			}
			is_march = yes
		}
	}
	#gov_steppe_horde
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	text = {
		localisation_key = KHANUM_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = steppe_horde
			OR = { 
				culture_group = altaic 
				culture_group = tartar 
				primary_culture = altaic_new 
			}
		}
	}
	#gov_native_council
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				government = native
				has_reform = siberian_tribe
				has_reform = native_basic_reform
				AND = {
					has_reform = steppe_horde
					NOT = {
						OR = { 
							culture_group = altaic 
							culture_group = tartar 
							primary_culture = altaic_new 
						}
					}
				}
			}
		}
	}
	#gov_bureaucratic_despotism
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = papacy_reform
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = papacy_reform
		}
	}
	#gov_daimyo
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
				NOT = { government_rank = 2 }
			has_reform = daimyo
		}
	}
	#gov_indep_daimyo
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = indep_daimyo
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = indep_daimyo
		}
	}
	#gov_shogunate
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = shogunate
		}
	}
	#gov_tribal_kingdom
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = tribal_kingdom
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = tribal_kingdom
		}
	}
	#gov_tribal
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = tribal_despotism
				has_reform = tribal_federation
			}
		}
	}
	#hre_county
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
			is_part_of_hre = yes
			NOT = { total_development = 50 }
		}
	}
	#Ikko-Ikki Peasants
	#Theocracies - Specified Religion / Culture
	#ikko_ikki_temple
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = leading_clergy_reform
				has_reform = monastic_order_reform
			}
			has_country_flag = ikko_ikki_peasants_flag
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#asian_monastic_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				religion_group = eastern
				culture_group = japanese_g
				capital_scope = {
					region = japan_region
				}
			}
		}
	}
	#northerner_king_monastic_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			has_reform = commander_king_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#northerner_monastic_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			OR = {
				tag = NOL
				capital_scope = {
					area = yorkshire_area
				}
				capital_scope = {
					area = scottish_marches_area
				}
			}
		}
	}
	#teutonic_monastic_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = TEU
		}
	}
	#Theocracies - Specified Religion / Culture
	#livonian_monastic_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_order_reform
			tag = LIV
		}
	}
	#germanic_monastic_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					has_reform = holy_state_reform
				}
			}
			culture_group = germanic
		}
	}
	#brewing_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monastic_breweries_reform
			religion = catholic
		}
	}
	#jewish_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = jewish
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = jewish
			government = theocracy
		}
	}
	#zoroastrian_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = zoroastrian
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = zoroastrian
			government = theocracy
		}
	}
	#sikh_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sikhism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sikhism
			government = theocracy
		}
	}
	#hindu_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = hinduism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = hinduism
			government = theocracy
		}
	}
	#shinto_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shinto
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shinto
			government = theocracy
		}
	}
	#buddhist_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = buddhism #Theravada
				religion = vajrayana
				religion = mahayana
			}
			government = theocracy
		}
	}
	#confucian_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = confucianism
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = confucianism
			government = theocracy
		}
	}
	#ibadi_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = ibadi
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#yemenite_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			primary_culture = yemeni_culture
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
		}
	}
	#shiite_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = shiite
			OR = {
				government = theocracy
				has_reform = feudal_theocracy
			}
			NOT = { primary_culture = yemeni_culture }
		}
	}
	#uyghur_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			government = theocracy
			OR = {
				primary_culture = uyghur
				has_country_flag = end_of_khojas
			}
		}
	}
	#sunni_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = sunni
			OR = {
				has_reform = feudal_theocracy
				government = theocracy
			}
		}
	}
	#orthodox_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				religion = orthodox
				religion = coptic
			}
			government = theocracy
		}
	}
	#inti_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = inti
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = inti
			government = theocracy
		}
	}
	#pagan_theocracy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion_group = pagan
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion_group = pagan
			government = theocracy
		}
	}
	#gov_religious_order
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			OR = {
				has_reform = monastic_order_reform
				AND = {
					government = theocracy
					tag = KOJ
				}
			}
		}
	}
	#sisters_crusader_state
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			religion = catholic
			has_reform = holy_state_reform
			has_country_modifier = sisters_takeover
		}
	}
	#default_monarchy
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			has_reform = monarchy_mechanic
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			has_reform = monarchy_mechanic
		}
	}
	#default_republic
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = theocracy
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = theocracy
		}
	}
	#default_tribal
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 1 
			NOT = { government_rank = 2 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 2 
			NOT = { government_rank = 3 }
			government = tribal
		}
	}
	text = {
		localisation_key = HEIR_fem_PR_CAP
		trigger = {
			has_female_heir = yes
			government_rank = 3 
			government = tribal
		}
	}
}