-- Constant data used by Module:Political party  
local alternate = {
["K-Party"] = "Communist Party of Sweden (1995)",
["KABAKA"] = "Kabalikat ng Bayan sa Kaunlaran",
["Kabalikat ng Mamamayang Pilipino"] = "Kabalikat ng Malayang Pilipino",
["Kalibapi"] = "KALIBAPI",
["Kadere Party of Solomon Islands"] = "Kadere Party",
["Kanak Socialist National Liberation Front"] = "Kanak and Socialist National Liberation Front",
["Kansas Democratic Party"] = "Democratic Party (United States)",
["Kansas Republican Party"] = "Republican Party (United States)",
["Karnataka Pradesh Congress Committee"] = "Indian National Congress",
["KDU-CSL"] = "KDU-ČSL",
["Kentucky Republican Party"] = "Republican Party (United States)",
["Key of Majorca"] = "Key of Mallorca",
["Klaus Riskær Pedersen"] = "Klaus Riskær Pedersen (party)",
["Know-Nothing"] = "Know Nothing",
["KO"] = "Civic Platform",
["Komeito"] = "Kōmeitō",
["Kongunadu Makkal Katchi"] = "Kongunadu Makkal Desia Katchi",
["Korea Socialist Party"] = "Socialist Party (South Korea)",
["KORWiN"] = "KORWiN (Poland)",
["Kotleba - People's Party Our Slovakia"] = "People's Party Our Slovakia",
["Kotleba – People's Party Our Slovakia"] = "People's Party Our Slovakia", -- dash differences
["KSCM"] = "Communist Party of Bohemia and Moravia",
["KSČM"] = "Communist Party of Bohemia and Moravia",
["KWND"] = "Kowloon West New Dynamic",
["KWWBS"] = "Independent politician",
["KWWTW"] = "Independent politician",
["Kyrgyzstan Party"] = "Kyrgyzstan (political party)",
}  
local full = {
["Kaah"] = {abbrev = "", color = "#322D87", shortname = "",},
["Kabaka Yekka"] = {abbrev = "", color = "#0047AB", shortname = "",},
["Kabalikat ng Bayan sa Kaunlaran"] = {abbrev = "KABAKA", color = "#01692E", shortname = "",},
["Kabalikat ng Malayang Pilipino"] = {abbrev = "KAMPI", color = "#00008b", shortname = "",},
["Kabataan Partylist"] = {abbrev = "", color = "#00008b", shortname = "",},
["Kach (political party)"] = {abbrev = "", color = "#FFD700", shortname = "",},
["Kachin State Democracy Party"] = {abbrev = "KSDP", color = "#1D7706", shortname = "",},
["Kadere Party"] = {abbrev = "", color = "#FFBC03", shortname = "",},
["Kadima"] = {abbrev = "", color = "#2D4277", shortname = "",},
["KAGAYAKE Tokyo"] = {abbrev = "", color = "#E65200", shortname = "",},
["Kaishintō"] = {abbrev = "", color = "#0C7E97", shortname = "",},
["Kakushintō"] = {abbrev = "", color = "#BB04A7", shortname = "",},
["KALIBAPI"] = {abbrev = "", color = "#bc002d", shortname = "",},
["Kalinga Sena"] = {abbrev = "KS", color = "Yellow", shortname = "",},
["Kalyana Rajya Pragathi Paksha"] = {abbrev = "KRPP", color = "#0000FF", shortname = "",},
["Kalyankari Jantantrik Party"] = {abbrev = "KJP", color = "#A9F5D0", shortname = "",},
["Kamatapur People’s Party (United)"] = {abbrev = "", color = "#ff1c14", shortname = "",},
["KAMBILAN"] = {abbrev = "", color = "yellowgreen", shortname = "",},
["Kamerun National Democratic Party"] = {abbrev = "KNDP", color = "#FF8000", shortname = "",},
["Kamgar Kisan Paksha"] = {abbrev = "", color = "#FF0000", shortname = "",},
["Kampuchean People's Revolutionary Party"] = {abbrev = "KPRP", color = "#1E90FF", shortname = "",},
["Kamran Malik Communities Welfare"] = {abbrev = "", color = "orange", shortname = "",},
["Kanak and Socialist National Liberation Front"] = {abbrev = "FLNKS", color = "#CC3300", shortname = "",},
["Kanak Socialist Liberation"] = {abbrev = "LKS", color = "#FFD600", shortname = "",},
["Kannada Nadu Party"] = {abbrev = "", color = "yellow", shortname = "",},
["Kansalaisliitto"] = {abbrev = "KaL", color = "#047FB9", shortname = "",},
["Kapayapaan, Kaunlaran at Katarungan"] = {abbrev = "KKK", color = "#FFFF33", shortname = "",},
["Karnataka Janata Paksha"] = {abbrev = "KJP", color = "#65CB9B", shortname = "",},
["Karnataka Pragnyavantha Janatha Party"] = {abbrev = "KPJP", color = "#1F75FE", shortname = "",},
["Karnataka Rashtra Samithi"] = {abbrev = "KRS", color = "#FBD803", shortname = "",},
["KArtu"] = {abbrev = "", color = "#EF9004", shortname = "",},
["Kataeb Party"] = {abbrev = "", color = "#009A00", shortname = "Kataeb",},
["Katipunan ng Demokratikong Pilipino"] = {abbrev = "KDP", color = "#DC241f", shortname = "",},
["Katipunan ng Kamalayang Kayumanggi"] = {abbrev = "", color = "#D2691E", shortname = "Katipunan",},
["Katipunan ng Nagkakaisang Pilipino"] = {abbrev = "KANP", color = "#E50A4D", shortname = "KANP",},
["Katipunan"] = {abbrev = "", color = "#cc0000", shortname = "",},
["Katter's Australian Party"] = {abbrev = "", color = "#b50204", shortname = "Katter's Australian",},
["Kayah State Democratic Party"] = {abbrev = "KySDP", color = "#DA251C", shortname = "",},
["Kayin People's Party"] = {abbrev = "", color = "#F7CF15", shortname = "",},
["KDU-ČSL"] = {abbrev = "", color = "#FFD700", shortname = "",},
["KDŽP – Alliance for Slovakia"] = {abbrev = "", color = "#0082BF", shortname = "",},
["Keep It Straight and Simple Party"] = {abbrev = "", color = "#B1080F", shortname = "",},
["Kensei Hontō"] = {abbrev = "", color = "#FA8072", shortname = "",},
["Kenseikai"] = {abbrev = "", color = "#87CEFA", shortname = "",},
["Kenseitō"] = {abbrev = "", color = "#F88379", shortname = "",},
["Kentucky Democratic Party"] = {abbrev = "", color = "#3333FF", shortname = "Democratic",},
["Kenya African Democratic Union"] = {abbrev = "KADU", color = "#008C51", shortname = "",},
["Kenya African Democratic Union – Asili"] = {abbrev = "KADU–Asili", color = "#7C7968", shortname = "",},
["Kenya African Democratic Development Union"] = {abbrev = "KADDU", color = "#D2559D", shortname = "",},
["Kenya African National Union"] = {abbrev = "KANU", color = "#F50519", shortname = "",},
["Kenya Kwanza"] = {abbrev = "", color = "#F9C90D", shortname = "",},
["Kenya National Congress"] = {abbrev = "", color = "black", shortname = "",},
["Kenya National Democratic Alliance"] = {abbrev = "", color = "#6633FF", shortname = "",},
["Kenya People's Party"] = {abbrev = "", color = "#CC5801", shortname = "",},
["Kenya Union Party"] = {abbrev = "KUP", color = "#42A1Cf", shortname = "",},
["Kerala Congress (Anti-merger Group)"] = {abbrev = "KC(AMG)", color = "#CC9900", shortname = "",},
["Kerala Congress (B)"] = {abbrev = "KC(B)", color = "#CC6600", shortname = "",},
["Kerala Congress (Jacob)"] = {abbrev = "KC(J)", color = "#CC6600", shortname = "",},
["Kerala Congress (Joseph)"] = {abbrev = "KC(J)", color = "#FF6600", shortname = "",},
["Kerala Congress (M)"] = {abbrev = "KC(M)", color = "#F48385", shortname = "",},
["Kerala Congress (Mani)"] = {abbrev = "KC(M)", color = "#F48385", shortname = "",},
["Kerala Congress (Nationalist)"] = {abbrev = "KEC(Nat.)", color = "#CC9900", shortname = "",},
["Kerala Congress (Skaria Thomas)"] = {abbrev = "", color = "blue", shortname = "",},
["Kerala Congress (Thomas)"] = {abbrev = "", color = "#FF9933", shortname = "",},
["Kerala Congress"] = {abbrev = "KEC", color = "#CC6600", shortname = "",},
["Kerala Janapaksham (Secular)"] = {abbrev = "KJ (S)", color = "#FFFF00", shortname = "",},
["Kerala Janapaksham"] = {abbrev = "KJ", color = "#FF9933", shortname = "",},
["Kerala Kamaraj Congress"] = {abbrev = "KKC", color = "black", shortname = "",},
["Kerala Socialist Party"] = {abbrev = "KSP", color = "#228B22", shortname = "",},
["Kernes Bloc — Successful Kharkiv"] = {abbrev = "", color = "#00A039", shortname = "Kernes Bloc",},
["Kerry Independent Alliance"] = {abbrev = "KIA", color = "#97285B", shortname = "",},
["Key Coalition"] = {abbrev = "", color = "darkred", shortname = "",},
["Key of Mallorca"] = {abbrev = "", color = "#D5413F", shortname = "",},
["Keystone Party of Pennsylvania"] = {abbrev = "K", color = "#501B68", shortname = "Keystone",},
["Khana Ratsadon"] = {abbrev = "", color = "#FF0800", shortname = "",},
["Khelafat Majlish"] = {abbrev = "", color = "#41B0A8", shortname = "",},
["Khmer Anti-Poverty Party"] = {abbrev = "", color = "#4091AA", shortname = "",},