User:Djsasso/Sources subscript1.js

function Ohc_sourcename(){ // source names to 'wikiname' and adopts appropriate italicisation // right hand column should be the exact wiki-name (inc…

function Ohc_sourcename(){
 
//	source names to 'wikiname' and adopts appropriate italicisation 
//	right hand column should be the exact wiki-name (including brackets), and the left hand column should be all the possible domain names and pipe variants 
//	the 'cleanup' part of the script should relocate the disambiguator, if any
//	this function should not operate on sources whose names are already correctly stated

	var table = {
		'(?:the ?|)(?:ny ?times(?:\\.com|)|New York Times)':			'The New York Times',
		'iht(?:\\.com|)':						'International Herald Tribune',
		'laht(?:\\.com|)':						'Latin America Herald Tribune',
		'ibtimes(?:\\.co(?:m|\\.uk)|)':						'International Business Times',
		'(?:wsj(?:\\.com|)|Wall (?:Street|Str?\\.?) Journal)':			'The Wall Street Journal',
		'newsday(?:\\.com)':						'Newsday',
		'(?:nydailynews(?:\\.com|)|(?:New York|NY|n\\. ?y\\.) Daily ?News)':	'Daily News (New York)',  
		'(?:ny|n\\. ?y\\.) ?post(?:\\.com|)':					'New York Post',
		'(?:New York |NY ?|)observer(?:\\.com)':						'The New York Observer',
		'(?:New York |NY ?)observer(?:\\.com|)':						'The New York Observer',
		'baltimore ?sun(?:\\.com|)':					'The Baltimore Sun',
		'(?:the|)boston(?:globe|)\\.com':				'The Boston Globe',
		'the boston globe':						'The Boston Globe',
		'(?:the|)bostonherald\\.com':				'Boston Herald',
		'the boston herald':						'Boston Herald',
		'washington ?post(?:\\.com|)':					'The Washington Post',
		'washington ?times(?:\\.com|)':					'The Washington Times',
		'(?:la ?times(?:\\.com|)|L\\. ?A\\. Times)':			'Los Angeles Times',
		'(?:the ?|)Los Angeles Times':				'Los Angeles Times',
		'(?:(?:the ?|)chicago ?|)sun[ -]?times(?:\\.com|)':			'Chicago Sun-Times',
		'(?:the ?|)chicagotribune(?:\\.com|)':					'Chicago Tribune',
		'miami ?herald(?:\\.com|)':					'Miami Herald',
		'sun-?sentinel(?:\\.com|)':					'Sun-Sentinel',
		'(?:chron|houstonchronicle)(?:\\.com|)':			'Houston Chronicle',
		'(?:sf ?gate|(?:the ?|)SF ?Chronicle)(?:\\.com|)':				'San Francisco Chronicle',
		'(?:the ?|)denver ?post(?:\\.com|)':					'The Denver Post',
		'deseretnews(?:\\.com|)':					'Deseret News',
		'contracostatimes(?:\\.com|)':					'Contra Costa Times',
		'freep(?:\\.com|)':						'Detroit Free Press',
		'insidebayarea(?:\\.com|)':					'Oakland Tribune',
		'philly\\.com':						'Philadelphia Daily News',
		'tribtotalmedia(?:\\.com|)':					'Pittsburgh Tribune-Review',
		'mercurynews(?:\\.com|)':					'San Jose Mercury News',
		'(?:seattle ?)pi(?:\\.com|)':			'Seattle Post-Intelligencer',
		'(?:the ?|)(?:seattle |)post[- ]intelligencer':			'Seattle Post-Intelligencer',
		'(?:minnesota ?|)startribune(?:\\.com|)':					'Star Tribune',
		'star-telegram(?:\\.com)':					'Fort Worth Star-Telegram',
		'orlandosentinel(?:\\.com|)':					'Orlando Sentinel',
		'tbo(?:\\.com|)':						'The Tampa Tribune',
		'Palm ?Beach ?Post(?:\\.com|)':					'The Palm Beach Post',
		'(?:the ?|)tampa ?bay(?:times|)(?:\\.com|)':			'Tampa Bay Times',
		'sptimes(?:\\.com|)':					'St Petersburg Times', //became Tampa Bay Times in 2012
		'(?:azcentral|az ?republic)(?:\\.com|)':			'The Arizona Republic',
		'dallasnews(?:\\.com|)':					'The Dallas Morning News',
		'oregonlive(?:\\.com|)':					'The Oregonian',
		'politico(?:\\.com|)':			'Politico',
		'philly\\.newspaperdirect\\.com':				'The Philadelphia Inquirer',
		'(?:cleveland(?:\\.com)|plain ?dealer)':			'The Plain Dealer',
		'(?:utsandiego(?:\\.com|)|(?:the |)San Diego Union[- ]Tribune)':		'The San Diego Union-Tribune',
		'seattle ?times(?:\\.com|)':					'The Seattle Times',
		'se ?times(?:\\.com|)':						'Southeast European Times',
		'sl ?trib(?:\\.com|)':						'The Salt Lake Tribune',
		'Tennessean(?:\\.com|)':					'The Tennessean',
		'thehill(?:\\.com|)':							'The Hill',
		'nj(?:\\.com)':							'The Star-Ledger',
		'usatoday(?:\\.com|)':						'USA Today',
		'USA ?TODAY':						'USA Today',
		'Independent\\.com':						'Santa Barbara Independent',
		'(?:Christian ?Science ?Monitor|csmonitor)(?:\\.com|)':		'The Christian Science Monitor',
		'Christian ?post(?:\\.com|)':					'The Christian Post',
		'(?:(?:The ?|)Columbus ?|)dispatch\\.com':							'The Columbus Dispatch',
		'bizjournals(?:\\.com|)':					'The Business Journals',
		
		'adelaide ?now(?:\\.com\\.au|)':					'The Advertiser (Adelaide)',  
		'couriermail(?:\\.com\\.au|)':						'The Courier-Mail',  
		'smh(?:\\.com\\.au|)':						'The Sydney Morning Herald',  
		'Sydney Morning Herald':					'The Sydney Morning Herald',  
		'theage(?:\\.com\\.au|)':					'The Age',
		'theaustralian(?:\\.com\\.au|)':				'The Australian',
		'brisbane ?times(?:\\.com\\.au|)':				'Brisbane Times',
		'canberra ?times(?:\\.com\\.au|)':				'The Canberra Times',
		'(?:the ?|)herald ?sun(?:\\.com\\.au|)':			'Herald Sun',
		'(?:Daily|the)telegraph(?:\\.com\\.au)':				'The Daily Telegraph (Australia)',
		'nz ?herald(?:\\.co\\.nz|\\.com|)':				'The New Zealand Herald',
		'New Zealand Herald':						'The New Zealand Herald',
		'odt(?:\\.co\\.nz|\\.com|)':				'Otago Daily Times',
		'(?:stuff\\.com\\.nz\\/|)dominionpost':				'The Dominion Post',
		'(?:stuff\\.com\\.nz\\/|)manawatu-standard':				'Manawatu Standard',
		'(?:stuff\\.com\\.nz\\/|)nelson[- ]mail':				'The Nelson Mail',
		'(?:stuff\\.com\\.nz\\/|)marlborough[- ]express':				'The Marlborough Express',
		'press\\.co\\.nz':				'The Press',
		'(?:stuff\\.com\\.nz\\/|)southland ?times':				'The Southland Times',
		'sundaynews\\.co\\.nz':				'Sunday News (New Zealand)',
		'sundaystartimes\\.co\\.nz': 				'Sunday Star-Times',
		'(?:stuff\\.com\\.nz\\/|)taranaki[- ]daily[- ]news':				'Taranaki Daily News',
		'(?:stuff\\.com\\.nz\\/|)timaru[- ]herald':				'The Timaru Herald',
		'(?:stuff\\.com\\.nz\\/|)waikatotimes':				'Waikato Times', 
		'stuff\\.co\\.nz':				'Stuff (company)', 
		'(?:(?:the|)globeandmail(?:\\.com|)|globe & mail)':		'The Globe and Mail',
		'(?:the ?|)(?:Toronto |)Globe and Mail':			'The Globe and Mail',
		'\\|montreal gazette\\]': 					'|The Gazette]',
		'(?:the |)montreal ?gazette(?:\\.com|)': 			'The Gazette (Montreal)',
		'(?:the ?|)national ?post(?:\\.com|)':				'National Post',
		'(?:the ?|)ottawa ?citizen(?:\\.com|)':				'Ottawa Citizen',
		'theprovince(?:\\.com|)':					'The Province',
		'thestar(?:\\.com|)\\.my':					'The Star (Malaysia)',
		'thestar(?:\\.com)':						'Toronto Star',
		'the ?toronto ?star(?:\\.com|)':				'Toronto Star',
		'(?:the |)toronto ?sun(?:\\.com|)':				'Toronto Sun',
		'vancouver ?sun(?:\\.com|\\b)':					'The Vancouver Sun',
		'(?:the ?|)Winnipeg ?free ?press(?:\\.com|)':			'Winnipeg Free Press',
 
		'business ?insider(?:\\.com|)':				'Business Insider',
		'bbc\\.co(m|\\.uk)\\/news':				'BBC News',
		'bbc ?news\\.com':						'BBC News',
		'bbc\\.co(m|\\.uk)\\/sport':				'BBC Sport',
		'(?:espn ?|)cricinfo(?:\\.com|)':				'ESPNcricinfo',
		'(?:espn ?|)f1(?:\\.com|)':				'ESPN F1',
		'flight ?global(?:\\.com|)':			'FlightGlobal',
		'euobserver(?:\\.com|)':					'EUobserver',
		'Belfast ?(?:Telegraph|telegraph\\.co\\.uk)':			'The Belfast Telegraph',
		'Daily ?telegraph(?:\\.co\\.uk|)':			'The Daily Telegraph',
		'Telegraph(?:\\.co\\.uk|)':			'The Daily Telegraph',
		'Sunday Telegraph':						'The Sunday Telegraph',
		'(?:(?:the|)Timesonline.co(?:\\.uk|m)|(?:the ?|)Times ?on-?line)':			'The Times',
		'Thetimes\\.co\\.uk':			'The Times',
		'TheSundaytimes(?:\\.co\\.uk|)':			'The Sunday Times',
		'touringcartimes(?:\\.com|)':			'Touring Car Times',
		'times ?of ?malta(?:\\.com|)':			'The Times (Malta)',
		'(?:the ?|)(?:financial ?times|\\bft)(?:\\.com|\\.co\\.uk|)':		'Financial Times',
		'(?:the ?|media|sport|)(?:guardian(?:\\.co(?:m|\\.uk)| unlimited| online|))':			'The Guardian',
		'(?:the ?|)scotsman(?:\\.com|)':				'The Scotsman',
		'Independent(?:\\.co\\.uk)':					'The Independent',
		'(?:the (?:Daily |Sunday|)Express|Express\\.co\\.uk)': 		'Daily Express',
		'(?:the (?:Daily |Sunday )Mirror|(?:the|Sunday|)Mirror\\.co\\.uk)': 		'Daily Mirror',
		'(?:(?:dailymail|thisismoney)(?:\\.co(?:\\.uk|m)|)|the Daily Mail|Mail Online)':	'Daily Mail',
		'dailystar(?:\\.co\\.uk)':			'Daily Star (United Kingdom)',
		'dailystar(?:\\.com\\.lb)':			'The Daily Star (Lebanon)',
		'thesun(?:\\.co\\.uk|)':					'The Sun (United Kingdom)',
		'this ?is ?leicestershire(?:\\.co\\.uk|)':		'Leicester Mercury',
 		'(?:thisislondon\\.co\\.uk|this is london)':		'London Evening Standard', //note: this title has no disambiguator
 		'(?:thisisgrimsby\\.co\\.uk|this is grimsby)':		'Grimsby Telegraph', 
		'(?:(?:London|)evening|)standard\\.co\\.uk':					'London Evening Standard',
		'(?:the |)(?:London |)evening standard':		'London Evening Standard',
		'london[- ]?gazette(?:\\.com|\\.co\\.uk|)': 	'The London Gazette',
		'Birmingham ?mail(?:\\.co\\.uk|)': 	'Birmingham Mail',
		'Peterbrough ?today(?:\\.co\\.uk|)': 	'Peterbrough Telegraph',
		'blackpool ?gazette(?:\\.co\\.uk|)': 	'Blackpool Gazette',
		'(?:the |)express ?and ?star(?:\\.com|\\.co\\.uk|)':		'Express & Star',
		'(?:irish ?|)independent\\.ie':					'The Irish Independent',
		'irish ?examiner(?:\\.com|\\.ie|)':				'Irish Examiner',
		'irish ?times(?:\\.com|\\.ie|)':				'The Irish Times',
		'gibraltar ?Chronicle(?:\\.gi|)':				'Gibraltar Chronicle',
		'gulfnews(?:\\.com|)':				'Gulf News',
		'gulf-times(?:\\.com|)':				'Gulf Times',
		'panorama(?:\\.gi)':				'Panorama (Gibraltar)',
		'The ?courier(?:\\.co.uk|)':				'The Courier',
		'Herald ?Scotland(?:\\.com|)':				'The Herald (Glasgow)',
		'DailyRecord(?:\\.co\\.uk)':			'Daily Record (Scotland)',
		'the Daily Record':			'Daily Record (Scotland)',
		'sundaymail(?:\\.co\\.uk|)':				'Sunday Mail (Scotland)',
		'eveningtimes(?:\\.co\\.uk|)':				'Evening Times',
		'j(?:erusalem ?|)post(?:\\.co(?:\\.il|m)|)':			'The Jerusalem Post',
		'(?:the |)Buenos ?Aires ?Herald(?:\\.com|)':				'Buenos Aires Herald',
		'Thedailystar(?:\\.net|)':					'The Daily Star',
		'thesundaily(?:\\.com|)\\.my':					'The Sun (Malaysia)',
		'(?:the ?|)malay ?mail(?: ?online|)(?:\\.com|)':					'The Malay Mail',
 
		'(?:the |)business[\\- ]standard(?:\\.com|)':				'Business Standard',
		'(?:the |)deccan ?chronicle(?:\\.com|)':				'Deccan Chronicle',
		'(?:the |)deccan ?herald(?:\\.com|)':					'Deccan Herald',
		'dnaindia(?:\\.com|)':						'Daily News and Analysis',
		'Economic ?Times(?:(?:\\.indiatimes|)\\.com|)':				'The Economic Times',
		'MaharashtraTimes(?:(?:\\.indiatimes|)\\.com|)':				'Maharashtra Times',
		'mydigitalfc(?:\\.com|)':					'Financial Chronicle',
		'financial ?express(?:\\.com|)':				'The Financial Express',
		'(?:the ?|)Hindustan ?times(?:\\.com|)':				'Hindustan Times',
		'(?:the)?hindu(?:\\.com|)':					'The Hindu',
		'(?:the ?|)hindu ?business ?line(?:\\.com|\\.in|)':			'Business Line',
		'Indian ?Express(?:\\.com|)':					'The Indian Express',
		'express(?:india\\.com)':					'The Indian Express',
		'(?:(?:the ?|)new ?indian ?express|Expressbuzz)(?:\\.com|)':					'The New Indian Express',
		'dailypioneer(?:\\.com|)':					'The Pioneer (Indian newspaper)',
		'Thestatesman(?:\\.net|)':					'The Statesman',
		'the ?sunday[- ]guardian(?:\\.com|)':					'The Sunday Guardian',
		'Telegraph ?india(?:\\.com|)':				'The Telegraph (Calcutta)',
		'(?:the ?|)Times ?of ?india(?:(?:\\.indiatimes|)\\.com|)':		'The Times of India',
		'tribune ?india(?:\\.com|)':					'The Tribune',
		'brecorder(?:\\.com|)':						'Business Recorder',
		'dailytimes(?:\\.com\\.pk|)':					'Daily Times (Pakistan)',
		'bnltimes(?:\\.com|)':					'Daily Times (Malawi)',
		'malawivoice(?:\\.com|)':					'Malawi Voice',
		'nyasatimes(?:\\.com|)':					'Nyasa Times',
		'dawn ?newspapers?(?:\\.com|)':					'Dawn (newspaper)',
		'dawn(?: ?newspapers?|)(?:\\.com)':				'Dawn (newspaper)',
		'(?:express ?|)tribune(?:\\.com\\.pk|)':			'The Express Tribune',
		'tribune(?:\\.com\\.pk)':					'The Express Tribune',
		'frontier ?post(?:\\.com\\.pk|)':					'The Frontier Post',
		'thenational(?:\\.ae|)':					'The National (Abu Dhabi)',
		'nation(?:\\.com\\.pk)':					'The Nation (Pakistan)',
		'mwnation(?:\\.com|)':					'The Nation (Malawi)',
		'thenationonlineng(?:\\.net|)':					'The Nation (Nigeria)',
		'nationmultimedia(?:\\.com|)':					'The Nation (Thailand)',
		'navbharat ?times(?:(?:\\.indiatimes|)\\.com|)':				'Navbharat Times',
		'india ?times(?:\\.com|)':				'The Times of India',	//this line should be the last of all indiatimes.com domains

		'dailynht(?:\\.com|) ':						'National Herald Tribune',
		'thenews(?:\\.com\\.pk)':					'The News International',
		'pakobserver(?:\\.net|)':					'Pakistan Observer',
		'pakistan ?today(?:\\.com\\.pk|)':					'Pakistan Today',

		'Atlantic ?Sun(?:\\.com|)':				'Atlantic Sun',
		'Business ?Day(?:\\.co\\.za|)':				'Business Day (South Africa)',
		'Cape ?Argus(?:\\.co\\.za|)':				'Cape Argus',
		'Cape ?Times(?:\\.co\\.za|)':				'Cape Times',
		'(?:cayman|)compass(?:cayman|)(?:\\.com)':				'Cayman Compass',
		'City ?Press(?:\\.co\\.za|)':				'City Press (South Africa)',
		'dispatch(?:\\.co\\.za|)':				'Daily Dispatch',
		'Daily ?Maverick(?:\\.co\\.za|)':				'Daily Maverick',
		'DailyNews(?:\\.co\\.za)':				'Daily News (Durban)',
		'Financial ?Mail(?:\\.co\\.za|)':			'Financial Mail',
		'(?:greengazette|gics)(?:\\.co\\.za|)':			'Government Gazette of South Africa',
		'iol(?:\\.co\\.za)':					'Independent Online (South Africa)',
		'(?:the ?|)j(?:ewish ?|)c(?:hronicle|)(?:\\.com|)':			'The Jewish Chronicle',
		'saJewishReport(?:\\.co\\.za|)':				'Jewish Report',
		'mg(?:\\.co\\.za)':					'Mail & Guardian',
		'the m&g online':					'Mail & Guardian',
		'Monserrat ?reporter(?:\\.com|)':				'The Monserrat Reporter',
		'guampdn(?:\\.com|)':				'Pacific Daily News',
		'thenassauguardian(?:\\.com|)':				'The Nassau Guardian',
		'Post(?:\\.co\\.za)':					'Post (South Africa)',
		'Pretoria ?News(?:\\.co\\.za|)':				'Pretoria News',
		'timeslive(?:\\.co\\.za)':				'Sunday Times (Johannesburg)',
		'citizen(?:\\.co\\.za)':				'The Citizen (South Africa)',
		'Independent ?on ?Saturday(?:\\.co\\.za|)':				'The Independent on Saturday',
		'The ?Mercury(?:\\.co\\.za)':				'The Mercury (South Africa)',
		'The ?New ?Age(?:\\.co\\.za|)':				'The New Age (South African newspaper)',
		'samoaobserver(?:\\.ws|)':				'Samoa Observer',
		'(?:The|)Star(?:\\.co\\.za)':				'The Star (South Africa)',
		'(?:the|)Sowetan(?:live|)(?:\\.co\\.za|)':				'The Sowetan',
		'(?:The|)stkittsnevisobserver(?:\\.com)':				'The St. Kitts-Nevis Observer',
		'Sunday ?Independent(?:\\.co\\.za)':				'The Sunday Independent (South Africa)',
		'SundayTimes(?:\\.co\\.za)':				'The Sunday Times (South Africa)',
		'TheTimes(?:\\.co\\.za)':				'The Times (South Africa)',
		'virginislandsdailynews(?:\\.com)':				'The Virgin Islands Daily News',
		'witness(?:\\.co\\.za)':				'The Witness (South African newspaper)',
		'nation\\.co\\.ke':				'Daily Nation',
		'Sudan ?Tribune(?:\\.com|)':				'Sudan Tribune',

		'(?:asia ?|\\ba)Times(?:\\.com|)':				'Asia Times Online',
		'(?:The ?|)bangkok ?Post(?:\\.com|)':				'Bangkok Post',
		'(?:The ?|)borneo ?Post(?:\\.com|)':				'Borneo Post',
		'(?:The ?|)China ?Post(?:\\.com(?:\\.tw|)|)':			'China Post',
		'Caixin(?:\\.com|)':					'Caixin',
		'Chinadaily(?:\\.com\\.cn|)':					'China Daily',
		'China ?daily ?asia(?:\\.com|)':					'China Daily',
		'chinadigitaltimes(?:\\.com|\\.net|)':				'China Digital Times',
		'wantchinatimes(?:\\.com|\\.net|)':				'Want China Times',
		'cphpost(?:\\.dk|)':						'The Copenhagen Post',
		'Copenhagen Post':						'The Copenhagen Post',
		'enet(?: ?english|)(?:\\.gr|)':					'Eleftherotypia',
		'(?:the ?|)(?:global ?times|环球时报)(?:\\.cn|)':				'Global Times',
		'Korea ?Herald(?:\\.com|)':					'The Korea Herald',
		'Korea ?times(?:\\.com|\\.co\\.kr|)':				'The Korea Times',
		'(?:the ?|)jakartapost(?:\\.com|)':				'The Jakarta Post',
		'(?:the ?|)jakarta ?globe(?:\\.com|)':				'Jakarta Globe',
		'(?:The ?|)Japan ?Times(?:\\.com|)':				'The Japan Times',
		'hurriyet ?daily ?news(?:\\.com|)':				'Hürriyet Daily News',
		'h[uü]rriyet':				'Hürriyet Daily News',
		'Jordan ?Times(?:\\.com|)':					'The Jordan Times',
		'Kathimerini(?:\\.gr|)':					'Kathimerini',
		'krakow ?post(?:\\.com|)':					'Krakow Post',
		'kyiv ?post(?:\\.com|)':					'Kyiv Post',
		'nst\.com\.my':				'New Straits Times',
		'people(?:daily|)\\.com\\.cn':				'People\'s Daily',
		'peopledaily':							'People\'s Daily',
		'philstar(?:\\.com|)':						'The Philippine Star',
		'inquirer\\.net':						'Philippine Daily Inquirer',
		'prague ?post(?:\\.com|)':					'The Prague Post',
		'hongkongfp(?:\\.com|)':						'Hong Kong Free Press',
		'Hong Kong Free Press HKFP':						'Hong Kong Free Press',
		'scmp(?:\\.com|)':						'South China Morning Post',
		'(?:thestandard(?:\\.com\\.hk|)|(?:hong kong|hk) standard)':	'The Standard (Hong Kong)',
		'eastandard(?:\\.net|)':					'The Standard (Kenya)',
		'(?:The|)Straits ?Times(?:\\.com|)':				'The Straits Times',
		'(?:The|)TaipeiTimes(?:\\.com|)':				'Taipei Times',
		'Times ?of ?israel(?:\\.com|)':					'The Times of Israel',
		'Todayonline(?:\\.com|)':				'Today (Singapore newspaper)',
		'(?:The|)vienna ?times(?:\\.at|)':				'Vienna Times',
		'derstandard(?:\\.at|)':					'Der Standard',
		'Today\'?s ?zaman(?:\\.com|)':					'Today\'s Zaman',
		'gazeta ?vatan(?:\\.com|)':					'Vatan',

		//News business politics magazines
		'Businessweek(?:\\.com| magazine|)':				'Bloomberg BusinessWeek',
		'Counterpunch(?:\\.org|)':					'CounterPunch',
		'Ebony(?:\\.com| magazine)':					'Ebony',
		'Economist(?:\\.co\\.uk|\\.com)':				'The Economist',
		'Essence(?:\\.com| magazine)':					'Essence',
		'Forbes(?:\\.com| magazine)':					'Forbes',
		'Fortune(?:(?:\\.cnn|)\\.com| magazine)':					'Fortune',
		'Foreignaffairs(?:\\.com|)':					'Foreign Affairs',
		'Foreignpolicy(?:\\.com|)':					'Foreign Policy',
		'Maclean\'?s(?:\\.ca| Canada|)':				'Maclean\'s',
		'Motherjones(?:\\.com|)':					'Mother Jones',
		'Nationalreview(?:\\.com|)':			'National Review',
		'(?:the |)New ?Statesman(?:\\.co.uk|\\.com|)':			'New Statesman',
		'Newsweek(?:\\.com| magazine)':					'Newsweek',
		'Spectator(?:\\.co\\.uk|)':					'The Spectator',
		'Time(?:\\.com| magazine| \\(magazine\\)|)':			'Time (magazine)',
		'Life(?:\\.com| magazine| \\(magazine\\)|)':			'Life',
		'The ?atlantic(?:\\.com| magazine)':				'The Atlantic',
		'The ?nation(?:\\.com| magazine)':				'The Nation',
 
		//general interest, sport leisure lifestyle
		'(?:ew|entertainmentweekly)(?:\\.com|)':			'Entertainment Weekly',
		'people(?: ?magazine|)(?:\\.com|)':				'People (magazine)',
		'(?:the |)radio ?times(?:\\.co.uk|\\.com|)':			'Radio Times',
		'TVguide(?:\\.com|)':						'TV Guide',
		'fast ?company(?:\\.com|)':						'Fast Company',
		'Hello!? ?magazine(?:\\.com|)':					'Hello',
		'(?:india ?today(?:\\.com|)|intoday\\.in)':				'India Today',
		'marie ?claire(?:\\.co\\.uk|\\.com|)':					'Marie Claire',
		'(?:new york|ny) ?mag(?:azine|)(?:\\.com|)':			'New York (magazine)',
		'new ?yorker(?:\\.com|)':					'The New Yorker',
		'time ?out(?:\\.com(?:\\.\\w{2}|)|)':					'Time Out (magazine)',
		'OK!? ?magazine(?:\\.com|)':					'OK!',
		'OK\\.co\\.uk':					'OK!',
		'onthemedia(\\.org|)':					'On the Media',
		'Usmagazine(?:\\.com|)':					'Us Weekly',
		'village ?voice(?:\\.com|)':						'The Village Voice',
		'theweek(?:\\.com|)':				'The Week',
 
		//new media with original content
		'(?:the ?|)huffington ?post(?:\\.(?:com(?:\\.\\w{2}|)|ca|fr|co\\.uk)|)':			'HuffPost',
		'huff(?:ington ?|)post(?: ?canada| uk)':			'HuffPost',
		'digitalspy(?:\\.co\\.uk|\\.com(?:\\.au|)|\\.ie)':			'Digital Spy',
		'(?:Quartz(?: magazine|)|qz.com)':					'Quartz (publication)',
		'reason(?: magazine|)(?:\\.com|)':				'Reason',
		'salon(?:\\.com|)':						'Salon (website)',
		'Slate(?:\\.com|\\.fr| magazine|)':			'Slate (magazine)',
		'theregister(?:\\.co\\.uk|\\.com|)':				'The Register',
		'theweekinchess(?:\\.com|)':				'The Week in Chess',
 
		//arts & lit
		'Aesthetica ?magazine(?:\\.com|)':			'Aesthetica',
		'Alt ?Press(?:\\.com|)':				'Alternative Press',
		'American ?way ?mag(?:azine|)(?:\\.com|)':				'American Way',
		'Apollo[\\- ]?magazine(?:\\.com|)':			'Apollo',
		'Art ?and ?Antiques mag(?:azine|)(?:\\.com|)':		'Art & Antiques',
		'Art ?in ?America ?magazine(?:\\.com|)':		'Art in America',
		'Art ?Monthly(?:\\.co\\.uk)':				'Art Monthly',
		'Artinfo(?:\\.com|)':					'Art+Auction',
		'Artforum(?:\\.com|)':					'Artforum',
		'Artist ?Profile(?:\\.com\\.au)':			'Artist Profile',
		'Artlink(?:\\.com\\.au)':				'Artlink',
		'ARTnews(?:\\.com|)':					'ARTnews',
		'ArtReview(?:\\.com|)':					'ArtReview',
		'(?:The ?|)Asia ?Literary ?Review(?:\\.com|)':			'Asia Literary Review',
		'(?:The ?|)Australian ?Book ?Review(?:\\.com|)':		'Australian Book Review',
		'classical-Music(?:\\.com|)':				'BBC Music Magazine',
		'bombsite(?:\\.com|)':					'Bomb',
		'Bookforum(?:\\.com|)':					'Bookforum',
		'Border ?Crossings ?mag(?:azine|)(?:\\.com|)':		'Border Crossings',
		'Brick ?mag(?:azine|)(?:\\.com|)':			'Brick',
		'notesandqueries(?:\\.ca|)':				'Canadian Notes & Queries',
		'asiancha(?:\\.com|)':					'Cha: An Asian Literary Journal',
		'Chapman-pub(?:\\.co\\.uk)':				'Chapman',
		'Clashmusic(?:\\.com|)':				'Clash',
		'crq(?:\\.org\\.uk|)|Classic Record Collector':		'Classical Recordings Quarterly',
		'Contemporary[\\- ]?mag(?:azine|)(?:\\.com|)':		'Contemporary',
		'Drowned ?in ?Sound(?:\\.com|)':			'Drowned in Sound',
		'Esquire(?:[- ]?magazine|\\.com)':			'Esquire',
		'Exclaim(?:\\.ca|)':					'Exclaim!',
		'Flash ?Art ?online(?:\\.com|)':			'Flash Art',
		'Flaunt ?(?:magazine|)(?:\\.com|)':			'Flaunt',
		'frieze(?:\\.com|)':					'frieze',
		'Gangway(?:\\.net|)':					'Gangway',
		'Geist(?:\\.com|)':					'Geist',
		'GHLL(?:\\.com|)':					'GHLL',
		'GQ[- ]?(?:magazine|)(?:\\.com|\\.co\\.uk)':					'GQ',
		'Grain ?magazine(?:\\.ca|)':				'Grain',
		'(?:The ?|)Gramophone(?:\\.co\\.uk|\\.net|)':			'Gramophone',
		'Granta(?:\\.com|)':					'Granta',
		'Hot ?Press(?:\\.com|)':				'Hot Press',
		'moreIntelligentLife(?:\\.com|)':			'Intelligent Life',
		'(?:The ?|)Irish ?Pages(?:\\.org|)':				'Irish Pages',
		'cadencejazzmagazine(?:\\.com|)':					'Cadence Magazine',
		'cashbox(?:\\.com| magazine)':					'Cashbox',
		'coda(?: ?magazine|1958)(?:\\.com|)':					'CODA',
		'downbeat(?: ?magazine|)(?:\\.com|)':					'Down Beat',
		'fanfaremag(?:\\.com|)':					'Fanfare',
		'jazzjournal(?:\\.com|)':					'Jazz Journal',
		'jazz ?times(?:\\.com|)':					'JazzTimes',
		'mississippi ?rag(?:\\.com|)':					'The Mississippi Rag',
		'shook(?: ?magazine|)(?:\\.fm|)':					'Shook',
		'interview ?magazine(?:\\.com|)':					'Interview',
		'kerrang(?:\\.com|!? magazine)':				'Kerrang!',
		'Lapham\'s ?Quarterly(?:\\.org|)':			'Lapham\'s Quarterly',
		'Lesinrocks(?:\\.com|)':					'Les Inrockuptibles',
		'Limelight(?:\\.com\\.au)':				'Limelight',
		'Literary ?Review(?:\\.co\\.uk)':			'Literary Review',
		'Maxim ?(?:\\.com|\\.co\\.uk|Magazine)':				'Maxim',
		'Meanjin(?:\\.com|)':					'Meanjin',
		'Melodic(?:\\.net|)(?:\\.com|)':			'Melodic (magazine)',
		'Mixmag(?:\\.net|)':					'Mixmag',
		'Mixonline(?:\\.com|)':					'Mix (magazine)',
		'Modern ?Painters(?:\\.com)':				'Modern Painters',
		'Mojo(?:4music\\.com| magazine)':				'Mojo',
		'Muse ?mag(?:azine|)(?:\\.hk)':				'Muse',
		'musicOMH\\.com':					'musicOMH',
		'MusicRadar\\.com':					'MusicRadar',
		'musicweek(?:\\.co(?:m|\\.uk))':					'Music Week',
		'nplusonemag(?:\\.com|)':				'n+1',
		'New ?Welsh ?Review(?:\\.com|)':			'New Welsh Review',
		'(?:NME(?:\\.com|)|New Musical Express)':		'NME',
		'Opera(?:\\.co\\.uk)':					'Opera',
		'Opera ?Canada(?:\\.ca|)':				'Opera Canada',
		'Opera ?News(?:\\.com|)':				'Opera News',
		'Oxford ?Poetry\\.co\\.uk':				'Oxford Poetry',
		'Paste(?:(?: ?magazine|)\\.com|)':				'Paste',
		'Pitchfork\\.com':					'Pitchfork',
		'Playboy(?:\\.com|\\.co\\.uk| Magazine)':					'Playboy',
		'Pshares(?:\\.org|)':					'Ploughshares',
		'Poetry ?magazine(?:\\.org|)':				'Poetry',
		'Poetry ?Ireland\\.ie':					'Poetry Ireland Review',
		'Poetry(?:\\.co\\.uk)':					'Poetry London',
		'poetry ?salzburg(?:\\.com|)':				'Poetry Salzburg Review',
		'pw(?:\\.org|)':					'Poets & Writers',
		'PopMatters(?:\\.com|)':				'PopMatters',
		'q(?:themusic\\.com| magazine)':			'Q (magazine)',
		'record ?collector ?mag(?:\\.com|azine|)':				'Record Collector',
		'Rolling ?stone(?:\\.com(?:\\.\\w{2}|)| magazine)':			'Rolling Stone',
		'Shape ?(?:magazine|)(?:\\.com|)':			'Shape',
		'sound ?on ?sound(?:\\.com|)':				'Sound on Sound',
		'Spin ?(?:magazine|)(?:\\.com|)':			'Spin',
		'Sputnikmusic(?:\\.com|)':				'Sputnikmusic',
		'Standpoint ?mag(?:azine|)(?:\\.co\\.uk|)':		'Standpoint',
//		'Stylus(?:\\.com|)':			'Stylus Magazine',
		'Tate(?:\\.org\\.uk|)':					'Tate Etc.',
		'aprweb(?:\\.org|)':					'The American Poetry Review',
		'painters-online(?:\\.co\\.uk|)':			'The Artist',
		'Believer ?mag(?:azine|)(?:\\.com|)':			'The Believer',
		'(?:The |)Brooklyn ?Rail(?:\\.org|)':			'The Brooklyn Rail',
		'Burlington(?:\\.org\\.uk| magazine)':				'The Burlington Magazine',
		'The ?Fly\\.co\\.uk':				'The Fly',
		'ny ?Books(?:\\.com|)':					'The New York Review of Books',
		'(?:The ?|)Paris ?Review(?:\\.org|)':			'The Paris Review',
		'TheReader(?:\\.org\\.uk)':				'The Reader',
		'Stinging ?Fly(?:\\.org|)':				'The Stinging Fly',
		'the-tls(?:\\.co\\.uk|)':				'The Times Literary Supplement',
		'TheWire\\.co\\.uk':				'The Wire',
		'McSweeneys(?:\\.net|)':				'Timothy McSweeney\'s Quarterly Concern',
		'Tin ?House(?:\\.com|)':				'Tin House',
		'Uncut\\.co\\.uk':					'Uncut',
		'vibe\\.com':					'Vibe (magazine)',
		'All-Story(?:\\.com|)':					'Zoetrope: All-Story',
 
		//special interest
		'allure(?:\\.com|)':				'Allure',
		'aviationweek(?:\\.com|)':				'Aviation Week & Space Technology',
		'auto ?sport(?:\\.com|)':				'Autosport',
		'badger ?gp(?:\\.com|)':				'Badger GP',
		'cosmopolitan(?:\\.com| magazine)':			'Cosmopolitan',
		'elle(?:uk|)(?:\\.com|\\.\\w{2,3}| magazine)':			'Elle',
		'britannica(?:\\.com|)':				'Encyclopædia Britannica',
		'Encyclop(?:ae|æ|e)dia britannica':		'Encyclopædia Britannica',
    	'engadget(?:\\.com|)':				'Engadget',
		'flight ?global(?:\\.com|)':			'Flightglobal',
		'FairwaysandGreens(?:\\.com|)':			'Fairways + Greens',
		'fhm(?:\\.com|)':				'FHM',
		'ForeGeorgia(?:\\.com|)':			'Fore Georgia',
		'f1 ?racing(?:\\.co\\.uk| magazine|)':			'F1 Racing',
		'glamour(?:\\.com|\\.\\w{2,3}| magazine)':			'Glamour',
		'GolfCourseNewsInternational(?:\\.com|)':			'Golf Course News International',
		'GolfDigest(?:\\.com|)':			'Golf Digest',
		'estateswestGolfLiving(?:\\.com|)':			'Golf Living',
		'Golf(?:magazine|)(?:\\.com|)':			'Golf Magazine',
		'Golfinternationalmag(?:\\.com|)':			'Golf International Magazine',
		'GolfPunkmag(?:\\.com|)':			'Golf Punk',
		'GolfWorld(?:\\.com|)':			'Golf World',
		'Golf ?Styles ?online(?:\\.com|)':			'GolfStyles',
		'Golf ?Today(?:\\.co\\.uk| ?magazine|)':			'Golf Today',
		'Golfweek(?:\\.com)':			'Golfweek',
		'HKGolfer(?:\\.com|)':			'HK Golfer',
		'InsideGolf(?:\\.co\\.au|)':			'Inside Golf',
		'arniesKingdom(?:\\.com|)':			'Kingdom magazine',
		'Linksmagazine(?:\\.com|)':			'Links',
		'NationalClubGolfer(?:\\.com|)':			'National Club Golfer',
		'nuts ?magazine(?:\\.co\\.uk|)':			'Nuts',
		'Putt ?magazine(?:\\.co\\.uk|)':			'Putt',
		'Scoregolf(?:\\.com|)':			'Scoregolf',
		'sport[- ]?magazine(?:\\.co\\.uk|)':			'Sport (UK magazine)',
		'TheCut(?:\\.co\\.nz|)':			'The Cut',
		'TodaysGolfer(?:\\.co\\.uk|)':			'Today\'s Golfer',
		'thelawyer(?:\\.com|)':			'The Lawyer',
		'Hollywood ?Reporter(?:\\.com|)':			'The Hollywood Reporter',
		'playbill(?:\\.com|)':				'Playbill',
		'variety(?:\\.com| magazine)':			'Variety',
		'teenvogue(?:\\.com|)':			'Teen Vogue',
		'vogue(?:\\.co\\.uk)':			'Vogue (British magazine)',
		'vogue(?:\\.fr)':			'Vogue Paris',
		'vogue(?:\\.(?:com|\\w{2})| magazine)':			'Vogue',
		'(?:vanityfair(?:\\.com|)|vf\\.com)':				'Vanity Fair',
		'wsc(?:\\.co\\.uk)':			'When Saturday Comes',
		'motor ?sport ?magazine(?:\\.com|)':		'Motor Sport',
		'nature(?:\\.com|)':				'Nature',
		'Road ?(?:And|&) ?Track(?:\\.com|)':				'Road & Track',
		'science(?:\\.com|)':				'Science',
		'scientificamerican(?:\\.com|)':			'Scientific American',
		'hi-?fi ?news(?:\\.co\\.uk|)':			'Hi-Fi News & Record Review',
		'what ?hi-?fi(?:\\.com|\\.co\\.uk|)':			'What Hi-Fi? Sound and Vision',
		'stereophile(?:\\.com|)':				'Stereophile',
		'theabsolutesound(?:\\.com|)':			'The Absolute Sound',
		'autocar(?:\\.co\\.uk|)':		'Autocar',
		'autoexpress(?:\\.co\\.uk|)':		'Auto Express',
		'carmagazine(?:\\.co\\.uk|)':		'Car Magazine',
		'fastcar(?:\\.co\\.uk|)':		'Fast Car',
		'top ?gear(?:\\.com|)':				'Top Gear',
		'newscientist(?:\\.com|)':				'New Scientist',
		'Billboard(?:\\.com|\\.biz| magazine|)':		'Billboard (magazine)',
		'Deadline(?:\\.com)':							'Deadline Hollywood',
		'Empire ?(?:online(?:\\.com|)|magazine)':		'Empire (film magazine)',
		'computer ?world(?:\\.com| magazine|)':		'Computerworld',
		'computer ?weekly(?:\\.com| magazine|)':		'Computer Weekly',
		'information ?week(?:\\.com| magazine|)':		'InformationWeek',
		'pc ?world(?:\\.com| magazine|)':			'PC World',
		'pc ?mag(?:\\.com|)':			'PC Magazine',
		'mac ?world(?:\\.com| magazine|)':			'MacWorld',
		'mma ?weekly(?:\\.com|)':			'MMA Weekly',
		'nationalgeographic(?:\\.com| magazine)':		'National Geographic',
		'navytimes(?:\\.com|)':			'Navy Times',
		'nonleaguedaily(?:\\.com|)':			'Non League Daily',
		'sporting ?life(?:\\.com| magazine)':		'Sporting Life (British newspaper)',
		'(?:si|sportsillustrated)(?:\\.cnn|)(?:\\.com)':		'Sports Illustrated',
		'swimming ?world(?: magazine(?:\\.com|)|)':		'Swimming World',
		'thestage(?:\\.co\\.uk|)':		'The Stage',
		'The ?verge(?: \\(website\\)|\\.com)':			'The Verge',
		'Windingroad(?:\\.com|)':			'Winding Road',
		'Wired(?:\\.com|\\.co\\.uk| magazine)':			'Wired (magazine)',
		'(?:Womens ?Wear ?Daily|Wwd)(?:\\.com|)':		'Women\'s Wear Daily',
		'(?:The |)CIA (?:World |)Factbook':			'The World Factbook',
 
		//Professional
		'Medicalnewstoday(?:\\.com|)':			'Medical News Today',
		'publishersweekly(?:\\.com|)':			'Publishers Weekly',
		'ad(?:vertising|\\s|)age(?:\\.com|)':		'Advertising Age',
		'adweek(?:\\.com|)':		'Adweek',
		'bmj(?:\\.com|)':					'BMJ',
		'brandrepublic(?:\\.com|)':					'Brand Republic',
		'brandweek(?:\\.com|)':					'Brandweek',
		'campaignlive(?:\\.com|\\.co\\.uk|)':					'Campaign (magazine)',
		'campaign ?uk':					'Campaign (magazine)',
		'marketingweek(?:\\.com|\\.co\\.uk|)':					'Marketing Week',
		'editor ?and ?publisher(?:\\.com|)':					'Editor & Publisher',
		'thelancet(?:\\.com|)':				'The Lancet',
 
		//Spanish-language dailies
		'abc\\.es':						'ABC (newspaper)',
		'cincodias(?:\\.com|\\.es|)':			'Cinco Días',
		'elcorreo(?:\\.com|\\.es|)':			'El Correo',
		'eleconomista(?:\\.com|\\.es|)':			'El Economista',
		'elmundo(?:\\.es)':					'El Mundo (Spain)',
		'elmundo(?:\\.com)':				'El Mundo (Colombia)',
		'elmundodeportivo(?:\\.com|\\.es|)':		'Mundo Deportivo',
		'elpais(?:\\.com|\\.es|)':				'El País',
		'elperiodicodearagon(?:\\.com|\\.es|)':		'El Periódico',
		'el ?universal(?:\\.com\\.mx)':				'El Universal (Mexico City)',
		'estadiodeportivo(?:\\.com|\\.es|)':		'Estadio Deportivo',
		'expansion(?:\\.com|\\.es)':			'Expansión',
		'larazon(?:\\.com|\\.es|)':				'La Razón',
		'lavanguardia(?:\\.com|\\.es|)':			'La Vanguardia',
		'lavozdegalicia(?:\\.com|\\.es|)':			'La Voz de Galicia',
		'marca(?:\\.com|\\.es|)':				'Marca (newspaper)',
		'neg-ocio(?:\\.com|\\.es|)':			'Negocio & Estilo de Vida',
		'negocios(?:\\.com|\\.es|)':			'La Gaceta de los Negocios',
		'noticias-bolsa(?:\\.com|\\.es|)':			'Noticias Bolsa',
		'publico(?:\\.es)':				'Público (Spain)',
		'publico(?:\\.pu)':				'Público (Portugal)',
		'quediario(?:\\.com|\\.es|)':			'Qué!',
		'sport(?:\\.es)':				'Sport (Spanish newspaper)',
		'superdeporte(?:\\.com|\\.es|)':			'Super Deporte',
 
		'diariodecaracas(?:\\.com)':			'El Diario de Caracas',
		'diariovea(?:\\.com\\.ve|)': 			'Diario VEA',
		'el-nacional(?:\\.com)':			'El Nacional (Caracas)',
		'talcualdigital(?:\\.com)':		'Tal Cual',
		'ultimasnoticias(?:\\.com\\.ve|)':		'Últimas Noticias',
		'eluniversal(?:\\.com)':	'El Universal',

//Finnish-language dailies (Helsinki) 
		'Aamulehti(?:\\.fi|)':		'Aamulehti',
		'Aamuposti(?:\\.fi|)':		'Aamuposti',
		'Demari(?:\\.fi|)':		'Demari',
		'hs\\.fi':		'Helsingin Sanomat',
		'kansanuutiset(?:\\.fi|)':		'Kansan Uutiset',
		'kauppalehti(?:\\.fi|)':		'Kauppalehti',
		'kaloussanomat(?:\\.fi|)':		'Taloussanomat',

//French-language dailies 
		'la-croix(?:\\.com|\\.fr|)':				'La Croix',
		'(?:le ?|)monde[- ]diplomatique(?:\\.fr|)':			'Le Monde diplomatique',
		'(?:le ?|)monde(?:\\.com|\\.fr|)':				'Le Monde',
		'(?:le ?|)figaro(?:\\.com|\\.fr|)':				'Le Figaro',
		'le ?parisien(?:\\.com|\\.fr|)':				'Le Parisien',
		'lib[eé]ration\\.fr':					'Libération',
		'humanite(?:\\.com|\\.fr|)':				'L\'Humanité',
		'francetvinfo(?:\\.com|\\.fr|)':			'France Info',
		'francesoir(?:\\.com|\\.fr|)':			'France Soir',
		'mediapart(?:\\.com|\\.fr)':			'Mediapart',
		'lesechos(?:\\.com|\\.fr|)':				'Les Échos (France)',
		'latribune(?:\\.com|\\.fr|)':			'La Tribune',
		'lequipe(?:\\.com|\\.fr|)':				'L\'Équipe',
		'20minutes(?:\\.com|\\.fr|)':			'20 Minutes',
		'directmatin(?:\\.com|\\.fr|)':			'Direct Matin',
		'directsoir(?:\\.com|\\.fr|)':			'Direct Soir',
		'metro\\.co\\.uk':					'Metro (British newspaper)',
		'lecanardenchaine(?:\\.com|\\.fr|)':			'Le Canard enchaîné',
		'(?:le|)nouvelobs(?:\\.com|\\.fr|)':			'Le Nouvel Observateur',
		'lexpress(?:\\.com|\\.fr|)':				'L\'Express',
		'lepoint(?:\\.com|\\.fr|)':				'Le Point',
		'lejdd(?:\\.com|\\.fr|)':				'Le Journal du Dimanche',
		'marianne-en-ligne(?:\\.com|\\.fr|)':		'Marianne',
		'parismatch(?:\\.com|\\.fr|)':			'Paris Match',
		'telerama(?:\\.com|\\.fr|)':				'Télérama',
		'courrierinternational(?:\\.com|\\.fr|)':		'Courrier International',
		'minute-hebdo(?:\\.com|\\.fr|)':			'Minute',
		'ledevoir(?:\\.com|)':					'Le Devoir',
		'lesoleil(?:\\.com|)':					'Le Soleil',
		'ouest-france(?:\\.fr|)':					'Ouest-France',
		'lejournaldemontreal(?:\\.com|)':			'Le Journal de Montréal',
		'(?:la|cyber)presse(?:\\.com|\\.ca)':			'La Presse (Canadian newspaper)',
		'journaldequebec(?:\\.com|)':				'Le Journal de Québec',
		'elwatan(?:\\.com|)':					'El Watan',
		'politico(?:\\.eu|\\.fr)':			'Politico Europe',
 
		//German-language dailies
		'20min(?:\\.ch|)':				'20 Minuten',
		'Aargauer ?Zeitung(?:\\.ch|)':				'Aargauer Zeitung',
		'baz(?:\\.ch|)':				'Basler Zeitung',
		'Baslerstab(?:\\.ch|)':				'Baslerstab',
		'Berner ?Zeitung(?:\\.ch|)':				'Berner Zeitung',
		'Bieler ?Tagblatt(?:\\.ch|)':				'Bieler Tagblatt',
		'Blick(?:\\.ch|)':				'Blick',
		'tagesspiegel(?:\\.de|)':				'Der Tagesspiegel',
		'Sudostschweiz(?:\\.ch|)':				'Die Südostschweiz',
		'bild(?:\\.de|)':				'Bild',
		'taz(?:\\.de|)':				'die Tageszeitung',
		'welt(?:\\.de|)':				'Die Welt',
		'zeit(?:\\.de|)':				'Die Zeit',
		'ftd(?:\\.de|)':				'Financial Times Deutschland',
		'faz(?:\\.net|)':				'Frankfurter Allgemeine Zeitung',
		'fr-online(?:\\.de|)':				'Frankfurter Rundschau',
		'handelsblatt(?:\\.de)':				'Handelsblatt',
		'jungefreiheit(?:\\.de|)':				'Junge Freiheit',
		'jungewelt(?:\\.de|)':				'Junge Welt',
		'Luzerner ?Zeitung(?:\\.ch|)':				'Neue Luzerner Zeitung',
		'nzz(?:\\.ch|)':				'Neue Zürcher Zeitung',
		'neues-deutschland(?:\\.de|)':				'Neues Deutschland',
		'Tagblatt(?:\\.ch|)':				'St. Galler Tagblatt',
		'sueddeutsche(?:\\.de|)':				'Süddeutsche Zeitung',
		'Tages ?Anzeiger(?:\\.ch|)':				'Tages Anzeiger',
		'TagesWoche(?:\\.ch|)':				'TagesWoche',

		//Italian-language newspapers
		'avvenire(?:\\.it)':			'Avvenire',
		'corriere(?:\\.it)':			'Corriere della Sera',
		'corrieredellosport(?:\\.it|)':			'Corriere dello Sport – Stadio',
		'ilfattoquotidiano(?:\\.it|)':			'Il Fatto Quotidiano',
		'ilfoglio(?:\\.it|)':			'Il Foglio',
		'ilgiornale(?:\\.it|)':			'Il Giornale',
		'ilgiorno(?:\\.it|)':			'Il Giorno (newspaper)',
		'ilmanifesto(?:\\.it|)':			'il manifesto',
		'ilmattino(?:\\.it|)':			'Il Mattino',
		'ilmessaggero(?:\\.it|)':			'Il Messaggero',
		'ilrestodelcarlino(?:\\.it|)':			'il Resto del Carlino',
		'ilriformista(?:\\.it|)':			'Il Riformista',
		'ilsecoloxix(?:\\.it|)':			'Il Secolo XIX',
		'ilsole24ore(?:\\.com|)':			'Il Sole 24 Ore',
		'iltempo(?:\\.it|)':			'Il Tempo',
		'gazzetta(?:\\.it)':			'La Gazzetta dello Sport',
		'lanazione(?:\\.it|)':			'La Nazione',
		'repubblica(?:\\.it|)':			'la Repubblica',
		'lastampa(?:\\.it|)':			'La Stampa',
		'espressonline(?:\\.it|)':			'L\'espresso',
		'lettera43(?:\\.it)':			'lettera43',
		'punto-informatico(?:\\.it|)':			'Punto Informatico',
		'tuttosport(?:\\.com)':			'Tuttosport',
		'wallstreetitalia(?:\\.com|)':			'Wall Street Italia',

		//Afrikaans-language dailies
		'Beeld(?:\\.com|)':				'Beeld',
		'Die ?Burger(?:\\.co\\.za|)':				'Die Burger',
		'Die ?Son(?:\\.co\\.za|)':				'Die Son',
		'Isolezwe(?:\\.co\\.za|)':				'Isolezwe',
		'Volksblad(?:\\.com|)':				'Volksblad',
		'Ziwaphi(?:\\.co\\.za|)':				'Ziwaphi',

		//Portuguese-language dailies
		'folha(?:\\.info|)\\b':				'Brasil em Folhas',
		'correiobraziliense(?:\\.com\\.br|)':			'Correio Braziliense',
		'dm(?:\\.com\\.br)':					'Diário da Manhã',
		'dou(?:\\.com\\.br)':					'Diário Oficial da União',
		'em(?:\\.com\\.br)':					'Estado de Minas',
		'folha(?:\\.com\\.br|)':				'Folha de S. Paulo',
		'jbonline(?:\\.com\\.br|)':				'Jornal do Brasil',
		'estadao(?:\\.com\\.br|)':				'O Estado de S. Paulo',
		'oglobo.globo(?:\\.com|)':				'O Globo',
		'zh(?:\\.com\\.br)':				'Zero Hora',

		//Other language dailies -Europe, Middle East
		'aawsat(?:\\.com|)':				'Asharq Al-Awsat',
		'ad(?:\\.nl)':				'Algemeen Dagblad',
		'aftonbladet(?:\\.se|)':				'Aftonbladet',
		'al ?ahram(?:\\.org\\.eg|)':				'Al-Ahram',
		'alo(?:\\.rs|)':				'Alo!',
		'Berlingske(?:\\.dk|)':				'Berlingske Tidende',
		'blesk(?:\\.cz|)':				'Blesk',
		'blic(?:\\.rs|)':				'Blic',
		'Arbejderen(?:\\.dk|)':				'Dagbladet Arbejderen',
		'Borsen(?:\\.dk|)':				'Dagbladet Børsen',
		'Information(?:\\.dk)':				'Dagbladet Information',
		'Politiken(?:\\.dk|)':				'Politiken',
		'dagen(?:\\.se|)':				'Dagen',
		'dabladet(?:\\.no|)':				'Dagbladet',
		'danas(?:\\.rs)':				'Danas (newspaper)',
		'dn(?:\\.se)':				'Dagens Nyheter',
		'depers(?:\\.nl|)':				'De Pers',
		'hrvatskarijec(?:\\.rs)':				'Hrvatska riječ',
//		'informer(?:\\.rs|)':				'Informer (newspaper)',  //notoriously unreliable
		'kurir(?:\\.rs|)':				'Kurir',
		'libertatea(?:\\.rs|)':				'Libertatea (Pančevo)',
		'magyarszo(?:\\.rs|)':				'Magyar Szó',
		'politika(?:\\.rs|)':				'Politika',
		'zurnal(?:\\.rs|)':				'Sportski žurnal',
		'telegraaf(?:\\.nl|)':				'De Telegraaf',
		'novosti(?:\\.rs|)':				'Večernje novosti',
		'volkskrant(?:\\.nl|)':				'De Volkskrant',
		'egypttoday(?:\\.com|)':				'Egypt Today',
		'ekstrabladet(?:\\.dk|)':				'Ekstra Bladet',
		'expressen(?:\\.se|)':				'Expressen',
		'e-fakt(?:\\.pl|)':				'Fakt',
		'wyborcza(?:\\.pl|)':				'Gazeta Wyborcza',
		'postimees(?:\\.ee|)':				'Postimees',
		'baltictimes\\.com':				'The Baltic Times',
		'gp\\.se':				'Göteborgs-Posten',
		'haaretz\\.co(?:\\.il|m)':				'Haaretz',
		'ha\'aretz':				'Haaretz',
		'fd\\.nl':				'Het Financieele Dagblad',
		'parool(?:\\.nl|)':				'Het Parool',
		'ihned(?:\\.cz|)':				'Hospodářské noviny',
		'hurriyet(?:\\.com\\.tr|)':			'Hürriyet',
		'izvestia(?:\\.ru|)':				'Izvestia',
		'jp\\.dk':				'Jyllands-Posten',
		'lidovky(?:\\.cz|)':				'Lidové noviny',
		'clubmetro(?:\\.nl|)':				'Metro',
		'idnes(?:\\.cz|)':				'Mladá fronta DNES',
		'nd\\.nl':				'Nederlands Dagblad',
		'nrc\\.nl':				'NRC Handelsblad',
		'nrcnext(?:\\.nl|)':				'NRC Next',
		'gazeta-pravda(?:\\.ru|)':				'Pravda',
		'pravda(?:\\.com\\.ua)':			'Ukrayinska Pravda',
		'pravo.novinky(?:\\.cz|)':				'Právo',
		'sports\\.pl':				'Przegląd Sportowy',
		'pb\\.pl':				'Puls Biznesu',
		'reformatorischdagblad(?:\\.nl|)':				'Reformatorisch Dagblad',
		'rp\\.pl':				'Rzeczpospolita',
		'sondagsavisen(?:\\.dk|)':				'Søndagsavisen',
		'spitsnet(?:\\.nl|)':				'Spits (newspaper)',
		'svd(?:\\.se|)':				'Svenska Dagbladet',
		'sydsvenskan(?:\\.se)':				'Sydsvenskan',
		'trouw(?:\\.nl|)':				'Trouw',
		'urbanavis(?:\\.dk|)':				'Urban',
		'Večernji(?:\\.hr|)':				'Večernji list',
		'weekendavisen(?:\\.dk|)':				'Weekendavisen',
		'ynet ?news(?:\\.com)':				'Ynetnews',

		//Other language dailies -Asia
		'asahi\\.com':						'Asahi Shimbun',
		'dong-?a(?: ilbo|)(?:\\.com|)':					'The Dong-a Ilbo',
		'Mainichi(?:\\.co\\.jp|)':				'Mainichi Shimbun',
		'(?:the ?|)(?:daily |)yomiuri(?:\\.co\\.jp|)':				'Yomiuri Shimbun',
		'(?:the ?|)yomiuri daily':				'Yomiuri Shimbun',
		'(?:The ?|)liberty ?times(?:\\.com(?:\\.tw|)|)':		'Liberty Times',
		'自由(?:時|電子)報':										'Liberty Times',
		'am730\\.com\\.hk':					'am730 |language=zh |location=Hong Kong',
		'(?:appledaily|蘋果日報)(?:\\.com|)':				'Apple Daily |language=zh',
		'(?:(?:apple daily |)蘋果日報)':				'Apple Daily |language=zh',
		'hk\\.apple\\.nextmedia\\.com':				'Apple Daily |language=zh |location=Hong Kong',
		'(?:appledaily\\.com\\.tw)':				'Apple Daily |language=zh |location=Taiwan',
		'hk01\\.com':					'HK01 |language=zh |location=Hong Kong',
		'metrohk\\.com\\.hk':					'Metro Daily |language=zh |location=Hong Kong',
		'(?:metrodaily\\.hk|都市日報)':					'Metro Daily |language=zh |location=Hong Kong',
		'(?:thestandnews\\.com)':				'Stand News |language=zh |location=Hong Kong',
		'立場新聞 Stand News':				'Stand News |language=zh |location=Hong Kong',
		'ming ?pao ?(?:daily ?(?:news ?|)|)(?:\\.com|)':					'Ming Pao',
		'(?:明[報报]|明報新聞網 - 每日明報)':					'Ming Pao |language=zh',
		'sing ?pao ?(?:\\.com|)':					'Sing Pao Daily News |language=zh',
		'成[報报]':					'Sing Pao Daily News |language=zh',
		'wenweipo(?:\\.com|)':					'Wen Wei Po |language=zh',
		'文(匯報|汇报)':					'Wen Wei Po |language=zh',
		'(?:大公[報报]|takungpao(?:\\.com\\.hk|))':					'Ta Kung Po |language=zh',
		'(?:香港經濟日報|香港经济日报|hket.com)':					'Hong Kong Economic Times |language=zh',
		'oriental ?daily(?:\\.com\\.hk|)':			'Oriental Daily News',
		'the-sun(?:\\.on\\.cc|)':				'The Sun (Hong Kong)',
		'the-sun(?:\\.on\\.cc|)':				'The Sun (Hong Kong)',
		'(?:(?:on\\.cc|)东网|東網)':			'Oriental Daily News |language=zh',
		'sing ?tao(?:\\.(?:com|ca)|)':					'Sing Tao Daily',
		'星[岛島]日[報报]':					'Sing Tao Daily |language=zh',
		'紐約時報':					'New York Times |language=zh',
		'Yahoo 新聞香港':				'Yahoo! News |language=zh',

		//Other language magazines
		'spiegel(?:\\.de|)':					'Der Spiegel',
		'stern(?:\\.de|)':					'Stern',
		'wiwo(?:\\.de|)':					'Wirtschaftswoche'
	};
 
	var word, newWord;
	for (var word in table) {
	newWord = '$1' + table[ word ] + '$2';
	newWord1 = 'title= <!--ACTUAL ARTICLE TITLE BELONGS HERE! --> \|work$1' + table[ word ] + '$2';
	newWord2 = '$1\'\'' + table[ word ] + '\'\'$2';
	newWord3 = '$1\'\'\[\[' + table[ word ] + '\]\]\'\'$2';
	newWord4 = 'work$1' + table[ word ] + '$2';

		var txt="";
		try {
	//  within citation templates - italicisation ensured [later] through change of parameters by function 'Ohc_sourcework'
		//  source names to 'wikiname', unlinked
			var re = new RegExp('((?:agency|author|journal|magazine|newspaper|periodical|website|work)[ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?: newspaper|,? online|)\\.?([\\s]*[|}])', 'gi');
			regex(re, newWord);
		//  source names to 'wikiname', linked (simple, without pipes)
			var re = new RegExp('((?:agency|author|journal|magazine|newspaper|periodical|website|work)[ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			regex(re, newWord);
		//  source names to 'wikiname', linked (with pipes)
			var re = new RegExp('((?:agency|author|journal|magazine|newspaper|periodical|website|work)[ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			regex(re, newWord);

		//  source names to 'wikiname', unlinked (misclassified)
			var re = new RegExp('(?:author|publisher|via)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?:,? online|)\\.?([\\s]*[|}])', 'gi');
			regex(re, newWord4);
		//  source names to 'wikiname', linked (simple, without pipes)
			var re = new RegExp('(?:author|publisher|via)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			regex(re, newWord4);
		//  source names to 'wikiname', linked (with pipes)
			var re = new RegExp('(?:author|publisher|via)([ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			regex(re, newWord4);

		//  source in title parameter
			var re = new RegExp('(?:title)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?:,? online|)\\.?([\\s]*[|}])', 'gi');
			regex(re, newWord1);
		//  source names to 'wikiname', linked (simple, without pipes)
			var re = new RegExp('(?:title)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			regex(re, newWord1);
		//  source names to 'wikiname', linked (with pipes)
			var re = new RegExp('(?:title)([ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			regex(re, newWord1);

	//  outside citation templates 
		//  source names to italicised 'wikiname' - unlinked
			var re = new RegExp('(<ref[^>]*>[^<{]+?[-\\]\\.},;–]\\s+)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)((?:[,\\.]?[^\\w\' ][^\\]<]*?|)<\\/ref>)', 'gi');
			regex(re, newWord2);  //NOTE:  adaptation to italicise is built into 'newWord2'
		//  italicised source names to 'wikiname' - unlinked
			var re = new RegExp('(<ref[^>]*>[^<{|]+?\\s+\'\')(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\'\'[^<]*?<\\/ref>)', 'gi');
			regex(re, newWord);
		//  unitalicised 'wikiname' - linked (piped + unpiped)
			var re = new RegExp('(<ref[^>]*>[^<{|]+?[-\\]\\.},;–]\\s*)\\[\\[(?:[^|\\]]*\\||)' + word + '(?: newspaper| online| website|)\\]\\]([^<]*?<\\/ref>)', 'gi');  
			regex(re, newWord3); //NOTE: adaptation to italicise and re-link sources is built into 'newWord3'
		//  italicised 'wikiname' - linked (piped + unpiped)
			var re = new RegExp('(<ref[^>]*>[^<{|]+?[-\\]\\.},;–]\\s*)\'\'\\[\\[(?:[^|\\]]*\\||)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');  
			regex(re, newWord3); //NOTE: adaptation to re-italicise and re-link sources is built into 'newWord3'
		}
		catch(err) {
			txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
			txt+="Error: " + err.message + "\n\n";
			txt+="Click OK to continue.\n\n";
			alert(txt);
		}
	}
 
//Self-publishing sites 
// NON-ITALICISING -switching all to the non-italicising 'via' parameter; strips italicising quote marks if citation not inside citation template
	var table = {
//(British Newspaper Archive|Google Books|Proquest|Scribd|web(?:\.archive\|citation)(?:\.org|))
		'books.google(?:\\.com|)':			'Google Books',
		'facebook(?:\\.com|)':			'Facebook',
		'findarticles(?:\\.com|)':		'Find Articles',
		'gutenberg\\.org':				'Project Gutenberg',
		'Scribd(?:\\.com|)':			'Scribd',
		'twi?tte?r(?:\\.com|Inc\\.|)':	'Twitter',
		'youtube(?:\\.com|)':			'YouTube',
		'vimeo(?:\\.com|)':				'Vimeo'
 
	};
 
	var word, newWord;
	for (var word in table) {
	newWord = 'via$1' + table[ word ] + '$2';
	newWord2 = '$1' + table[ word ] + '$2';
	newWord3 = '$1\[\[' + table[ word ] + '\]\]$2';
    		var txt="";
		try {
		//  source names that are self-published - linked  –>unlinked
			var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			    regex( re, newWord );

		//  source names that are self-published - unlinked
			var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\.?([\\s]*[|}])', 'gi');
			    regex( re, newWord );

		//  unitalicise agency name - unlinked
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord2);
		//  unabbreviate and unpipe agency name
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s*)\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord2'
		//  unitalicise agency name - linked
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord3'

		}
		catch(err) {
			txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
			txt+="Error: " + err.message + "\n\n";
			txt+="Click OK to continue.\n\n";
			alert(txt);
		}
	}
//NEWS AGENCIES 
// NON-ITALICISING -switching all to the non-italicising 'publisher' parameter; strips italicising quote marks if citation not inside citation template
	var table = {
		'aap(?:\\.com\\au|)':				'Australian Associated Press',
		'(?:ap(?:\\.org|\\.com|)|(?:The ?|)Associated Press)':	'Associated Press',
		'(?:afp(?:\\.com|)|Agence France[- ]Presse?)':	'Agence France-Presse',
		'amna(?:\\.gr|)':				'Athens-Macedonian News Agency',
		'bernama(?:\\.com|)':				'Bernama',
		'Cna\\.com\\.tw':				'Central News Agency (Taiwan)',
		'kyodo ?news(?:\\.com|\\.jp|)':			'Kyodo News',
		'pressassociation(?:\\.com|)':			'Press Association',
		'pr ?newswire(?:\\.com|)':			'PR Newswire',
		'dpa(?:\\.com|)':				'Deutsche Presse-Agentur',
		'ians(?:\\.in|)':			'Indo-Asian News Service',
		'interfax(?:\\.com|)':			'Interfax',
		'interfax\\.com\\.ua':			'Interfax-Ukraine',
		'irin ?news(?:\\.org|)':			'IRIN',
		'irina(?:\\.ir|)':			'Islamic Republic News Agency',
		'tass(?:\\.com|)':				'TASS',
		'itar-tass(?:\\.com|)':				'Information Telegraph Agency of Russia',
		'jta(?:\\.com|)':				'Jewish Telegraphic Agency',
		'maan ?news(?: ?agency|)(?:\\.net|)': 		'Ma\'an News Agency',
		'pti(?:news(?:\\.com|)|)':				'Press Trust of India',
		'religionnews(?:\\.com|)':				'Religion News Service',
		'reuters(?:\\.com|)':				'Reuters',
		'(?:ria(?:n\\.com|n?\\.ru|)|RIA ?Novosti)':	'RIA Novosti',
		'sputniknews(?:\\.com|)':				'Sputnik News Agency',
		'(?:Syrian Arab News Agency|sana(?:\\.sy|))': 	'Syrian Arab News Agency',
		'telam(?:\\.com\\.ar|)':			'Télam',
		'(?:the ?|)canadian ?press(?:\\.com|)':			'The Canadian Press',
		'ukrinform(?:\\.com\\.ua|)':			'Ukrinform',
		'unian(?:\\.net|)':				'Ukrainian Independent Information Agency',
		'upi(?:\\.com|)':				'United Press International',
		'xinhua(?:(?:net|)\\.com|\\.com\\.cn|)':		'Xinhua News Agency'
 
	};
 
	var word, newWord;
	for (var word in table) {
	newWord = 'agency$1' + table[ word ] + '$2';
	newWord2 = '$1' + table[ word ] + '$2';
	newWord3 = '$1\[\[' + table[ word ] + '\]\]$2';
    		var txt="";
		try {
		//  source names that are agencies - linked  –>unlinked
			var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');
			    regex( re, newWord );

		//  source names that are agencies - unlinked
			var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|work)([ ]*=[ ]*)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\.?([\\s]*[|}])', 'gi');
			    regex( re, newWord );

		//  unitalicise agency name - unlinked
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord2);
		//  unabbreviate and unpipe agency name
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s*)\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord2'
		//  unitalicise agency name - linked
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord3); //NOTE: adaptation to un-italicise linked sources and relink is built into 'newWord3'

		}
		catch(err) {
			txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
			txt+="Error: " + err.message + "\n\n";
			txt+="Click OK to continue.\n\n";
			alert(txt);
		}
	}
//Broadcasters, TV/radio stations and networks
// NON-ITALICISING -switching all to the non-italicising 'agency' parameter; strips italicising quote marks if citation not inside citation template
	var table = {
		//Broadcasters
		'abc(?:\\.go|)\\.com':					'American Broadcasting Company',
		'abc\\.(?:com\\.au|net(?:\\.au|))':			'Australian Broadcasting Corporation',
		'abcnews(?:\\.go|)(?:\\.com|)':					'ABC News',
		'alarabiya(?:\\.net|)':					'Al Arabiya',
		'al[- ]?jazeera(?:\\.com| \\w+|)':					'Al Jazeera',
		'israel ?national ?news(?:\\.com|)':					'Arutz Sheva',
		'bbc(?:\\.co\\.uk|\\.com|)':					'BBC',
		'british broadcasting corporation':					'BBC',
		'boxofficeindia(?:\\.com|)':						'Box Office India',
		'Canadian Broadcasting Co\\.?(?:mpany|rp\\.?|)':			'Canadian Broadcasting Corporation',
		'CapitalFM\\.com\\/London':						'Capital London',
		'CapitalFM(?:\\.co\\.uk|\\.com|)':						'Capital Radio',
		'cbc(?:\\.ca|)':					'Canadian Broadcasting Corporation',
		'radio-canada(?:\\.ca|)':						'CBC/Radio-Canada',
		'cbs\\.com':						'CBS',
		'cbs?news(?:\\.com|)':						'CBS News',
		'channel4(?:\\.co\\.uk|\\.com|)':			'Channel 4',
		'channel5(?:\\.co\\.uk|\\.com|)':			'Channel 5',
		'channel ?news ?asia(?:\\.com(?:\\.sg|)|)':			'Channel NewsAsia',
		'cnbc\\.com':						'CNBC',
		'cntv\\.cn':						'China Central Television',
		'cnet(?:\\.com|)':						'CNET',
		'cmt\\.c(?:a|om)':						'Country Music Television',
		'dw\\.(?:de|com)':						'Deutsche Welle',
		'discogs(?:\\.com|)':					'discogs',
		'disney(?:\\.go|)\\.com':					'Disney',
		'E!? ?online(?:\\.com|)':					'E!',
		'eurovision(?:\\.tv|)':					'Eurovision Song Contest',
		'france24(?:\\.com|)':					'France 24',
		'soccerway\\.com':				'Soccerway',
		'soccernet(?:\\.espn\\.go|)\\.com':				'ESPN FC',
		'espn(?:(?:\\.go|)\\.com|\\.co\\.uk|)':					'ESPN',
		'fox ?news(?:\\.com|)':					'Fox News Channel',
		'fox ?sports(?:\\.com|)':					'Fox Sports',
		'imdb(?:\\.com|)':				'IMDb',
		'Internet Movie Database':				'IMDb',
		'kissfmuk(?:\\.com|)':				'KissFM',
		'Mitpress.mit.edu':			'The MIT Press',
		'msnbc(?:(?:\\.msn|)\\.com|)':			'MSNBC',
		'nbcnews(?:\\.com|)':			'NBC News',
		'nrk(?:\\.no|)':			'NRK',
		'(?:npr|National ?Public ?Radio)(?:\\.org|)':			'NPR',
		'pbs(?:\\.org|)':						'PBS',
		'presstv(?:\\.ir|)':						'Press TV',
		'rfa(?:\\.org|)':						'Radio Free Asia',
		'rfi(?:\\.fr|)':						'Radio France Internationale',
		'rferl(?:\\.org|)':						'Radio Free Europe/Radio Liberty',
		'(?:Radio Free Europe|Radio Liberty)':				'Radio Free Europe/Radio Liberty',
		'(?:rt[eéÉ] ?news|rt[eéÉ]\\.ie\\/news)':						'RTÉ News',
		'rt(?:\\.com)':			'RT (TV network)',
		'russia ?today(?:\\.com|)':			'RT (TV network)',
		'rt[eéÉ](?:\\.ie|)':						'Raidió Teilifís Éireann',
		'radio[- ]television hong kong':						'RTHK',
		'rthk(?:(?:\\.org|)\\.hk)':						'RTHK',
		'香港電台':						'RTHK',
		'skynews(?:\\.com|\\.co\\.uk|)':			'Sky News',
		'news\\.sky\\.com':			'Sky News',
		'sky(?:\\.com|\\.co\\.uk)':			'Sky UK',
		'tsn(?:\\.ca)':				'The Sports Network',
//		'twi?tte?r(?:\\.com|Inc\\.)':				'Twitter',
//		'youtube(?:\\.com|)':			'YouTube',
		'voanews(?:\\.com|)':			'Voice of America',
		'zdnet(?:news|)(?:\\.com|)':						'ZDNet',
 
		'All ?music(?:\\.com|)':					'AllMusic',
		'airfrance(?:\\.com|(?:\\.co|)\\.\\w{2}|)':			'Air France',
		'amnesty(?:usa|)(?:\\.org|)':			'Amnesty International',
		'brits?(?:\\.co\\.uk|awards)':			'Brit Awards',
		'boeing(?:\\.com|)':					'Boeing',
		'grammy(?:\\.com|)':					'National Academy of Recording Arts and Sciences',
		'immd.gov.hk':				'Immigration Department, Hong Kong',
		'pland.gov.hk':				'Planning Department, Hong Kong',
		'police.gov.hk':				'Hong Kong Police Force',
		'gov\\.hk':				'Government of Hong Kong',
		'greenpeace(?:\\.org(?:\\.\\w{2}|)|)':					'Greenpeace',
		'hrw(?:\\.org|)':					'Human Rights Watch',
		'(msf|doctorswithoutborders)(?:\\.org|)':		'Médecins Sans Frontières',
		'national ?theatre?(?:\\.org\\.uk|)':			'Royal National Theatre',
		'navy(?:\\.mil)':					'United States Navy',
		'nobelprize(?:\\.org|)':					'Nobel Foundation',
		'oscars(?:\\.org|)':					'Academy of Motion Picture Arts and Sciences',
		'rsf(?:\\.org|)':					'Reports Without Borders',
		'un(?:\\.org|\\.int)':					'United Nations',
		'unhcr(?:\\.org|)':					'United Nations High Commission for Refugees',
		'unesco(?:\\.org|)':					'UNESCO',
		'who(?:\\.int)':					'World Health Organization',
		'worldbank(?:\\.org|)':					'World Bank',

//Sporting bodies
		'belgianfootball(?:\\.be|)':					'Royal Belgian Football Association',
		'chl(?:\\.ca|)':						'Canadian Hockey League',
		'eredivisielive(?:\\.nl|)':					'Eredivisie',
		'fia(?:\\.com|)':						'Fédération Internationale de l\'Automobile',
		'International Automobile Federation':				'Fédération Internationale de l\'Automobile',
		'fifa(?:\\.com|)':						'FIFA',
		'fina(?:\\.com|)':						'FINA',
		'fim-live(?:\\.com|)':						'Fédération Internationale de Motocyclisme',
		'International Motorcycling Federation':			'Fédération Internationale de Motocyclisme',
		'(?:the ?|)football[\\- ]league(?:\\.co\\.uk|)':		'The Football League',
		'Formula ?(?:1|One)(?:\\.com| Group| Administration|)':			'Formula One',
		'irb(?:\\.com|)':					'International Rugby Board',
		'mlb(?:\\.com|)':					'Major League Baseball',
		'minorleaguebaseball(?:\\.com|)':				'Minor League Baseball',
		'nba(?:\\.com|)':					'National Basketball Association',
		'olympic(?:\\.org|)':						'International Olympic Committee',
		'Premierleague(?:\\.com|)':				'Premier League',
		'(?:nfl|superbowl)(?:\\.com|)':						'National Football League',
		'nhl(?:\\.com|)':						'National Hockey League',
		'pga\\.com':						'Professional Golfers\' Association of America',
		'pga\\.info':						'Professional Golfers\' Association (Great Britain and Ireland)',
		'pgatour(?:\\.com|)':						'PGA Tour',
		'rfu(?:\\.com|)':						'Rugby Football Union',
		'rsssf(?:\\.com|)':						'Rec.Sport.Soccer Statistics Foundation',
		'ttproleague(?:\\.com|)':					'TT Pro League',
		'uefa(?:\\.com|)':						'UEFA',
		'wimbledon(?:\\.com)':						'The Championships, Wimbledon',
		'worldrugby(?:\\.com)':						'World Rugby',
		'thefa(?:\\.com)':						'The Football Association',

//Sports teams
		'arsenal(?:\\.com|\\.co\\.uk|)':			'Arsenal F.C.',
		'avfc(?:\\.com|\\.co\\.uk|)':	'Aston Villa F.C.',
		'chelsea(?:fc|)(?:\\.com|\\.co\\.uk|)':	'Chelsea F.C.',
		'Evertonfc(?:\\.com|\\.co\\.uk|)':	'Everton F.C.',
		'Fulhamfc(?:\\.com|\\.co\\.uk|)':	'Fulham F.C.',
		'Liverpool(?:\\.com|\\.co\\.uk|)':	'Liverpool F.C.',
		'mcfc(?:\\.co\\.uk|)':	'Manchester City F.C.',
		'man(?:utd| ?united)(?:\\.com|\\.co\\.uk|)':			'Manchester United F.C.',
		'nufc(?:\\.co\\.uk)':	'Newcastle United F.C.',
		'canaries(?:\\.com|\\.co\\.uk|)':	'Norwich City F.C.',
		'qpr(?:\\.com|\\.co\\.uk|)':	'Queens Park Rangers F.C.',
		'Readingfc(?:\\.com|\\.co\\.uk|)':	'Reading F.C.',
		'saintsfc(?:\\.com|\\.co\\.uk|)':	'Southampton F.C.',
		'StokeCityfc(?:\\.com|\\.co\\.uk|)':	'Stoke City F.C.',
		'safc(?:\\.co\\.uk|)':	'Sunderland A.F.C.',
		'Swansea ?City(?:\\.net|\\.co\\.uk|)':	'Swansea City A.F.C.',
		'Tottenham ?Hotspur(?:\\.com|\\.co\\.uk|)':	'Tottenham Hotspur F.C.',
		'wba(?:\\.co\\.uk|)':	'West Bromwich Albion F.C.',
		'whufc(?:\\.com|)':	'West Ham United F.C.',
		'wiganlatics(?:\\.co\\.uk|)':	'Wigan Athletic F.C.',

		'Barnsleyfc(?:\\.co\\.uk|)':	'Barnsley F.C.',
		'bcfc(?:\\.co\\.uk|)':	'Birmingham City F.C.',
		'rovers(?:\\.co\\.uk|)':	'Blackburn Rovers F.C.',
		'Blackpoolfc(?:\\.co\\.uk|)':	'Blackpool F.C.',
		'bwfc(?:\\.co\\.uk|)':	'Bolton Wanderers F.C.',
		'BradfordCityfc(?:\\.co\\.uk|)':	'Bradford City A.F.C.',
		'burnley ?football?club(?:\\.co\\.uk|)':	'Burnley F.C.',
		'cafc(?:\\.co\\.uk|)':	'Charlton Athletic F.C.',
		'ccfc(?:\\.co\\.uk|)':	'Coventry City F.C.',
		'cpfc(?:\\.co\\.uk|)':	'Crystal Palace F.C.',
		'dcfc(?:\\.co\\.uk|)':	'Derby County F.C.',
		'HullCityafc(?:\\.net|\\.co\\.uk|)':	'Hull City A.F.C.',
		'itfc(?:\\.co\\.uk|)':	'Ipswich Town F.C.',
		'Leeds ?United(?:\\.co\\.uk|\\.com|)':	'Leeds United A.F.C.',
		'lcfc(?:\\.co\\.uk|)':	'Leicester City F.C.',
		'mfc(?:\\.co\\.uk|)':	'Middlesbrough F.C.',
		'Nottingham ?Forest(?:\\.com|\\.co\\.uk|)':	'Nottingham Forest F.C.',
		'Oldham ?athletic(?:\\.com|\\.co\\.uk|)':	'Oldham Athletic A.F.C.',
		'Portsmouthfc(?:\\.com|\\.co\\.uk|)':	'Portsmouth F.C.',
		'sufc(?:\\.co\\.uk|)':	'Sheffield United F.C.',
		'swfc(?:\\.co\\.uk|)':	'Sheffield Wednesday F.C.',
		'SwindonTownfc(?:\\.com|\\.co\\.uk|)':	'Swindon Town F.C.',
		'Watfordfc(?:\\.com|\\.co\\.uk|)':	'Watford F.C.',
		'afcWimbledon(?:\\.com|\\.co\\.uk|)':	'Wimbledon F.C.', 
		'wolves(?:\\.com|\\.co\\uk|)':	'Wolverhampton Wanderers F.C.',

		'real ?madrid(?:\\.com|)':	'Real Madrid C.F.', 
		'fcbarcelona(?:\\.com|)':	'FC Barcelona', 
		
//academic institutions
		'birmingham(?:\\.ac\\.uk)':	'University of Birmingham', 
		'bristol(?:\\.ac\\.uk)':	'University of Bristol', 
		'cam(?:\\.ac\\.uk)':	'University of Cambridge', 
		'cardiff(?:\\.ac\\.uk)':	'Cardiff University', 
		'derby(?:\\.ac\\.uk)':	'University of Derby', 
		'dur(?:\\.ac\\.uk)':	'Durham University', 
		'ed(?:\\.ac\\.uk)':	'University of Edinburgh', 
		'exeter(?:\\.ac\\.uk)':	'University of Exeter', 
		'gla(?:\\.ac\\.uk)':	'University of Glasgow', 
		'imperial(?:\\.ac\\.uk)':	'Imperial College London', 
		'kcl(?:\\.ac\\.uk)':	'King\'s College London', 
		'le(?:\\.ac\\.uk)':	'University of Leicester', 
		'leeds(?:\\.ac\\.uk)':	'University of Leeds', 
		'liverpool(?:\\.ac\\.uk)':	'University of Liverpool', 
		'lse(?:\\.ac\\.uk|)':	'London School of Economics', 
		'London School of Economics and Political Science':	'London School of Economics', 
		'manchester(?:\\.ac\\.uk)':	'University of Manchester', 
		'ncl(?:\\.ac\\.uk)':	'Newcastle University', 
		'nottingham(?:\\.ac\\.uk)':	'University of Nottingham', 
		'ox(?:\\.ac\\.uk)':	'University of Oxford', 
		'port(?:\\.ac\\.uk)':	'University of Portsmouth', 
		'qmul(?:\\.ac\\.uk)':	'Queen Mary University of London', 
		'qub(?:\\.ac\\.uk)':	'Queen\'s University Belfast', 
		'sheffield(?:\\.ac\\.uk)':	'University of Sheffield', 
		'so(?:uthamp|)ton(?:\\.ac\\.uk)':	'University of Southampton', 
		'ucl(?:\\.ac\\.uk)':	'University College London', 
		'warwick(?:\\.ac\\.uk)':	'University of Warwick', 
		'york(?:\\.ac\\.uk)':	'University of York', 

		'britishmuseum.org':				'British Museum',
		'iwm(?:\\.org\\.uk|)':				'Imperial War Museum',
		'nationalgallery(?:\\.org\\.uk|)':				'National Gallery',
		'nhm(?:\\.ac\\.uk|)':				'Natural History Museum',
		'vam(?:\\.ac\\.uk|)':				'Victoria and Albert Museum',

		'edfringe(?:\\.com|)':	'The Edinburgh Festival Fringe Society', 

// Major portals: beware 
		'itunes\\.apple(?:\\.com?|)(?:\\.[\\w]{2}|)':		'iTunes Store',
		'itunes (?:music |)stores?':			'iTunes Store',
		'itunes':			'iTunes Store',
		'amazon(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Amazon.com',
		'bloomberg(?:\\.com| L\\.P\\.)':				'Bloomberg L.P.',
		'afp\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Google News |agency=Agence France-Presse',
		'finance\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Google Finance',
		'maps\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Google Maps',
		'news\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Google News',
		'scholar\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Google Scholar',
		'trends\\.google(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Google Trends',
		'ibnlive(?:\\.com?|)':							'CNN-IBN',
		'CNN IBN':							'CNN-IBN',
		'cnn\\.com':							'CNN',
//		'cnn(?: \\w+|)':							'CNN',
		'deadline(?:\\.com|)':							'Deadline Hollywood',
		'nasdaq(?:\\.com|)':							'NASDAQ',
		'NYSE(?:\\.com|)':							'New York Stock Exchange',

		'finance\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Yahoo! Finance',
		'green\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Yahoo! Green',
		'sports\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Yahoo! Sport',
		'kids\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Yahoo! Kids',
		'(?:\\w+\\.|)music\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Yahoo! Music',
		'news\\.yahoo(?:\\.com?|)(?:\\.[\\w]{2}|)':		'Yahoo! News',
		'sina(?:\\.com\\.(?:cn|hk)|)':						'Sina Corp',
		'yahoo\\.com':						'Yahoo!',
		'google(?:\\.com|)':						'Google',
		'msn(?:\\.com|)':						'MSN',
		'mtv(?:\\.com?|)(?:\\.[\\w]{2}|)':			'MTV',
		'mtv ?news':			'MTV News',
		'rediff\\.com':						'Rediff.com',

		'ec\\.europa(?:\\.com|)\\.eu':				'European Commission',
		'europarl\\.europa(?:\\.com|)\\.eu':			'European Parliament',
		'europa(?:\\.com|)\\.eu':				'Europa (web portal)',
		'whitehouse\\.gov':					'White House',
		'number10\\.gov\\.uk':					'10 Downing Street',
		'companieshouse\\.gov\\.uk':					'Companies House, Government of the United Kingdom',
		'ofsted\\.gov\\.uk':					'Ofsted',
		'education\\.gov\\.uk':					'Department of Education, UK',
		'gov\\.uk':					'Government of the United Kingdom',
		'scottish\\.parliament\\.uk':					'Scottish Parliament',
		'parliament\\.uk':					'Parliament of the United Kingdom',
		'ecb(?:\\.int|)':					'European Central Bank',
		'federalreserve(?:\\.gov|)':					'Federal Reserve',

		'delfi(?:\\.ee|\\.lv|\\.lt)':				'Delfi (web portal)',
		'metacritic(?:\\.com|)':				'Metacritic',
		// Keep this as the last line (no comma per js syntax)
		'vh1\\.com':						'VH1'
 
	};
 
// Broadcasters 
	var word, newWord;
	for (var word in table) {
	newWord = 'publisher$1' + table[ word ] + '$2';
	newWord2 = '$1' + table[ word ] + '$2';
	newWord3 = '$1\[\[' + table[ word ] + '\]\]$2';
		var txt="";
		try {
		// Broadcasters - linked    "\\bwork" required to prevent conversion of "network" parameter
			var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|\\bwork)([ ]*=[ ]*\\[\\[(?:[^|\\]]*\\||))(?:[\\w\\.]+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][\\s\\.]*[|}])', 'gi');      
			regex(re, newWord);
		// Broadcasters - unlinked
			var re = new RegExp('(?:agency|author|journal|magazine|newspaper|periodical|publisher|via|website|\\bwork)([ ]*=[ ]*)(?:[\\w\\.]+\\.|)' + word + '(?: newspaper| online| website|)\\.?([\\s]*[|}])', 'gi');
			regex(re, newWord);
 
		//  source names to 'wikiname' - unlinked, unitalicised; outside citation templates (non-italicising)
			var re = new RegExp('(<ref[^>]*>[^<]+?[-\\]\\.},;–]\\s+)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)((?:[,\\.]?[^\\w\' ][^\\]<]*?|)<\\/ref>)', 'gi');
			regex(re, newWord2);
 		//  source names to 'wikiname' - unlinked; outside citation templates (deitalicising)
			var re = new RegExp('(<ref[^>]*>[^<]+?\\s+)\'\'(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\'\'([^<]*?<\\/ref>)', 'gi');
			regex(re, newWord2);
		//  source names to unitalicised 'wikiname' - linked, unpiped; outside citation templates
			var re = new RegExp('(<ref[^>]*>[^<]+?[-\\]\\.},;–]\\s+\\[\\[)(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)(\\]\\][^<]*?<\\/ref>)', 'gi');  
			regex(re, newWord2);  
		//  source names to 'wikiname' - linked, unpiped; outside citation templates(deitalicising)
			var re = new RegExp('(<ref[^>]*>[^<]+?[-\\]\\.},;–]\\s+)\'\'\\[\\[(?:\\w+\\.|)' + word + '(?: newspaper| online| website|)\\]\\]\'\'([^<]*?<\\/ref>)', 'gi');  
			regex(re, newWord3);  //NOTE:  adaptation to re-link is built into 'newWord3'
		}
		catch(err) {
			txt="There was an error on function Ohc_sourcename(), when changing '"+ word + "' => '"+ table[word] +"'.\n\n";
			txt+="Error: " + err.message + "\n\n";
			txt+="Click OK to continue.\n\n";
			alert(txt);
		}
	}
}

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.