-- Constant data used by Module:Political party  
local alternate = {
["Barbados Electors Association"] = "Barbados National Party",
["Bagong Alyansang Makabayan"] = "Bayan",
["Bagumbayan-Volunteers for a New Philippines"] = "Bagumbayan–VNP",
["Bagumbayan-VNP"] = "Bagumbayan–VNP",
["Bahujan Vikas Aghadi"] = "Bahujan Vikas Aaghadi",
["Balawaristan National Front (Naji)"] = "Balawaristan National Front",
["Balearic Socialist Federation"] = "Spanish Socialist Workers' Party",
["Balochistan National Movement"] = "Baloch National Movement",
["Ban 1080"] = "Ban 1080 Party",
["Bandić Milan 365 - Labour and Solid"] = "Bandić Milan 365 – Labour and Solidarity Party",
["Bandić Milan 365 - Labour and Solidarity Party"] = "Bandić Milan 365 – Labour and Solidarity Party",
["Bangladesh Awami League"] = "Awami League",
["Bangladesh Khelafat Majlish"] = "Khelafat Majlish",
["Bangon Pilipinas Party"] = "Bangon Pilipinas",
["Basque Nationalist Communion"] = "Basque Nationalist Party",
["Basque Solidarity"] = "Eusko Alkartasuna",
["Belgische Unie – Union Belge"] = "Belgian Union",
["Benno Bokk Yaakaar"] = "United in Hope",
["Benno Bokk Yakaar"] = "United in Hope",
["Bigkis Pinoy"] = "Bigkis Pinoy Movement",
["Bigkis Pagkakaisa"] = "Bunyog Party",
["Bileg Ti Ilokano"] = "Bileg Party",
["Bharatiya Jan Sangh"] = "Akhil Bharatiya Jana Sangh",
["Bharatiya Jana Sangh"] = "Akhil Bharatiya Jana Sangh",
["Bharatiya Janta Party"] = "Bharatiya Janata Party",
["Bhartiya Janata Party"] = "Bharatiya Janata Party",
["Bhutan Peace and Prosperity Party"] = "Druk Phuensum Tshogpa",
["Bienestar Nacional (political party)"] = "Bienestar Nacional",
["BIJ1"] = "Bij1",
["Bildu"] = "EH Bildu",
["Bishops"] = "Lords Spiritual",
["BJP"] = "Bharatiya Janata Party",
["Blaenau Gwent People's Voice Group"] = "Blaenau Gwent People's Voice",
["Bloc for Majorca"] = "Bloc for Mallorca",
["Blockist Radical Civic Union"] = "Bloquista Party",
["Bolshevik Party"] = "Communist Party of the Soviet Union",
["Bolshevik Samasamaja Party"] = "Bolshevik–Leninist Party of India, Ceylon and Burma",
["BPAHK"] = "Business and Professionals Alliance for Hong Kong",
["Brazilian Democratic Movement Party"] = "Brazilian Democratic Movement",
["Brazilian Labour Party (historical)"] = "Brazilian Labour Party (1945)",
["Brazilian Labour Party (current)"] = "Brazilian Labour Party (1981)",
["Brazilian Labour Party (1979)"] = "Brazilian Labour Party (1981)",
["Brazilian Progressive Party"] = "Progressistas",
["Brazilian Republican Party"] = "Republicans (Brazil)",
["Brazilian Social Democratic Party"] = "Brazilian Social Democracy Party",
["Bridge of Independent Lists"] = "The Bridge (Croatia)",
["Bright Future"] = "Bright Future (Iceland)",
["Britain Restoring Underlying Values"] = "BRUV Party",
["British National Front"] = "National Front (UK)",
["British Whig Party"] = "Whigs (British political party)",
["Broad Front for Mexico"] = "Fuerza y Corazón por México",
["Broxtowe Independents"] = "Broxtowe Alliance",
["Buffalo Party"] = "Other parties",
["Buhay Hayaan Yumabong"] = "Buhay Party-List",
["Buhay Hayaang Yumabong"] = "Buhay Party-List",
["Bukidnon Paglaum Party"] = "Bukidnon Paglaum",
["Bulgarian Agrarian People's Union"] = "Bulgarian Agrarian National Union",
["Bulgarian Fatherland Front"] = "Fatherland Front (Bulgaria)",
["Bulgarian Progress"] = "Bulgarian Rise",
["Bull Moose Party"] = "Progressive Party (United States, 1912)",
["Bündnis Sahra Wagenknecht"] = "Sahra Wagenknecht Alliance",
["Bus Pass Elvis Party"] = "Bus-Pass Elvis Party",
["Bushbuckridge Residents Association"] = "Better Residents Association",
["Butun Kyrgyzstan"] = "United Kyrgyzstan",
}  
local full = {
["Ba'ath Party (Iraqi-dominated faction)"] = {abbrev = "", color = "#017B48", shortname = "Ba'ath Party",},
["Ba'ath Party (Syrian-dominated faction)"] = {abbrev = "", color = "#017B48", shortname = "Ba'ath Party",},
["Ba'ath Party"] = {abbrev = "", color = "#017B48", shortname = "",},
["Babylon Movement"] = {abbrev = "", color = "#0241AB", shortname = "",},
["Badavara Shramikara Raitara Congress"] = {abbrev = "BSRCP", color = "#00308F", shortname = "",},
["Badajoz en Común"] = {abbrev = "", color = "#AA0000", shortname = "",},
["Badr Organization"] = {abbrev = "Badr", color = "#250F1B", shortname = "",},
["Bagong Henerasyon"] = {abbrev = "BH", color = "#E02C0D", shortname = "",},
["Bagong Lakas ng Nueva Ecija"] = {abbrev = "BALANE", color = "#0B663A", shortname = "",},
["Bagumbayan–VNP"] = {abbrev = "B-VNP", color = "#EB0304", shortname = "Bagumbayan",},
["Bahamas Democratic Movement"] = {abbrev = "BDM", color = "#6a0080", shortname = "",},
["Bahawalpur National Awami Party"] = {abbrev = "", color = "yellow", shortname = "",},
["Bahia Republican Party"] = {abbrev = "PRB", color = "#7FFFD4", shortname = "",},
["Bahujan Ekata Party Nepal"] = {abbrev = "", color = "#3366FF", shortname = "",},
["Bahujan Ekta Party (R)"] = {abbrev = "BEP(R)", color = "#6A4B02", shortname = "",},
["Bahujan Kranti Dal (Jai)"] = {abbrev = "BKD(J)", color = "#81DAF5", shortname = "",},
["Bahujan Kranti Dal"] = {abbrev = "BKD", color = "#04B4AE", shortname = "",},
["Bahujan Mukti Party"] = {abbrev = "BMP", color = "#2E308F", shortname = "",},
["Bahujan Republican Ekta Manch"] = {abbrev = "", color = "blue", shortname = "",},
["Bahujan Republican Socialist Party"] = {abbrev = "BARESP", color = "", shortname = "",},
["Bahujan Samaj Mukti Morcha"] = {abbrev = "BSMM", color = "#D358F7", shortname = "",},
["Bahujan Samaj Party (Ambedkar)"] = {abbrev = "BSP (A)", color = "Blue", shortname = "",},
["Bahujan Samaj Party"] = {abbrev = "BSP", color = "#22409A", shortname = "",},
["Bahujan Samajwadi Party (Baba Saheb)"] = {abbrev = "BSP(BS)", color = "#FFBF00", shortname = "",},
["Bahujan Sangharsh Party (Kanshiram)"] = {abbrev = "BSP(K)", color = "#1C713A", shortname = "",},
["Bahujan Sangharshh Dal"] = {abbrev = "BSD", color = "#006FFF", shortname = "",},
["Bahujan Shakti Party"] = {abbrev = "BSP", color = "mediumblue", shortname = "",},
["Bahujan Vikas Aaghadi"] = {abbrev = "BVA", color = "#FEFF03", shortname = "",},
["Bahujan Vikas Party"] = {abbrev = "BVP", color = "#088A08", shortname = "",},
["Bajan Free Party"] = {abbrev = "BFP", color = "#000000", shortname = "",},
["Balad (political party)"] = {abbrev = "Balad", color = "#F6600C", shortname = "",},
["Balasahebanchi Shiv Sena"] = {abbrev = "BSS", color = "#E37405", shortname = "",},
["Balawaristan National Front"] = {abbrev = "", color = "#00ab66", shortname = "",},
["Balbín's Poetic Party"] = {abbrev = "BPS", color = "#000000", shortname = "",},
["Balearic Alliance"] = {abbrev = "", color = "#080810", shortname = "",},
["Balearic Autonomist Union"] = {abbrev = "", color = "#005D96", shortname = "",},
["Balearic Convergence"] = {abbrev = "", color = "#46C23D", shortname = "",},
["Balearic Islands Renewal Party"] = {abbrev = "", color = "#424D7B", shortname = "",},
["Balearic Party"] = {abbrev = "", color = "#CA1744", shortname = "",},
["Balearic People's Union"] = {abbrev = "", color = "#F7DB10", shortname = "",},
["Baloch National Movement"] = {abbrev = "BNM", color = "#CD5C5C", shortname = "",},
["Balochistan Awami Party"] = {abbrev = "BAP", color = "#6B8E23", shortname = "",},
["Balochistan National Party (Awami)"] = {abbrev = "BNP (A)", color = "#00AD9F", shortname = "",},
["Balochistan National Party (Mengal)"] = {abbrev = "BNP (M)", color = "#FFEF00", shortname = "",},
["Balochistan National Party"] = {abbrev = "BNP", color = "#FFEF00", shortname = "",},
["Ban 1080 Party"] = {abbrev = "", color = "#F5621E", shortname = "Ban 1080",},
["Ban Bankers Bonuses"] = {abbrev = "", color = "#9966CC", shortname = "",},
["Bandić Milan 365 – Labour and Solidarity Party"] = {abbrev = "", color = "#3CB371", shortname = "BM 365",},
["Bando Osmeña-Pundok Kauswagan"] = {abbrev = "", color = "#1325ae", shortname = "",},
["Ban Fracking Fix Crime Protect Water"] = {abbrev = "", color = "#6E1D55", shortname = "Ban Fracking",},