var holdingType = provinceRecord switch {
{
IsCountyCapital: false,
IsHolySite: true
} => "church_holding",
{
IsCountyCapital: false,
GovernmentType: GovernmentType.monarchy or GovernmentType.tribal,
Fort: true
} => "castle_holding",
{
IsCountyCapital: false,
ProvinceRank: ProvinceRank.city or ProvinceRank.city_metropolis
} => "city_holding",
{
IsCountyCapital: false,
GovernmentType: GovernmentType.republic,
ProvinceRank: ProvinceRank.settlement,
Fort: true
} => "city_holding",
{
IsCountyCapital: false,
ProvinceRank: ProvinceRank.settlement
} => "none",
{
IsCountyCapital: true,
GovernmentType: GovernmentType.monarchy,
} => "castle_holding",
{
IsCountyCapital: true,
GovernmentType: GovernmentType.republic,
} => "city_holding",
{
IsCountyCapital: true,
GovernmentType: GovernmentType.tribal,
} => "tribal_holding",
_ => "none"
};