Where the couple ends up should be part of the bargening and should be part of the AI matchmaking.The Devs should add options to keep female clan members in the clan after marriage for player and AI, the gender of a character should have no influence who leaves the clan.
Some clans can die out because they have only women left and their clan leader is a infertile 45 year old woman, if they would allow matrilineal marriages for all females, this clans would have a chance of surviving.
Matchmaking - Some kind of score - system, like:
|Other part is same culture||1|
|Other part is same faction||1|
|Other part is ruler clan||1|
|Other part is clanleader||1|
|Other part is ruler||1|
|Age difference||-1/ for each started 10 year diff|
|My female candidate above 30||1|
|My female candidate above 40||1|
|Other part female candidate above 45||-3|
Apply first in favour of the highest clan level. Then in favour of male candidate. Then in favour of the female candidate.
|Other part joins my clan||1|
|My member leave clan||-1|
Then apply, If "My member leave clan":
|My clan has less than 4 members||-1|
|My clan has less than 3 members||-1|
|My clan has less than 2 members||-1|
Matches with 7/7 is married straight away.
Matches with 6+/6+ is married within X/2 ticks(if score persists).
Matches with 5+/5+ is married within X ticks(if score persists).
Matches with 4+/4+ is married within X x 3 ticks(if score persists).
Matches with 3+/3+ is married within X x 5 ticks(if score persists).
Difference > 1 : +2 ticks/score
tick = how often marriage is checked.