<?php
	//the 'global' keyword is necessary when slotToCaption.php is included/required inside a function
    global $slotToCaption;
	global $listPageColumn;
	global $organizationARC_prefix;
	global $organizationARC;
	$slotToCaption = array();
	$listPageColumn = array();
	
	$listPageColumn["id"] = "ID No.";
	$listPageColumn["username"] = "User";
	$listPageColumn["filename"] = "File Name";
	$listPageColumn["shortFilename"] = "Short File Name";
	$listPageColumn["origFolder"] = "Source Folder";
	$listPageColumn["redactedId"] = "Redacted";	
	//$listPageColumn["author"] = "Document Author";
	$listPageColumn["type"] = "Document Type";
	$listPageColumn["date"] = "Date of Writing";
	$listPageColumn["file_last_accessed_date"] = "Last Accessed Date";
	$listPageColumn["file_last_modified_date"] = "Last Modified Date";
	$listPageColumn["scan_time"] = "Scan TIme";	
	$listPageColumn["anti"] = "Negative Sentiment";
	$listPageColumn["pro"] = "Positive Sentiment";
	$listPageColumn["user_notes"] = "Comments";
	$listPageColumn["batch_serial_id"] = "Batch Serial ID";
	$listPageColumn["batch_id"] = "Batch ID";
	$listPageColumn["file_creation_date"] = "File Creation Date";
	$listPageColumn["file_size"] = "File Size";
	$listPageColumn["line_count"] = "Number of Lines";
	$listPageColumn["token_count"] = "Number of Words";
	
	$slotToCaption["caption"] = ["label"=>"Name","order"=>0];
	
	//Person Names
	$slotToCaption["full-name"] = ["label"=>"Full Name","order"=>0];
	$slotToCaption["given-name"] = ["label"=>"Given Name","order"=>1];
	$slotToCaption["second-given-name"] = ["label"=>"Second Given Name","order"=>2];
    $slotToCaption["third-given-name"] = ["label"=>"Third Given Name","order"=>3];
    $slotToCaption["fourth-given-name"] = ["label"=>"Fourth Given Name","order"=>4];
    $slotToCaption["middle-name"] = ["label"=>"Middle Name","order"=>5];
    $slotToCaption["maiden-name-middle-name"] = ["label"=>"Maiden Name Middle Name","order"=>6];
    $slotToCaption["matronymic-middle-name"] = ["label"=>"Matronymic Middle Name","order"=>7];
    $slotToCaption["matronymic-name"] = ["label"=>"Matronymic Name","order"=>8];
    $slotToCaption["middle-name-second"] = ["label"=>"Middle Name Second","order"=>9];
    $slotToCaption["middle-name-third"] = ["label"=>"Middle Name Third","order"=>10];
    $slotToCaption["maiden-name"] = ["label"=>"Maiden Name","order"=>11];
    $slotToCaption["father-patrimonyal-name"] = ["label"=>"Father Patrimonyal Name","order"=>12];
    $slotToCaption["slavic-patronymic"] = ["label"=>"Slavic Patronymic","order"=>13];
    $slotToCaption["greek-patronymic"] = ["label"=>"Greek Patronimic","order"=>14];
    $slotToCaption["grandfather-patrimonyal-name"] = ["label"=>"Grandfather Patrimonyal Name","order"=>15];
    $slotToCaption["great-grandfather-patronymic-name"] = ["label"=>"Great Grandfather Patronymic Name","order"=>16];
    $slotToCaption["great-great-grandfather-patronymic-name"] = ["label"=>"Great Great Grandfather Patronymic Name","order"=>17];
    $slotToCaption["second-family-name"] = ["label"=>"Second Family Name","order"=>18];
    $slotToCaption["third-family-name"] = ["label"=>"Third Family Name","order"=>19];
    $slotToCaption["fourth-family-name"] = ["label"=>"Fourth Family Name","order"=>20];
    $slotToCaption["family-name"] = ["label"=>"Family Name","order"=>21];
    $slotToCaption["hispanic-maternal-name"] = ["label"=>"Hispanic Maternal Name","order"=>22];
    $slotToCaption["numeric-generational-indicator"] = ["label"=>"Numeric Generational Indicator","order"=>23];
    $slotToCaption["indicator-generational"] = ["label"=>"Indicator Generational","order"=>24];
    $slotToCaption["clan-name"] = ["label"=>"Clan Name","order"=>25];
    $slotToCaption["tribal-name"] = ["label"=>"Tribal Name","order"=>26];
    $slotToCaption["indian-caste-name"] = ["label"=>"Indian Caste Name","order"=>17];
    $slotToCaption["sikh-religious-name"] = ["label"=>"Sikh Religious Name","order"=>28];
    $slotToCaption["kunya"] = ["label"=>"Kunya","order"=>29];
    $slotToCaption["nisba"] = ["label"=>"Nisba","order"=>30];
    $slotToCaption["organizational-title"] = ["label"=>"Title","order"=>31];
    $slotToCaption["title"] = ["label"=>"Title","order"=>32];
    $slotToCaption["nickname"] = ["label"=>"Nickname","order"=>33];
    $slotToCaption["also-known-as"] = ["label"=>"Alias","order"=>34];
    $slotToCaption["alias"] = ["label"=>"Alias","order"=>35];
    $slotToCaption["gender"] = ["label"=>"Gender","order"=>36];
    $slotToCaption["ethnicity"] = ["label"=>"Ethnicity","order"=>37];
    $slotToCaption["religion"] = ["label"=>"Religion","order"=>38];
    $slotToCaption["islamic-sect"] = ["label"=>"Islamic Sect","order"=>39];
    $slotToCaption["ideological-stream"] = ["label"=>"Ideological Affiliation","order"=>40];
    $slotToCaption["national-identity"] = ["label"=>"Citizenship","order"=>41];
    $slotToCaption["organization"] = ["label"=>"Organisational Affiliation","order"=>42];
    $slotToCaption["Organizational-identity"] = ["label"=>"Organisational Affiliation","order"=>43];
    $slotToCaption["country-of-birth"] = ["label"=>"Country of Birth","order"=>44];
    $slotToCaption["country-of-residence"] = ["label"=>"Country of Residence","order"=>45];
    $slotToCaption["city-origin"] = ["label"=>"City of Birth","order"=>46];
    $slotToCaption["city-of-residence"] = ["label"=>"City of Residence","order"=>47];
    $slotToCaption["date-of-birth"] = ["label"=>"Date of Birth","order"=>48];
    $slotToCaption["year-of-birth"] = ["label"=>"Date of Birth","order"=>49];
    $slotToCaption["year-of-birth-from"] = ["label"=>"Date of Birth","order"=>50];
    $slotToCaption["year-of-birth-to"] = ["label"=>"Date of Birth","order"=>51];
    $slotToCaption["dead"] = ["label"=>"Deceased","order"=>52];
    $slotToCaption["date-of-death"] = ["label"=>"Date of Death","order"=>53];
    $slotToCaption["head-of-state"] = ["label"=>"Head of State","order"=>54];
    $slotToCaption["incumbency"] = ["label"=>"Incumbency","order"=>55];
    $slotToCaption["date-begin-incumbent-position"] = ["label"=>"Date of Current Position","order"=>56];
    $slotToCaption["date-end-non-incumbent-position"] = ["label"=>"Date of Leaving Office","order"=>57];
    $slotToCaption["naming-convention"] = ["label"=>"Naming Convention","order"=>58];
    $slotToCaption["father"] = ["label"=>"Father","order"=>59];
    $slotToCaption["father-in-patronymic"] = ["label"=>"Father In Patronymic","order"=>60];
    $slotToCaption["mother"] = ["label"=>"Mother","order"=>61];
    $slotToCaption["son"] = ["label"=>"Son","order"=>62];
    $slotToCaption["brothers"] = ["label"=>"Brothers","order"=>63];
    $slotToCaption["cousins"] = ["label"=>"Cousins","order"=>64];
    $slotToCaption["grandfather"] = ["label"=>"Grandfather","order"=>65];
    $slotToCaption["relations"] = ["label"=>"Other Relations","order"=>66];
    $slotToCaption["links-to-people"] = ["label"=>"Links to People","order"=>67];
    $slotToCaption["head"] = ["label"=>"Leader/Head","order"=>68];
    $slotToCaption["possible-relations"] = ["label"=>"Linked to","order"=>69];
    $slotToCaption["anti-whom"] = ["label"=>"Anti","order"=>70];
    $slotToCaption["pro"] = ["label"=>"Pro","order"=>71];
    $slotToCaption["writings"] = ["label"=>"Publications","order"=>72];
    
    
    $slotToCaption["email"] = ["label"=>"Email","order"=>0];
    $slotToCaption["number-value"] = ["label"=>"Number Value","order"=>1];
    $slotToCaption["phone-number"] = ["label"=>"Phone number","order"=>2];
    $slotToCaption["phone-area-code"] = ["label"=>"Phone area code","order"=>3];
    $slotToCaption["phone-country-code"] = ["label"=>"Phone country code","order"=>4];
    
    $slotToCaption["identifiable-object"] = ["label"=>"Organization Type","order"=>0];
    
    $slotToCaption["place-referred-to"] = ["label"=>"Place Referred To","order"=>0];
    $slotToCaption["referred-place"] = ["label"=>"Referred Place","order"=>1];
    $slotToCaption["capital-city"] = ["label"=>"Capital","order"=>2];
    $slotToCaption["region"] = ["label"=>"Region","order"=>3];
    $slotToCaption["neighborhood-quarter"] = ["label"=>"Neigborhood","order"=>4];
    $slotToCaption["branch-of"] = ["label"=>"Subsidieary of","order"=>5];
	    
    //address
    $slotToCaption["house-number"] = ["label"=>"House Number","order"=>0];
    $slotToCaption["street"] = ["label"=>"Street","order"=>1];
    $slotToCaption["postBox"] = ["label"=>"Post-box","order"=>2];
    $slotToCaption["city"] = ["label"=>"City","order"=>3];
    $slotToCaption["state-or-province"] = ["label"=>"State or province","order"=>4];
    $slotToCaption["country"] = ["label"=>"Country","order"=>5];
    
    $slotToCaption["analyst-notes"] = ["label"=>"Comments","order"=>0];

    $slotToCaption["compound-given-name"] = ["label"=>"Compound Given Name","order"=>0];
    $slotToCaption["given-name-initial"] = ["label"=>"Given Name Initial","order"=>1];
    $slotToCaption["chinese-korean-given-name"] = ["label"=>"Chinese Korean Given Name","order"=>2];
    $slotToCaption["compound-family-name"] = ["label"=>"Compound Family Name","order"=>3];
    $slotToCaption["family-name-initial"] = ["label"=>"Family Name Initial","order"=>4];
    $slotToCaption["chinese-korean-family-name"] = ["label"=>"Chinese Korean Family Name","order"=>5];
    $slotToCaption["base-male-slavic-family-name"] = ["label"=>"Base Male Slavic Family Name","order"=>6];
    $slotToCaption["middle-name-initial"] = ["label"=>"Middle Name Initial","order"=>7];
    $slotToCaption["korean-generation-indicator"] = ["label"=>"Korean Generation Indicator","order"=>8];
    $slotToCaption["translation"] = ["label"=>"translation","order"=>9];
    $slotToCaption["source"] = ["label"=>"Source","order"=>10];
    $slotToCaption["modifier"] = ["label"=>"Modifier","order"=>11];
    $slotToCaption["normalized-acronym"] = ["label"=>"Acronym","order"=>12]; 
    
	$slotToCaptionTextArr = ["organization", 
                            "Organizational-identity",
                    	    "date-of-birth",
                    	    "year-of-birth",
                    	    "year-of-birth-from",
                    	    "year-of-birth-to",
                    	    "date-of-death",
                    	    "head-of-state",
                    	    "incumbency",
                    	    "city-of-residence",
                    	    "city-origin",
                    	    "country-of-birth",
                    	    "country-of-residence"

                    	];

	foreach($slotToCaptionTextArr as $field){
	    $slotToCaption[$field."-text"] = ['label'=> $slotToCaption[$field]['label']." - Text", 'order' => $slotToCaption[$field]['order']];
	}
	
	$slotsHirarchy["person"]["Name"] = ['caption'];
	$slotsHirarchy["person"]["Forename"] = ['given-name', 'compound-given-name', 'given-name-initial', 'chinese-korean-given-name', 'second-given-name', 'third-given-name', 'fourth-given-name'];
	$slotsHirarchy["person"]["Middle Name"] = ['middle-name', 'maiden-name', 'maiden-name-middle-name', 'matronymic-middle-name', 'middle-name-initial', 'korean-generation-indicator', 'middle-name-second','middle-name-third'];
	$slotsHirarchy["person"]["Patronymic"] = ['father-patrimonyal-name','slavic-patronymic','greek-patronymic', 'grandfather-patrimonyal-name', 'great-grandfather-patronymic-name', 'great-great-grandfather-patronymic-name'];
	$slotsHirarchy["person"]["Surname"] = ['family-name','compound-family-name','family-name-initial','chinese-korean-family-name','base-male-slavic-family-name', 'second-family-name','third-family-name', 'fourth-family-name'];
	$slotsHirarchy["person"]["Matronymic (Hispanic)"] = ['hispanic-maternal-name','matronymic-name'];
	$slotsHirarchy["person"]["Generation Indicator"]  = ['numeric-generational-indicator', 'indicator-generational'];
	$slotsHirarchy["person"]["Clan/Tribe"] = ['clan-name', 'tribal-name', 'indian-caste-name', 'sikh-religious-name'];
	$slotsHirarchy["person"]["Kunya (Arab)"] = ['kunya'];
	$slotsHirarchy["person"]["Nisba (Arab)"] = ['nisba'];
	$slotsHirarchy["person"]["Naming Convention"] = ['naming-convention'];
	$slotsHirarchy["person"]["Title"] = ['title'];
	$slotsHirarchy["person"]["Nickname"] = ['nickname', 'base-name'];
	$slotsHirarchy["person"]["Father's name"] = ['father-in-patronymic'];
	$slotsHirarchy["person"]["Country of birth"] = ['country-of-birth','country-of-birth-text'];
	$slotsHirarchy["person"]["Country of residence"] = ['country-of-residence', 'country-of-residence-text'];
	$slotsHirarchy["person"]["City of residence"] = ['city-of-residence','city-of-residence-text'];
	$slotsHirarchy["person"]["City origin"] = ['city-origin','city-origin-text'];
	$slotsHirarchy["person"]["Gender"] = ['gender'];
	$slotsHirarchy["person"]["Ethnicity"] = ['ethnicity'];
	$slotsHirarchy["person"]["Religion"] = ['religion'];
	
	$slotsHirarchy["place"]["Name"] = ['caption'];
	$slotsHirarchy["place"]["City"] = ['City'];
	$slotsHirarchy["place"]["State/Province"] = ['state-or-province'];
	$slotsHirarchy["place"]["Country"] = ['country'];
	$slotsHirarchy["place"]["Region"] = ['region'];
	
	$slotsHirarchy["Organization"]["Name"] = ['caption'];
	$slotsHirarchy["Organization"]["Ethnicity"] = ['ethnicity'];
	$slotsHirarchy["Organization"]["Nationality"] = ['national-identity'];
	$slotsHirarchy["Organization"]["Ideology"] = ['ideological-stream'];
	
	$slotsHirarchy["Event"]["Name"] = ['caption'];
	$slotsHirarchy["Event"]["Event type"] = ['ethnicity','identifiable-object'];
	$slotsHirarchy["Event"]["Place of event"] = ['national-identity'];
	$slotsHirarchy["Event"][ "Possible link"] =  ['possible-relations'];
	
	//organization acrron	
	$organizationARC_prefix["The"] = "";
	$organizationARC_prefix["La"] = "";
	$organizationARC_prefix["Le"] = "";
	$organizationARC_prefix["Der"] = "";
	$organizationARC_prefix["Die"] = "";
	$organizationARC_prefix["Il"] = "";
	$organizationARC_prefix["Los"] = "";
	$organizationARC_prefix["Les"] = "";
	$organizationARC_prefix["Las"] = "";
			
	$organizationARC["A.E."] = ""; 
	$organizationARC["A.M.B.A."] = ""; 
	$organizationARC["A/S"] = ""; 
	$organizationARC["AB"] = ""; 
	$organizationARC["AG"] = ""; 
	$organizationARC["ANS"] = ""; 
	$organizationARC["ApS"] = ""; 
	$organizationARC["AS"] = ""; 
	$organizationARC["ASA"] = ""; 
	$organizationARC["Ay"] = ""; 
	$organizationARC["B.M."] = "";
	$organizationARC["B.V."] = ""; 
	$organizationARC["BA"] = ""; 
	$organizationARC["Bhd."] = ""; 
	$organizationARC["BVBA"] = ""; 
	$organizationARC["C.V."] = ""; 
	$organizationARC["CC"] = "";
	$organizationARC["CC/BK"] = ""; 
	$organizationARC["China"] = "";	
	$organizationARC["CIC"] = ""; 
	$organizationARC["Co."] = ""; 
	$organizationARC["Comm.V"] = ""; 
	$organizationARC["Comm.VA"] = ""; 
	$organizationARC["Coop."] = ""; 
	$organizationARC["Corp."] = ""; 
	$organizationARC["CRL"] = ""; 
	$organizationARC["CVBA"] = ""; 
	$organizationARC["CVOA"] = ""; 
	$organizationARC["DA"] = ""; 
	$organizationARC["E.E."] = ""; 
	$organizationARC["e.G."] = ""; 
	$organizationARC["E.P.E."] = ""; 
	$organizationARC["E.U."] = ""; 
	$organizationARC["e.V."] = ""; 
	$organizationARC["EBVBA"] = ""; 
	$organizationARC["EEIG"] = ""; 
	$organizationARC["EI"] = ""; 
	$organizationARC["EIRL"] = ""; 
	$organizationARC["Ent."] = ""; 
	$organizationARC["ESV"] = ""; 
	$organizationARC["EURL"] = ""; 
	$organizationARC["Fa"] = ""; 
	$organizationARC["FCP"] = ""; 
	$organizationARC["FKF"] = ""; 
	$organizationARC["FP"] = "";
	$organizationARC["FUP"] = "";
	$organizationARC["GbR"] = ""; 
	$organizationARC["Gen"] = ""; 
	$organizationARC["GesbR"] = ""; 
	$organizationARC["GIE"] = ""; 
	$organizationARC["GmbH"] = ""; 
	$organizationARC["GmbH & Co."] = "";
	$organizationARC["GmbH & Co. KG"] = "";
	$organizationARC["GP"] = ""; 
	$organizationARC["HB"] = ""; 
	$organizationARC["HF"] = ""; 
	$organizationARC["HUF"] = ""; 
	$organizationARC["I/S"] = ""; 
	$organizationARC["IKS"] = ""; 
	$organizationARC["Inc."] = ""; 
	$organizationARC[", Inc."] = "";
	$organizationARC["Italy"] = "";
	$organizationARC["k.s."] = ""; 
	$organizationARC["K/S"] = ""; 
	$organizationARC["KB"] = ""; 
	$organizationARC["KEG"] = ""; 
	$organizationARC["KF"] = ""; 
	$organizationARC["KG"] = "";
	$organizationARC["KG"] = ""; 
	$organizationARC["KGaA"] = ""; 
	$organizationARC["Koperasi"] = "";
	$organizationARC["KS"] = ""; 
	$organizationARC["Ky"] = ""; 
	$organizationARC["Lda."] = ""; 
	$organizationARC["LLC"] = ""; 
	$organizationARC["LLP"] = ""; 
	$organizationARC["LP"] = "";
	$organizationARC["LP"] = ""; 
	$organizationARC["Ltd."] = "";
	$organizationARC["Ltd"] = "";  
	$organizationARC["Ltda."] = ""; 
	$organizationARC["M.E.P.E."] = ""; 
	$organizationARC["Maatschap"] = ""; 
	$organizationARC["Mts"] = ""; 
	$organizationARC["N.V."] = ""; 
	$organizationARC["NL"] = ""; 
	$organizationARC["NUF"] = ""; 
	$organizationARC["NV"] = ""; 
	$organizationARC["O.E."] = ""; 
	$organizationARC["OEG"] = ""; 
	$organizationARC["OG"] = ""; 
	$organizationARC["OHG"] = ""; 
	$organizationARC["Ok"] = ""; 
	$organizationARC["Oy"] = ""; 
	$organizationARC["Oyj"] = ""; 
	$organizationARC["P.P."] = ""; 
	$organizationARC["PEEC"] = ""; 
	$organizationARC["Persekutuan Komanditer"] = ""; 
	$organizationARC["Perusahaan Umum"] = ""; 
	$organizationARC["plc"] = "";
	$organizationARC["Plc Ltd."] = ""; 
	$organizationARC["PS"] = "";
	$organizationARC["PT"] = ""; 
	$organizationARC["PT Tbk"] = ""; 
	$organizationARC["Pte"] = "";
	$organizationARC["Pte Ltd."] = ""; 
	$organizationARC["Pty. Ltd."] = ""; 
	$organizationARC["Pvt. Ltd."] = ""; 
	$organizationARC["RHF"] = ""; 
	$organizationARC["rp"] = ""; 
	$organizationARC["ry"] = ""; 
	$organizationARC["S. de R.L."] = "";
	$organizationARC["S. en C."] = ""; 
	$organizationARC["S.A."] = "";
	$organizationARC["S.A."] = ""; 
	$organizationARC["S.A.B."] = ""; 
	$organizationARC["S.A.D."] = ""; 
	$organizationARC["S.a.p.a"] = ""; 
	$organizationARC["S.A.P.I."] = ""; 
	$organizationARC["S.A.R.L."] = ""; 
	$organizationARC["S.a.s"] = ""; 
	$organizationARC["S.A.S."] = ""; 
	$organizationARC["s.c."] = ""; 
	$organizationARC["S.C.A."] = ""; 
	$organizationARC["S.c.r.l."] = ""; 
	$organizationARC["S.C.S."] = ""; 
	$organizationARC["S.E."] = ""; 
	$organizationARC["S.F."] = "";
	$organizationARC["S.K.A."] = ""; 
	$organizationARC["S.L."] = ""; 
	$organizationARC["S.L.L."] = ""; 
	$organizationARC["S.L.N.E."] = ""; 
	$organizationARC["S.n.c."] = ""; 
	$organizationARC["S.p.A."] = ""; 
	$organizationARC["S.R.L."] = ""; 
	$organizationARC["S.s."] = ""; 
	$organizationARC["SA"] = ""; 
	$organizationARC["SAE"] = ""; 
	$organizationARC["SARL"] = "";
	$organizationARC["SAS"] = ""; 
	$organizationARC["SASU"] = ""; 
	$organizationARC["SCA"] = ""; 
	$organizationARC["SCE"] = ""; 
	$organizationARC["SCOP"] = ""; 
	$organizationARC["SCS"] = ""; 
	$organizationARC["Sdn"] = "";
	$organizationARC["SE"] = ""; 
	$organizationARC["SEM"] = ""; 
	$organizationARC["SEP"] = ""; 
	$organizationARC["SF"] = ""; 
	$organizationARC["SGPS"] = ""; 
	$organizationARC["SICAF"] = ""; 
	$organizationARC["SICAV"] = ""; 
	$organizationARC["SM Pte Ltd."] = ""; 
	$organizationARC["SME Pvt"] = "";
	$organizationARC["SNC"] = ""; 
	$organizationARC["SP"] = ""; 
	$organizationARC["sp.j."] = ""; 
	$organizationARC["sp.k."] = ""; 
	$organizationARC["sp.p."] = ""; 
	$organizationARC["SpA"] = ""; 
	$organizationARC["stG"] = ""; 
	$organizationARC["Stichting"] = "";
	$organizationARC["UD"] = ""; 
	$organizationARC["Unipessoal Lda."] = "";
	$organizationARC["V.O.F."] = ""; 
	$organizationARC["v.o.s."] = ""; 
	$organizationARC["Verein"] = "";
	$organizationARC["VOF"] = ""; 
	$organizationARC["VZW"] = ""; 
	$organizationARC["Yayasan"] = "";
	$organizationARC["A.B.E.E."] = ""; 
	$organizationARC["O.B.E.E."] = ""; 
	
	//Event Relationship
	$relationTypeKeyArr = array();
	//Inter-personal Relations

	$relationTypeKeyArr["father"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["mother"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["offspring"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["daughter"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["son"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["parent"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["child"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["girl"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["granddaughter"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["grandfather"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["grandmother"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["grandson"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["great-grandchild"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["great-grandfather"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["great-grandmother"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	$relationTypeKeyArr["family relationship"]["Personal Relationships"]["Family Relationship"]="Parent/Children";
	
	//Inter-personal Relations/Family Relations/Marriage/In-Law Relationships
	$relationTypeKeyArr["spouse"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["daughter-in-law"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["ex-husband"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["ex-wife"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["husband"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["son-in-law"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["father-in-law"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["divorced-person"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["mother-in-law"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["father-in-law"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	$relationTypeKeyArr["marital-relationship"]["Personal Relationships"]["Family Relationship"]="Marriage/In-Law Relationships";
	
	//Inter-personal Relations/Family Relations/sibling relationship
	$relationTypeKeyArr["brother"]["Personal Relationships"]["Family Relationship"]="Sibling Relationship";
	$relationTypeKeyArr["sister"]["Personal Relationships"]["Family Relationship"]="Sibling Relationship";
	$relationTypeKeyArr["sibling"]["Personal Relationships"]["Family Relationship"]="Sibling Relationship";
	
	//Inter-personal Relations/Family Relations/2nd degree relationship
	$relationTypeKeyArr["cousin"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["nephew"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["niece"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["cousin-female-of-maternal-uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["cousin-female-son-of-paternal-uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["cousin-male-son-of-maternal-uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["cousin-male-son-of-paternal-uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["maternal-uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	$relationTypeKeyArr["paternal-uncle"]["Personal Relationships"]["Family Relationship"]="2nd Degree Family";
	
	//Inter-personal Relations/Friendship-acquaintance

	$relationTypeKeyArr["acquaintance"]["Personal Relationships"]="Friendship/Acquaintance";
	$relationTypeKeyArr["friend"]["Personal Relationships"]="Friendship/Acquaintance";
	
	//Inter-personal Relations/Interaction
	$relationTypeKeyArr["meeting"]["Personal Relationships"]="Interaction";
	$relationTypeKeyArr["dining"]["Personal Relationships"]="Interaction";
	$relationTypeKeyArr["communication"]["Personal Relationships"]="Interaction";
	$relationTypeKeyArr["reunion"]["Personal Relationships"]="Interaction";
	$relationTypeKeyArr["email correspondence"]["Personal Relationships"]="Interaction";
	$relationTypeKeyArr["person-person-communication-relationship"]["Personal Relationships"]="Interaction";
	
	//Workplace Relationship
	$relationTypeKeyArr["colleague"]["Personal Relationships"]["Workplace"]="Workplace Relationships";
	$relationTypeKeyArr["employee"]["Personal Relationships"]["Workplace"]="Workplace Relationships";
	$relationTypeKeyArr["representative"]["Personal Relationships"]["Workplace"]="Workplace Relationships";
	$relationTypeKeyArr["subordinate"]["Personal Relationships"]["Workplace"]="Workplace Relationships";
	$relationTypeKeyArr["superior"]["Personal Relationships"]["Workplace"]="Workplace Relationships";
	
	//Person-Organisation Relationship

	$relationTypeKeyArr["alma mater"]["Links to Organisations"]="Academic";
	$relationTypeKeyArr["employee"]["Links to Organisations"]="Workplace";
	$relationTypeKeyArr["ownership"]["Links to Organisations"]="Workplace";
	$relationTypeKeyArr["representative"]["Links to Organisations"]="Workplace";
	$relationTypeKeyArr["shareholder"]["Links to Organisations"]="Workplace";
	$relationTypeKeyArr["person organisation relationship"]["Links to Organisations"]="Workplace";
	$relationTypeKeyArr["temporary employee"]["Links to Organisations"]="Workplace";
	
	//Person-Location Relationship
	$relationTypeKeyArr["previous location"]["Links to Places"]="Travel";
	$relationTypeKeyArr["location"]["Links to Places"]="Travel";
	$relationTypeKeyArr["expected to travel"]["Links to Places"]="Travel";
	$relationTypeKeyArr["past travel"]["Links to Places"]="Travel";
	$relationTypeKeyArr["return"]["Links to Places"]="Travel";
	$relationTypeKeyArr["previous location"]["Links to Places"]="Travel";
	
	//Event Relationship
	$relationTypeKeyArr["bystander"]="Links to Events";
	$relationTypeKeyArr["organiser"]="Links to Events";
	$relationTypeKeyArr["participant"]="Links to Events";
	$relationTypeKeyArr["perpetrator"]="Links to Events";
	$relationTypeKeyArr["link to event"]="Links to Events";
	$relationTypeKeyArr["event location"]="Links to Events";
	
	//Organisation-Organisation Relationship
	$relationTypeKeyArr["link between organisations"]="Organisational Affiliation";
	$relationTypeKeyArr["subsidiary"]="Organisational Affiliation";
	$relationTypeKeyArr["organisational base"]="Organisational Affiliation";
	$relationTypeKeyArr["cooperation"]="Organisational Affiliation";
	$relationTypeKeyArr["citizen"]="Organisational Affiliation";
	$relationTypeKeyArr["countryman"]="Organisational Affiliation";
	
	//Aliases
	$relationTypeKeyArr["princess"]["Links to Organisations"]="Position";
	$relationTypeKeyArr["king"]["Links to Organisations"]="Position";
	$relationTypeKeyArr["president"]["Links to Organisations"]="Position";
	$relationTypeKeyArr["vice-president"]["Links to Organisations"]="Position";
	$relationTypeKeyArr["chairman"]["Links to Organisations"]="Position";
	
	//Other
	$relationTypeKeyArr["comparison"]="Comparisons";
	$relationTypeKeyArr["alias"]="Aliases";
	$relationTypeKeyArr["indicator-aka"]="Aliases";

	$relationTypeKeyArr["electronic-mail"]="Email Address";
	
	$relationTypeValArr = array();
// 	foreach ($relationTypeKeyArr as $k => $v){
// 		$relationTypeValArr[$v][] = $k;
// 	}
	
    //relationTypeArr is used in background.php before saving to inter_entity_relationship table
    //to translate the instance name
    //Note! key and value must be lowercase
    $relationTypeArr = array();
	$relationTypeArr["dine-with"] = "dining";
	$relationTypeArr["entity-comparison-relationship"] = "comparison";
	$relationTypeArr["person-person-communication-relationship"] = "communication";
	$relationTypeArr["person-person-meeting-relationship"] = "meeting";
	$relationTypeArr["friend-as-relationship"] = "friend";
	$relationTypeArr["person-person-relationship"] = "acquaintance";
	$relationTypeArr["correspondence-relationship"] = "email correspondence";	
	$relationTypeArr["family-relationship"] = "family relationship";
	$relationTypeArr["economic-relationship"] = "economic relationship";
	$relationTypeArr["graduated-from"] = "alma mater";
	$relationTypeArr["person-organisation-relationship"] = "person organisation relationship";
	$relationTypeArr["temporary-employee"] = "temporary employee";
	$relationTypeArr["person-location-birth-relationship"] = "place of birth";
	$relationTypeArr["person-location-relationship"] = "location";
	$relationTypeArr["person-previous-location-relationship"] = "previous location";
	$relationTypeArr["person-location-future-travel-indicator"] = "expected to travel";
	$relationTypeArr["person-location-past-travel-indicator"] = "past travel";
	$relationTypeArr["person-event-relationship"] = "link to event";
	$relationTypeArr["indicator-date-of-birth"] = "date of birth";
	$relationTypeArr["organisation-organisation-cooperation-relationship"] = "cooperation";
	$relationTypeArr["organisation-organisation-relationship"] = "link between organisations";
	$relationTypeArr["organisation-organisation-subsidiary-relationship"] = "subsidiary";
	$relationTypeArr["organisation-base-location-relationship"] = "organisational base";
	$relationTypeArr["organisation-event-relationship-indicator"] = "link to event";
	$relationTypeArr["location-location-relationship"] = "link between places";
	$relationTypeArr["location-part-of-location"] = "link between places";
	$relationTypeArr["event-location-relationship"] = "event location";
	$relationTypeArr["event-occurs-in-place-indicator"] = "event location";
	$relationTypeArr["indicator-aka"] = "alias";
	
	//exceptions - hide those concepts's related search
	$relation_exceptions["title"]="title";
	//$relation_exceptions["pro"]="pro";
	//$relation_exceptions["anti"]="anti";
	$relation_exceptions["sentiment_indicator_type"]="sentiment_indicator_type";
	$relation_exceptions["national_identity"]="national_identity";
	$relation_exceptions["islamic_expression"]="islamic_expression";
	$countries = array("afghanistan", "albania", "algeria", "andorra", "angola", "antigua and deps", "argentina", "armenia", "australia", "austria", "azerbaijan", "bahamas", "bahrain", "bangladesh", "barbados", "belarus", "belgium", "belize", "benin", "bhutan", "bolivia", "bosnia herzegovina", "botswana", "brazil", "brunei", "bulgaria", "burkina", "burundi", "cambodia", "cameroon", "canada", "cape verde", "central african rep", "chad", "chile", "china", "colombia", "comoros", "congo", "congo {democratic rep}", "costa rica", "croatia", "cuba", "cyprus", "czech republic", "denmark", "djibouti", "dominica", "dominican republic", "east timor", "ecuador", "egypt", "el salvador", "equatorial guinea", "eritrea", "estonia", "ethiopia", "fiji", "finland", "france", "gabon", "gambia", "georgia", "germany", "ghana", "greece", "grenada", "guatemala", "guinea", "guinea-bissau", "guyana", "haiti", "honduras", "hungary", "iceland", "india", "indonesia", "iran", "iraq", "ireland {republic}", "israel", "italy", "ivory coast", "jamaica", "japan", "jordan", "kazakhstan", "kenya", "kiribati", "korea north", "korea south", "kosovo", "kuwait", "kyrgyzstan", "laos", "latvia", "lebanon", "lesotho", "liberia", "libya", "liechtenstein", "lithuania", "luxembourg", "macedonia", "madagascar", "malawi", "malaysia", "maldives", "mali", "malta", "marshall islands", "mauritania", "mauritius", "mexico", "micronesia", "moldova", "monaco", "mongolia", "montenegro", "morocco", "mozambique", "myanmar, {burma}", "namibia", "nauru", "nepal", "netherlands", "new zealand", "nicaragua", "niger", "nigeria", "norway", "oman", "pakistan", "palau", "panama", "papua new guinea", "paraguay", "peru", "philippines", "poland", "portugal", "qatar", "romania", "russian federation", "rwanda", "st kitts and nevis", "st lucia", "saint vincent and the grenadines", "samoa", "san marino", "sao tome and principe", "saudi arabia", "senegal", "serbia", "seychelles", "sierra leone", "singapore", "slovakia", "slovenia", "solomon islands", "somalia", "south africa", "south sudan", "spain", "sri lanka", "sudan", "suriname", "swaziland", "sweden", "switzerland", "syria", "taiwan", "tajikistan", "tanzania", "thailand", "togo", "tonga", "trinidad and tobago", "tunisia", "turkey", "turkmenistan", "tuvalu", "uganda", "ukraine", "united arab emirates", "united kingdom", "united states", "uruguay", "uzbekistan", "vanuatu", "vatican city", "venezuela", "vietnam", "yemen", "zambia", "zimbabwe");

	//Sentiments Captions
	$sentiment_caption_arr["change-continuity-negative"]="General Sentiment";
	$sentiment_caption_arr["change-non-continuity-positive"]="General Sentiment";
	$sentiment_caption_arr["comparative-negative"]="General Sentiment";
	$sentiment_caption_arr["comparative-positive"]="General Sentiment";
	$sentiment_caption_arr["destruction-negative"]="General Sentiment";
	$sentiment_caption_arr["destruction-positive"]="General Sentiment";
	$sentiment_caption_arr["event-type-negative"]="General Sentiment";
	$sentiment_caption_arr["event-type-positive"]="General Sentiment";
	$sentiment_caption_arr["fate-in-afterlife-negative"]="General Sentiment";
	$sentiment_caption_arr["fate-in-afterlife-positive"]="General Sentiment";
	$sentiment_caption_arr["finality-unfinal"]="General Sentiment";
	$sentiment_caption_arr["importance-positive"]="General Sentiment";
	$sentiment_caption_arr["impression-negative"]="General Sentiment";
	$sentiment_caption_arr["impression-positive"]="General Sentiment";
	$sentiment_caption_arr["improvement-degrading-negative"]="General Sentiment";
	$sentiment_caption_arr["improvement-degrading-positive"]="General Sentiment";
	$sentiment_caption_arr["improvement-expectation-expression"]="General Sentiment";
	$sentiment_caption_arr["intensity-negative"]="General Sentiment";
	$sentiment_caption_arr["intensity-positive"]="General Sentiment";
	$sentiment_caption_arr["military-balance-negative"]="General Sentiment";
	$sentiment_caption_arr["military-balance-positive"]="General Sentiment";
	$sentiment_caption_arr["necessity-negative"]="General Sentiment";
	$sentiment_caption_arr["necessity-positive"]="General Sentiment";
	$sentiment_caption_arr["negative-movement-momentum"]="General Sentiment";
	$sentiment_caption_arr["negative-reference-specific-entity"]="General Sentiment";
	$sentiment_caption_arr["normality-negative"]="General Sentiment";
	$sentiment_caption_arr["normality-positive"]="General Sentiment";
	$sentiment_caption_arr["organised-chaotic-negative"]="General Sentiment";
	$sentiment_caption_arr["organised-chaotic-positive"]="General Sentiment";
	$sentiment_caption_arr["organizational-positive-object-indicator"]="General Sentiment";
	$sentiment_caption_arr["pleasure-negative"]="General Sentiment";
	$sentiment_caption_arr["political-trait-negative"]="General Sentiment";
	$sentiment_caption_arr["political-trait-positive"]="General Sentiment";
	$sentiment_caption_arr["positive-personal-intelligence-expression"]="General Sentiment";
	$sentiment_caption_arr["positive-reference-specific-entity"]="General Sentiment";
	$sentiment_caption_arr["pricing-negative"]="General Sentiment";
	$sentiment_caption_arr["pricing-positive"]="General Sentiment";
	$sentiment_caption_arr["pro-specific-collective-indicator"]="General Sentiment";
	$sentiment_caption_arr["proportionate-negative"]="General Sentiment";
	$sentiment_caption_arr["proportionate-positive"]="General Sentiment";
	$sentiment_caption_arr["Quantity-negative"]="General Sentiment";
	$sentiment_caption_arr["Quantity-positive"]="General Sentiment";
	$sentiment_caption_arr["self-identification-positive"]="General Sentiment";
	$sentiment_caption_arr["sincerity-positive"]="General Sentiment";
	$sentiment_caption_arr["size-negative"]="General Sentiment";
	$sentiment_caption_arr["size-positive"]="General Sentiment";
	$sentiment_caption_arr["social-political-phenomenon-positive"]="General Sentiment";
	$sentiment_caption_arr["stock-prognosis-positive"]="General Sentiment";
	$sentiment_caption_arr["support-negative"]="General Sentiment";
	$sentiment_caption_arr["surprise-negative"]="General Sentiment";
	$sentiment_caption_arr["tasty-negative"]="General Sentiment";
	$sentiment_caption_arr["tasty-positive"]="General Sentiment";
	$sentiment_caption_arr["trusting-negative"]="General Sentiment";
	$sentiment_caption_arr["upgrade-downgrade-positive"]="General Sentiment";
	$sentiment_caption_arr["utility-positive"]="General Sentiment";
	$sentiment_caption_arr["validity-negative"]="General Sentiment";
	$sentiment_caption_arr["validity-positive"]="General Sentiment";
	$sentiment_caption_arr["yearning-missing-vs-no-missing-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["yearning-missing-vs-no-missing-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["combatant-sentiment-reference-negative"]="Anti-RadicalSentiment";
	$sentiment_caption_arr["fitna-related-sin"]="Anti-RadicalSentiment";
	$sentiment_caption_arr["suicide"]="Anti-RadicalSentiment";
	$sentiment_caption_arr["terrorism-support-rejection"]="Anti-RadicalSentiment";
	$sentiment_caption_arr["terrorist-action"]="Anti-RadicalSentiment";
	$sentiment_caption_arr["american-anti-democratic-party-expression"]="General Sentiment";
	$sentiment_caption_arr["american-gender-equality-issue"]="General Sentiment";
	$sentiment_caption_arr["american-positive-reference-specific-person"]="General Sentiment";
	$sentiment_caption_arr["antagonistic-interaction-action"]="General Sentiment";
	$sentiment_caption_arr["anti-object-indicator"]="General Sentiment";
	$sentiment_caption_arr["blessed-vs-cursed-negative"]="General Sentiment";
	$sentiment_caption_arr["blessed-vs-cursed-positive"]="General Sentiment";
	$sentiment_caption_arr["correspondence-signature-positive"]="General Sentiment";
	$sentiment_caption_arr["generic-anti-object-indicator"]="General Sentiment";
	$sentiment_caption_arr["generic-goodness-positive"]="General Sentiment";
	$sentiment_caption_arr["generic-positive-object-indicator"]="General Sentiment";
	$sentiment_caption_arr["generic-societal-crime"]="General Sentiment";
	$sentiment_caption_arr["importance-negative"]="General Sentiment";
	$sentiment_caption_arr["praise-denounce-negative"]="General Sentiment";
	$sentiment_caption_arr["praise-denounce-positive"]="General Sentiment";
	$sentiment_caption_arr["pro-person-nickname"]="General Sentiment";
	$sentiment_caption_arr["respect-dead-person-honorific"]="General Sentiment";
	$sentiment_caption_arr["respect-live-person-honorific"]="General Sentiment";
	$sentiment_caption_arr["self-identification-negative"]="General Sentiment";
	$sentiment_caption_arr["sexual-reference-negative"]="General Sentiment";
	$sentiment_caption_arr["sexual-reference-positive"]="General Sentiment";
	$sentiment_caption_arr["sincerity-negative"]="General Sentiment";
	$sentiment_caption_arr["social-political-phenomenon-negative"]="General Sentiment";
	$sentiment_caption_arr["zoomorphic-comparison-negative"]="General Sentiment";
	$sentiment_caption_arr["zoomorphic-comparison-positive"]="General Sentiment";
	$sentiment_caption_arr["alertness-negative"]="Intellectual Traits";
	$sentiment_caption_arr["alertness-positive"]="Intellectual Traits";
	$sentiment_caption_arr["attention-negative"]="Intellectual Traits";
	$sentiment_caption_arr["attention-positive"]="Intellectual Traits";
	$sentiment_caption_arr["coherence-negative"]="Intellectual Traits";
	$sentiment_caption_arr["coherence-positive"]="Intellectual Traits";
	$sentiment_caption_arr["consistency-negative"]="Intellectual Traits";
	$sentiment_caption_arr["consistency-positive"]="Intellectual Traits";
	$sentiment_caption_arr["creativity-negative"]="Intellectual Traits";
	$sentiment_caption_arr["creativity-positive"]="Intellectual Traits";
	$sentiment_caption_arr["efficacy-negative"]="Intellectual Traits";
	$sentiment_caption_arr["efficacy-positive"]="Intellectual Traits";
	$sentiment_caption_arr["eloquence-negative"]="Intellectual Traits";
	$sentiment_caption_arr["eloquence-positive"]="Intellectual Traits";
	$sentiment_caption_arr["focusness-negative"]="Intellectual Traits";
	$sentiment_caption_arr["focusness-positive"]="Intellectual Traits";
	$sentiment_caption_arr["intelligence-negative"]="Intellectual Traits";
	$sentiment_caption_arr["intelligence-positive"]="Intellectual Traits";
	$sentiment_caption_arr["levelheadness-negative"]="Intellectual Traits";
	$sentiment_caption_arr["levelheadness-positive"]="Intellectual Traits";
	$sentiment_caption_arr["meticulousness-negative"]="Intellectual Traits";
	$sentiment_caption_arr["meticulousness-positive"]="Intellectual Traits";
	$sentiment_caption_arr["modernity-progressiveness-negative"]="Intellectual Traits";
	$sentiment_caption_arr["modernity-progressiveness-positive"]="Intellectual Traits";
	$sentiment_caption_arr["persistence-negative"]="Intellectual Traits";
	$sentiment_caption_arr["persistence-positive"]="Intellectual Traits";
	$sentiment_caption_arr["practicality-negative"]="Intellectual Traits";
	$sentiment_caption_arr["practicality-positive"]="Intellectual Traits";
	$sentiment_caption_arr["pragmatism-negative"]="Intellectual Traits";
	$sentiment_caption_arr["pragmatism-positive"]="Intellectual Traits";
	$sentiment_caption_arr["rationality-negative"]="Intellectual Traits";
	$sentiment_caption_arr["rationality-positive"]="Intellectual Traits";
	$sentiment_caption_arr["sanity-negative"]="Intellectual Traits";
	$sentiment_caption_arr["sanity-positive"]="Intellectual Traits";
	$sentiment_caption_arr["satisfaction-negative"]="Intellectual Traits";
	$sentiment_caption_arr["satisfaction-positive"]="Intellectual Traits";
	$sentiment_caption_arr["affection-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["affection-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["apology-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["apology-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["appreciation-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["appreciation-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["approval-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["approval-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["belongingness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["belongingness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["belovedness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["belovedness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["cooperativeness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["courtesy-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["empathy-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["encouragement-deterrence-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["frankness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["frankness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["friendliness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["generosity-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["gratefulness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["independence-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["independence-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["kindness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["loyalty-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["obedience-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["reliability-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["support-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["tact-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["tolerance-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["tolerance-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["trusting-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["belief-credence-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["compromising-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["compromising-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["consideration-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["consideration-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["cooperativeness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["courtesy-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["encouragement-deterrence-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["impartiality-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["impartiality-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["loyalty-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["empathy-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["forgiveness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["forgiveness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["friendliness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["generosity-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["gratefulness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["imitation-emulation-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["imitation-emulation-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["jealousy-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["jealousy-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["kindness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["leadership-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["leadership-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["obedience-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["permissivity-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["permissivity-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["positive-personal-affection-action"]="Inter-Personal Traits";
	$sentiment_caption_arr["positive-personal-efficacy-indicator"]="Inter-Personal Traits";
	$sentiment_caption_arr["respectfulness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["responsiveness-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["responsiveness-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["tact-positive"]="Inter-Personal Traits";
	$sentiment_caption_arr["unity-vs-factionism-negative"]="Inter-Personal Traits";
	$sentiment_caption_arr["incomprehensible"]="Inter-personal-traits";
	$sentiment_caption_arr["involvement-negative"]="Inter-personal-traits";
	$sentiment_caption_arr["involvement-positive"]="Inter-personal-traits";
	$sentiment_caption_arr["peaceful-vs-violent-positive"]="Inter-personal-traits";
	$sentiment_caption_arr["pretensiosity-negative"]="Inter-personal-traits";
	$sentiment_caption_arr["pretensiosity-positive"]="Inter-personal-traits";
	$sentiment_caption_arr["representative-negative"]="Inter-personal-traits";
	$sentiment_caption_arr["representative-positive"]="Inter-personal-traits";
	$sentiment_caption_arr["reliability-positive"]="Mental-intellectual Trait";
	$sentiment_caption_arr["altruism-selflessness-negative"]="Moral Traits";
	$sentiment_caption_arr["altruism-selflessness-positive"]="Moral Traits";
	$sentiment_caption_arr["bad"]="Moral Traits";
	$sentiment_caption_arr["certainty-negative"]="Moral Traits";
	$sentiment_caption_arr["certainty-positive"]="Moral Traits";
	$sentiment_caption_arr["compensation-negative"]="Moral Traits";
	$sentiment_caption_arr["compensation-positive"]="Moral Traits";
	$sentiment_caption_arr["credulousness-negative"]="Moral Traits";
	$sentiment_caption_arr["facilitation-negative"]="Moral Traits";
	$sentiment_caption_arr["facilitation-positive"]="Moral Traits";
	$sentiment_caption_arr["generic-goodness-negative"]="Moral Traits";
	$sentiment_caption_arr["honesty-negative"]="Moral Traits";
	$sentiment_caption_arr["honesty-positive"]="Moral Traits";
	$sentiment_caption_arr["humility-negative"]="Moral Traits";
	$sentiment_caption_arr["humility-positive"]="Moral Traits";
	$sentiment_caption_arr["innocence-negative"]="Moral Traits";
	$sentiment_caption_arr["innocence-positive"]="Moral Traits";
	$sentiment_caption_arr["just-negative"]="Moral Traits";
	$sentiment_caption_arr["just-positive"]="Moral Traits";
	$sentiment_caption_arr["law-abiding-negative"]="Moral Traits";
	$sentiment_caption_arr["law-abiding-positive"]="Moral Traits";
	$sentiment_caption_arr["legal-offence"]="Moral Traits";
	$sentiment_caption_arr["liberal-dictatorial-negative"]="Moral Traits";
	$sentiment_caption_arr["liberal-dictatorial-positive"]="Moral Traits";
	$sentiment_caption_arr["mass-violence-event-type"]="Moral Traits";
	$sentiment_caption_arr["morality-negative"]="Moral Traits";
	$sentiment_caption_arr["morality-positive"]="Moral Traits";
	$sentiment_caption_arr["peaceful-vs-violent-negative"]="Moral Traits";
	$sentiment_caption_arr["right-wrong-negative"]="Moral Traits";
	$sentiment_caption_arr["right-wrong-positive"]="Moral Traits";
	$sentiment_caption_arr["terrorist-negative"]="Moral Traits";
	$sentiment_caption_arr["criminality-negative"]="Moral Traits";
	$sentiment_caption_arr["american-anti-conservative-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["american-anti-left-wing-republican-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["american-anti-liberal-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["american-anti-obama-term"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["american-anti-republican-party-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["american-anti-tea-party-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["american-anti-white-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-algerian-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-america-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-black-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-christian-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-egyptian-military-regime-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-egyptian-mursi-regime-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-fatah-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-gay-homophobic-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-george-w-bush-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-hamas-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-hindi-buddhist-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-hizballah-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-iranian-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-iraqi-government-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-isis-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-israel-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-jewish-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-jordan-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-maghreb-government-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-moroccan-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-muslim-brotherhood-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-muslim-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-non-muslim-general-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-qatar-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-russian-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-saudi-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-shiite-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-sunni-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-syrian-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-the-shahs-regime-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-turkish-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["anti-western-expression"]="Negative Referencesto Ethnic/Religious Groups";
	$sentiment_caption_arr["ambition-negative"]="Personality Traits";
	$sentiment_caption_arr["ambition-positive"]="Personality Traits";
	$sentiment_caption_arr["amusement-negative"]="Personality Traits";
	$sentiment_caption_arr["amusement-positive"]="Personality Traits";
	$sentiment_caption_arr["anticipation-negative"]="Personality Traits";
	$sentiment_caption_arr["anticipation-positive"]="Personality Traits";
	$sentiment_caption_arr["bravery-negative"]="Personality Traits";
	$sentiment_caption_arr["bravery-positive"]="Personality Traits";
	$sentiment_caption_arr["capability-negative"]="Personality Traits";
	$sentiment_caption_arr["capability-positive"]="Personality Traits";
	$sentiment_caption_arr["credulousness-positive"]="Personality Traits";
	$sentiment_caption_arr["determination-negative"]="Personality Traits";
	$sentiment_caption_arr["determination-positive"]="Personality Traits";
	$sentiment_caption_arr["disgusting-pleasing-negative"]="Personality Traits";
	$sentiment_caption_arr["disgusting-pleasing-positive"]="Personality Traits";
	$sentiment_caption_arr["enthusiasm-negative"]="Personality Traits";
	$sentiment_caption_arr["enthusiasm-positive"]="Personality Traits";
	$sentiment_caption_arr["flexibility-negative"]="Personality Traits";
	$sentiment_caption_arr["flexibility-positive"]="Personality Traits";
	$sentiment_caption_arr["frugality-negative"]="Personality Traits";
	$sentiment_caption_arr["frugality-positive"]="Personality Traits";
	$sentiment_caption_arr["happiness-negative"]="Personality Traits";
	$sentiment_caption_arr["happiness-positive"]="Personality Traits";
	$sentiment_caption_arr["interestedness-negative"]="Personality Traits";
	$sentiment_caption_arr["interestedness-positive"]="Personality Traits";
	$sentiment_caption_arr["luck-negative"]="Personality Traits";
	$sentiment_caption_arr["luck-positive"]="Personality Traits";
	$sentiment_caption_arr["maturity-negative"]="Personality Traits";
	$sentiment_caption_arr["maturity-positive"]="Personality Traits";
	$sentiment_caption_arr["optimism-negative"]="Personality Traits";
	$sentiment_caption_arr["optimism-positive"]="Personality Traits";
	$sentiment_caption_arr["positivity-negative"]="Personality Traits";
	$sentiment_caption_arr["positivity-positive"]="Personality Traits";
	$sentiment_caption_arr["pride-negative"]="Personality Traits";
	$sentiment_caption_arr["pride-positive"]="Personality Traits";
	$sentiment_caption_arr["proactive-vs-reactive-negative"]="Personality Traits";
	$sentiment_caption_arr["proactive-vs-reactive-positive"]="Personality Traits";
	$sentiment_caption_arr["punctuality-negative"]="Personality Traits";
	$sentiment_caption_arr["punctuality-positive"]="Personality Traits";
	$sentiment_caption_arr["radical-self-image-expression"]="Personality Traits";
	$sentiment_caption_arr["religiously-orthodox-positive"]="Personality Traits";
	$sentiment_caption_arr["responsibility-negative"]="Personality Traits";
	$sentiment_caption_arr["responsibility-positive"]="Personality Traits";
	$sentiment_caption_arr["self-confidence-negative"]="Personality Traits";
	$sentiment_caption_arr["self-confidence-positive"]="Personality Traits";
	$sentiment_caption_arr["seriousness-negative"]="Personality Traits";
	$sentiment_caption_arr["seriousness-positive"]="Personality Traits";
	$sentiment_caption_arr["sophistication-vs-naivite-negative"]="Personality Traits";
	$sentiment_caption_arr["sophistication-vs-naivite-positive"]="Personality Traits";
	$sentiment_caption_arr["stability-negative"]="Personality Traits";
	$sentiment_caption_arr["stability-positive"]="Personality Traits";
	$sentiment_caption_arr["suitability-negative"]="Personality Traits";
	$sentiment_caption_arr["suitability-positive"]="Personality Traits";
	$sentiment_caption_arr["surprise-positive"]="Personality Traits";
	$sentiment_caption_arr["thriftiness-negative"]="Personality Traits";
	$sentiment_caption_arr["thriftiness-positive"]="Personality Traits";
	$sentiment_caption_arr["virtuous-trait-honorific"]="Personality Traits";
	$sentiment_caption_arr["vitality-negative"]="Personality Traits";
	$sentiment_caption_arr["vitality-positive"]="Personality Traits";
	$sentiment_caption_arr["zealotry-negative"]="Personality Traits";
	$sentiment_caption_arr["zealotry-positive"]="Personality Traits";
	$sentiment_caption_arr["calmness-negative"]="Personality Traits";
	$sentiment_caption_arr["calmness-positive"]="Personality Traits";
	$sentiment_caption_arr["caution-negative"]="Personality Traits";
	$sentiment_caption_arr["caution-positive"]="Personality Traits";
	$sentiment_caption_arr["cynicism-sarcasm-negative"]="Personality Traits";
	$sentiment_caption_arr["cynicism-sarcasm-positive"]="Personality Traits";
	$sentiment_caption_arr["healthy-negative"]="Physical Traits";
	$sentiment_caption_arr["healthy-positive"]="Physical Traits";
	$sentiment_caption_arr["height-degree-negative"]="Physical Traits";
	$sentiment_caption_arr["height-degree-positive"]="Physical Traits";
	$sentiment_caption_arr["beauty-negative"]="Physical Traits";
	$sentiment_caption_arr["beauty-positive"]="Physical Traits";
	$sentiment_caption_arr["cleanliness-negative"]="Physical Traits";
	$sentiment_caption_arr["cleanliness-positive"]="Physical Traits";
	$sentiment_caption_arr["integrity-wholeness-negative"]="Physical Traits";
	$sentiment_caption_arr["integrity-wholeness-positive"]="Physical Traits";
	$sentiment_caption_arr["perfection-negative"]="Physical Traits";
	$sentiment_caption_arr["perfection-positive"]="Physical Traits";
	$sentiment_caption_arr["speed-fast-slow-negative"]="Physical Traits";
	$sentiment_caption_arr["speed-fast-slow-positive"]="Physical Traits";
	$sentiment_caption_arr["strength-negative"]="Physical Traits";
	$sentiment_caption_arr["strength-positive"]="Physical Traits";
	$sentiment_caption_arr["safety-negative"]="Physical-traits";
	$sentiment_caption_arr["safety-positive"]="Physical-traits";
	$sentiment_caption_arr["regime-legitimacy-negative"]="PoliticalSentiment";
	$sentiment_caption_arr["anti-radical-expression"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["apostasy-trait"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["combatant-sentiment-reference-positive"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["fate-in-afterlife"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["infidel-acts-justification-jihad"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["jihadi-title"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["radical-expression-non-muslim-land"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["radical-non-muslim-trait-religious"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["radical-term-for-non-muslim"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["rebellion-against-allah"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["religiously-orthodox-negative"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["secular-ideological-stream"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["sunniRadicalSentiment"]="Radical Islamic Sentiment";
	$sentiment_caption_arr["equality-negative"]="Social Status";
	$sentiment_caption_arr["equality-positive"]="Social Status";
	$sentiment_caption_arr["freedom-negative"]="Social Status";
	$sentiment_caption_arr["acceptance-negative"]="Social Status";
	$sentiment_caption_arr["acceptance-positive"]="Social Status";
	$sentiment_caption_arr["famous-well-known-negative"]="Social Status";
	$sentiment_caption_arr["famous-well-known-positive"]="Social Status";
	$sentiment_caption_arr["freedom-positive"]="Social Status";
	$sentiment_caption_arr["respectfulness-positive"]="Social Status";
	$sentiment_caption_arr["respectibility-negative"]="Social Status";
	$sentiment_caption_arr["respectibility-positive"]="Social Status";
	$sentiment_caption_arr["richness-negative"]="Social Status";
	$sentiment_caption_arr["richness-positive"]="Social Status";
	$sentiment_caption_arr["social-networking-capability-negative"]="Social Status";
	$sentiment_caption_arr["social-networking-capability-positive"]="Social Status";
	$sentiment_caption_arr["successfullness-negative"]="Social Status";
	$sentiment_caption_arr["successfullness-positive"]="Social Status";
	$sentiment_caption_arr["upgrade-downgrade-negative"]="Social Status";
	
	

