#!/usr/bin/perl

use strict;

my $inOT = 1;
while (<>)
{
  s/\r//go;
  chomp();
  s/ +$//o;

  next if (/^\s*$/);

$inOT = 0 if (/^Matt\./);

next;
# this is temporary to see other problems
s/\bAbednego\b/Abed-nego/go;
s/\bAbelbethmaachah\b/Abel-beth-maachah/go;
s/\bAbelmaim\b/Abel-maim/go;
s/\bAbelmeholah\b/Abel-meholah/go;
s/\bAbelmizraim\b/Abel-mizraim/go;
s/\bAbelshittim\b/Abel-shittim/go;
s/\bAbialbon\b/Abi-albon/go;
s/\bAbiezer\b/Abi-ezer/go;
s/\bAbiezrites\b/Abi-ezrites/go;
s/\bAbiezrite\b/Abi-ezrite/go;
s/\bAdonibezek\b/Adoni-bezek/go;
s/\bAdonizedek\b/Adoni-zedek/go;
s/\bAllonbachuth\b/Allon-bachuth/go;
s/\bAlmondiblathaim\b/Almon-diblathaim/go;
s/\bAshdothpisgah\b/Ashdoth-pisgah/go;
s/\bAtarothadar\b/Ataroth-adar/go;
s/\bAtarothaddar\b/Ataroth-addar/go;
s/\bAznothtabor\b/Aznoth-tabor/go;
s/\bBaalathbeer\b/Baalath-beer/go;
s/\bBaalberith\b/Baal-berith/go;
s/\bBaalgad\b/Baal-gad/go;
s/\bBaalhamon\b/Baal-hamon/go;
s/\bBaalhanan\b/Baal-hanan/go;
s/\bBaalhazor\b/Baal-hazor/go;
s/\bBaalhermon\b/Baal-hermon/go;
s/\bBaalmeon\b/Baal-meon/go;
s/\bBaalpeor\b/Baal-peor/go;
s/\bBaalperazim\b/Baal-perazim/go;
s/\bBaalshalisha\b/Baal-shalisha/go;
s/\bBaaltamar\b/Baal-tamar/go;
s/\bBaalzebub\b/Baal-zebub/go;
s/\bBaalzephon\b/Baal-zephon/go;
s/\bBamothbaal\b/Bamoth-baal/go;
s/\bBashanhavothjair\b/Bashan-havoth-jair/go;
s/\bBathrabbim\b/Bath-rabbim/go;
s/\bBathsheba\b/Bath-sheba/go;
s/\bBathshua\b/Bath-shua/go;
s/\bBeerelim\b/Beer-elim/go;
s/\bBeerlahairoi\b/Beer-lahai-roi/go;
s/\bBeersheba\b/Beer-sheba/go;
s/\bBeeshterah\b/Beesh-terah/go;
s/\bBenammi\b/Ben-ammi/go;
s/\bBeneberak\b/Bene-berak/go;
s/\bBenejaakan\b/Bene-jaakan/go;
s/\bBenhadad\b/Ben-hadad/go;
s/\bBenhail\b/Ben-hail/go;
s/\bBenhanan\b/Ben-hanan/go;
s/\bBenoni\b/Ben-oni/go;
s/\bBenzoheth\b/Ben-zoheth/go;
s/\bBerodachbaladan\b/Berodach-baladan/go;
s/\bBethanath\b/Beth-anath/go;
s/\bBethanoth\b/Beth-anoth/go;
s/\bBetharabah\b/Beth-arabah/go;
s/\bBetharam\b/Beth-aram/go;
s/\bBetharbel\b/Beth-arbel/go;
s/\bBethaven\b/Beth-aven/go;
s/\bBethazmaveth\b/Beth-azmaveth/go;
s/\bBethbaalmeon\b/Beth-baal-meon/go;
s/\bBethbarah\b/Beth-barah/go;
s/\bBethbirei\b/Beth-birei/go;
s/\bBethcar\b/Beth-car/go;
s/\bBethdagon\b/Beth-dagon/go;
s/\bBethdiblathaim\b/Beth-diblathaim/go;
s/\b\bBethel\b\b/Beth-el/go;
s/\bBethemek\b/Beth-emek/go;
s/\bBethezel\b/Beth-ezel/go;
s/\bBethgader\b/Beth-gader/go;
s/\bBethgamul\b/Beth-gamul/go;
s/\bBethhaccerem\b/Beth-haccerem/go;
s/\bBethharan\b/Beth-haran/go;
s/\bBethhoglah\b/Beth-hoglah/go;
s/\bBethhogla\b/Beth-hogla/go;
s/\bBethhoron\b/Beth-horon/go;
s/\bBethjeshimoth\b/Beth-jeshimoth/go;
s/\bBethjesimoth\b/Beth-jesimoth/go;
s/\bBethlebaoth\b/Beth-lebaoth/go;
s/\bBethlehemjudah\b/Beth-lehem-judah/go;
s/\bBethlehem\b/Beth-lehem/g if ($inOT);
s/\bBethmaachah\b/Beth-maachah/go;
s/\bBethmarcaboth\b/Beth-marcaboth/go;
s/\bBethmeon\b/Beth-meon/go;
s/\bBethnimrah\b/Beth-nimrah/go;
s/\bBethpalet\b/Beth-palet/go;
s/\bBethpazzez\b/Beth-pazzez/go;
s/\bBethpeor\b/Beth-peor/go;
s/\bBethphelet\b/Beth-phelet/go;
s/\bBethrapha\b/Beth-rapha/go;
s/\bBethrehob\b/Beth-rehob/go;
s/\bBethshan\b/Beth-shan/go;
s/\bBethshean\b/Beth-shean/go;
s/\bBethshemesh\b/Beth-shemesh/go;
s/\bBethshemite\b/Beth-shemite/go;
s/\bBethshittah\b/Beth-shittah/go;
s/\bBethtappuah\b/Beth-tappuah/go;
s/\bBethzur\b/Beth-zur/go;
s/\bCalebephratah\b/Caleb-ephratah/go;
s/\bChepharhaammonai\b/Chephar-haammonai/go;
s/\bChislothtabor\b/Chisloth-tabor/go;
s/\bChorashan\b/Chor-ashan/go;
s/\bChushanrishathaim\b/Chushan-rishathaim/go;
s/\bColhozeh\b/Col-hozeh/go;
s/\bDanjaan\b/Dan-jaan/go;
s/\bDibongad\b/Dibon-gad/go;
s/\bEbedmelech\b/Ebed-melech/go;
s/\bEbenezer\b/Eben-ezer/go;
s/\bElbethel\b/El-beth-el/go;
s/\bElelohe-Israel\b/El-elohe-Israel/go;
s/\bElelohe-Israel\b/El-elohe-Israel/go;
s/\bElonbethhanan\b/Elon-beth-hanan/go;
s/\bElparan\b/El-paran/go;
s/\bEneglaim\b/En-eglaim/go;
s/\bEngannim\b/En-gannim/go;
s/\bEngedi\b/En-gedi/go;
s/\bEnhaddah\b/En-haddah/go;
s/\bEnhakkore\b/En-hakkore/go;
s/\bEnhazor\b/En-hazor/go;
s/\bEnmishpat\b/En-mishpat/go;
s/\bEnrimmon\b/En-rimmon/go;
s/\bEnrogel\b/En-rogel/go;
s/\bEnshemesh\b/En-shemesh/go;
s/\bEntappuah\b/En-tappuah/go;
s/\bEphesdammim\b/Ephes-dammim/go;
s/\bEsarhaddon\b/Esar-haddon/go;
s/\bEshbaal\b/Esh-baal/go;
s/\bEvilmerodach\b/Evil-merodach/go;
s/\bEziongaber\b/Ezion-gaber/go;
s/\bEziongeber\b/Ezion-geber/go;
s/\bGathhepher\b/Gath-hepher/go;
s/\bGathrimmon\b/Gath-rimmon/go;
s/\bGibeah-haaraloth\b/Gibeah-haaraloth/go;
s/\bGittahhepher\b/Gittah-hepher/go;
s/\bGurbaal\b/Gur-baal/go;
s/\bHamathzobah\b/Hamath-zobah/go;
s/\bHammothdor\b/Hammoth-dor/go;
s/\bHamongog\b/Hamon-gog/go;
s/\bHavothjair\b/Havoth-jair/go;
s/\bHazaraddar\b/Hazar-addar/go;
s/\bHazarenan\b/Hazar-enan/go;
s/\bHazargaddah\b/Hazar-gaddah/go;
s/\bHazarhatticon\b/Hazar-hatticon/go;
# \bs\b/Hazarmaveth/Hazar-maveth/go;
s/\bHazarshual\b/Hazar-shual/go;
s/\bHazarsusah\b/Hazar-susah/go;
s/\bHazarsusim\b/Hazar-susim/go;
s/\bHazazontamar\b/Hazazon-tamar/go;
s/\bHazezontamar\b/Hazezon-tamar/go;
s/\bHelkathhazzurim\b/Helkath-hazzurim/go;
s/\bHephzibah\b/Hephzi-bah/go;
s/\bHorhagidgad\b/Hor-hagidgad/go;
s/\bIchabod\b/I-chabod/go;
s/\bIjeabarim\b/Ije-abarim/go;
s/\bIrnahash\b/Ir-nahash/go;
s/\bIrshemesh\b/Ir-shemesh/go;
s/\bIshbibenob\b/Ishbi-benob/go;
s/\bIshbosheth\b/Ish-bosheth/go;
s/\bIshtob\b/Ish-tob/go;
s/\bIttahkazin\b/Ittah-kazin/go;
s/\bJaareoregim\b/Jaare-oregim/go;
s/\bJabeshgilead\b/Jabesh-gilead/go;
s/\bJashubilehem\b/Jashubi-lehem/go;
s/\bJegarsahadutha\b/Jegar-sahadutha/go;
s/\bJehovahjireh\b/Jehovah-jireh/go;
s/\bJehovahnissi\b/Jehovah-nissi/go;
s/\bJehovahshalom\b/Jehovah-shalom/go;
s/\bJiphthahel\b/Jiphthah-el/go;
s/\bJushabhesed\b/Jushab-hesed/go;
s/\bKadeshbarnea\b/Kadesh-barnea/go;
s/\bKedeshnaphtali\b/Kedesh-naphtali/go;
s/\bKerenhappuch\b/Keren-happuch/go;
s/\bKibrothhattaavah\b/Kibroth-hattaavah/go;
s/\bKirharaseth\b/Kir-haraseth/go;
s/\bKirhareseth\b/Kir-hareseth/go;
s/\bKirharesh\b/Kir-haresh/go;
s/\bKirheres\b/Kir-heres/go;
s/\bKirjatharba\b/Kirjath-arba/go;
s/\bKirjatharim\b/Kirjath-arim/go;
s/\bKirjathbaal\b/Kirjath-baal/go;
s/\bKirjathhuzoth\b/Kirjath-huzoth/go;
s/\bKirjathjearim\b/Kirjath-jearim/go;
s/\bKirjathsannah\b/Kirjath-sannah/go;
s/\bKirjathsepher\b/Kirjath-sepher/go;
s/\bLahairoi\b/Lahai-roi/go;
s/\bLoammi\b/Lo-ammi/go;
s/\bLodebar\b/Lo-debar/go;
s/\bLoruhamah\b/Lo-ruhamah/go;
s/\bMaalehacrabbim\b/Maaleh-acrabbim/go;
s/\bMagormissabib\b/Magor-missabib/go;
s/\bMahanehdan\b/Mahaneh-dan/go;
s/\bMahershalalhashbaz\b/Maher-shalal-hash-baz/go;
s/\bMalchishua\b/Malchi-shua/go;
s/\bMejarkon\b/Me-jarkon/go;
s/\bMelchishua\b/Melchi-shua/go;
s/\bMeribah-Kadesh\b/Meribah-Kadesh/go;
s/\bMeribbaal\b/Merib-baal/go;
s/\bMerodachbaladan\b/Merodach-baladan/go;
s/\bMethegammah\b/Metheg-ammah/go;
s/\bMigdalel\b/Migdal-el/go;
s/\bMigdalgad\b/Migdal-gad/go;
s/\bMisrephothmaim\b/Misrephoth-maim/go;
s/\bMoreshethgath\b/Moresheth-gath/go;
s/\bNathanmelech\b/Nathan-melech/go;
s/\bNebuzaradan\b/Nebuzar-adan/go;
s/\bNergalsharezer\b/Nergal-sharezer/go;
s/\bObededom\b/Obed-edom/go;
s/\bPadanaram\b/Padan-aram/go;
s/\bPahathmoab\b/Pahath-moab/go;
s/\bPasdammim\b/Pas-dammim/go;
s/\bPerezuzzah\b/Perez-uzzah/go;
s/\bPerezuzza\b/Perez-uzza/go;
s/\bPharaohhophra\b/Pharaoh-hophra/go;
s/\bPharaohnechoh\b/Pharaoh-nechoh/go;
s/\bPharaohnecho\b/Pharaoh-necho/go;
s/\bPibeseth\b/Pi-beseth/go;
s/\bPihahiroth\b/Pi-hahiroth/go;
s/\bPotipherah\b/Poti-pherah/go;
s/\bRabsaris\b/Rab-saris/go;
s/\bRabshakeh\b/Rab-shakeh/go;
s/\bRamathaimzophim\b/Ramathaim-zophim/go;
s/\bRamathlehi\b/Ramath-lehi/go;
s/\bRamathmizpeh\b/Ramath-mizpeh/go;
s/\bRamothgilead\b/Ramoth-gilead/go;
s/\bRegemmelech\b/Regem-melech/go;
s/\bRemmonmethoar\b/Remmon-methoar/go;
s/\bRimmonparez\b/Rimmon-parez/go;
s/\bRomamtiezer\b/Romamti-ezer/go;
s/\bRuhamah\b/Ru-hamah/go;
s/\bSamgarnebo\b/Samgar-nebo/go;
s/\bSelahammahlekoth\b/Sela-hammahlekoth/go;
s/\bShearjashub\b/Shear-jashub/go;
s/\bShetharboznai\b/Shethar-boznai/go;
s/\bShihorlibnath\b/Shihor-libnath/go;
s/\bShimronmeron\b/Shimron-meron/go;
s/\bSuccothbenoth\b/Succoth-benoth/go;
s/\bSyriadamascus\b/Syria-damascus/go;
s/\bSyriamaachah\b/Syria-maachah/go;
s/\bTaanathshiloh\b/Taanath-shiloh/go;
s/\bTahtimhodshi\b/Tahtim-hodshi/go;
s/\bTelabib\b/Tel-abib/go;
s/\bTelharesha\b/Tel-haresha/go;
s/\bTelharsa\b/Tel-harsa/go;
s/\bTelmelah\b/Tel-melah/go;
s/\bTiglathpileser\b/Tiglath-pileser/go;
s/\bTilgathpilneser\b/Tilgath-pilneser/go;
s/\bTimnathheres\b/Timnath-heres/go;
s/\bTimnathserah\b/Timnath-serah/go;
s/\bTobadonijah\b/Tob-adonijah/go;
s/\bTubalcain\b/Tubal-cain/go;
s/\bUzzensherah\b/Uzzen-sherah/go;
s/\bZarethshahar\b/Zareth-shahar/go;
s/\bZaphnathpaaneah\b/Zaphnath-paaneah/go;

}
continue
{
  print("$_\n");
}
