diff --git a/Sapo.sh b/Sapo.sh index e2c4120..ff72a7e 100755 --- a/Sapo.sh +++ b/Sapo.sh @@ -30,6 +30,7 @@ sed "s/—/\,\n/g; s/^ *//g; s/^\;$//g; s/^\.$//g; + s/^\,$//g; s/\…/\,/g; s/\’/\'/g; s/(/\,\n(/g; @@ -37,6 +38,8 @@ sed "s/—/\,\n/g; s/[\.\!\?\:\;]/\.\n/g; s/\.\.\./\.\n/g" "$FILE" >"$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt sed -i "/^$/d" "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt #get rid of empty lines +sed -i -f $HOME/git/sapo/letters.sed "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt +sed -i -f $HOME/git/sapo/abbreviations.sed "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt sed -i -f $HOME/git/sapo/sapofonetix.sed "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt ##################extra delimit to comma and space ################################### DELIM=$(cat "$DIRECTORY""Sapo_""$NAME"/"$NAME"sentenced.txt|wc -l) diff --git a/abbreviations.sed b/abbreviations.sed new file mode 100644 index 0000000..5442be5 --- /dev/null +++ b/abbreviations.sed @@ -0,0 +1,27 @@ +s/\/ey kay ey/g +s/a\.k\.a\./ey kay ey/g +s/a\.m\./ey em/g +s/\&/ and/g +s/e\.g\./exempli\ gratia/g +s/\=/equals/g +s/\/et setterah /g +s/\/eytch keoo/g +s/i\.e\./eye ee/g +s/k\.o\./kay oh/g +s/ltd/limited/g +s/\/mah dam/g +s/\/ mah dam/g +s/\/mynus/g +s/\/mister/g; +s/mrs/missuz/g +s/mrs/missuz/g +s/\/miss/g +s/\/oh kay/g +s/pls/please/g +s/\+/plus/g +s/p\.m\./pee em/g +s/\/rupees/g +s/tv/tee vee/g +s/vs\./versus/g +s/wasn\'t/wozunt/g +s/\/duhzent/g diff --git a/fonetix.sed b/fonetix.sed new file mode 100644 index 0000000..e25133a --- /dev/null +++ b/fonetix.sed @@ -0,0 +1,600 @@ + + +s/absurd/ab surd/g +s/abyss/abiss/g +s/accomplice/accomplisse/g +s/\/aked/g +s/\/eyk/g +s/\/akhilless/g +s/\/eyking/g +s/acolyte/akko light/g +s/acrobat/ack row bat/g +s/\/i'll/g +s/\/i'lls/g +s/\/alass/g +s/albino/albighno/g +s/al-fresco/alfresco/g +s/\/ahlee/g +s/\/ ahl lie/g +s/\/al lies/g +s/\/al lied/g +s/alphabet/alfa bet/g +s/amateur/am at tur/g +s/amazon/am az on/g +s/\/ah miss/g +s/\/ammo russ/g +s/analyse/analyze/g +s/\/analysis/g +s/anchor/ankor/g +s/\/ah new/g +s/angel/aynjel/g +s/\/angher/g +s/angered/anghered/g +s/anticlimax/anti climax/g +s/\/apolo jighsing/g +s/approaching/approatching/g +s/archa/arka/g +s/archaic/arkaik/g +s/archipelago/arkeepelago/g +s/archiv/arkighv/g +s/\/ardor/g +s/armoured/armourd/g +s/\/ah skew/g +s/atomised/atomized/g +s/atriarch/atriark/g +s/attribute/ahtre bute/g +s/\/avelunsh/g +s/baba/bahbah/g +s/baggage/bagguge/g +s/balloon/bal loon/g +s/banana/bah nahna/g +s/banged/banghed/g +s/bathe/beythe/g +s/bayou/bayoo/g +s/bbutterflies/butter flies/g +s/bbutterfly/butter fly/g +s/beadle/beedle/g +s/beard/beeard/g +s/\/barer/g +s/\/bee high v/g +s/behaviour/behavior/g +s/\/beh ligh/g +s/\/beh lighd/g +s/\/beh lighs/g +s/\/beh lighing/g +s/bellied/belleed/g +s/beloved/be lovud/g +s/benefited/benefitted/g +s/bicycle/bicecle/g +s/biscuit/biskit/g +s/blizzard/bleezard/g +s/bogeyman/boggeyman/g +s/boogie/boo ghee/g +s/botticelli/bottitchelli/g +s/boudoir/boo-do-are/g +s/bourgeois/boor-joo-ah/g +s/breast/brest/g +s/breath/breth/g +s/\/breathe/g +s/brething/breathing/g +s/bricolage/bricolahje/g +s/bridgewater/bridge water/g +s/briny/briney/g +s/brow/braou/g +s/bruise/brooze/g +s/buddha/boo dah/g +s/buddhist/boo dist/g +s/buenos aires/buenos eyeress/g +s/buffoon/buh foon/g +s/buggery/bugghery/g +s/bullock/bulluk/g +s/bungalow/bunga-low/g +s/buses/busses/g +s/butcher/bootcher/g +s/buttock/buttoc/g +s/cache/cash/g +s/caesar/seazar/g +s/\/cah-feyh/g +s/\/cah hoots/g +s/camouflage/cahmu-flahje/g +s/canal/can nal/g +s/\/canvases/g +s/caravel/cara vel/g +s/caressed/kah rest/g +s/caresses/kah resses/g +s/carressed/cah rest/g +s/catalogue/cat-a-log/g +s/catalogue/cattallog/g +s/cataloguing/cattalloging/g; +s/catastrophe/catus-trofe/g +s/cathedral/catheedral/g +s/\/cattallogging/g +s/cavalcade/caval cade/g +s/ceasar/seazar/g +s/\/shaise/g +s/chamber/cheymber/g +s/champagne/sham pain/g +s/chao/kayo/g +s/chauffeur/shawfer/g +s/\/shemain/g +s/chiaroscuro/keearo skuro/g +s/chimaer/khimaer/g +s/china/chighnah/g +s/\/shin/g +s/chivalry/shivulree/g +s/chord/khord/g +s/chorus/khorus/g +s/\/crighst/g +s/cinema/ceenema/g +s/citadel/seeta-del/g +s/civilising/civilizing/g;s/civilised/civilized/g +s/cleansing/clensing/g;s/cleanse/clense/g +s/coat/couut/g +s/cockatoo/cocka too/g +s/colour/color/g +s/\/com fea/g +s/comfy/comfey/g +s/comment/coment/g +s/commerce/comers/g +s/competing/compeeting/g +s/compromis/comprp mighz/g +s/concept/cawnsept/g +s/consomme/consom may/g +s/contradict/contra-dict/g +s/\/coo per/g +s/\/coo perd/g +s/copied/copeed/g +s/courtroom/court room/g +s/cruise/crooze/g +s/danger/daynjer/g +s/deaf/def/g +s/deathbed/death bed/g +s/\/deck eid/g +s/\/decka dense/g +s/\/decka dent/g +s/decipher/dessighfer/g +s/deepheat/deep heat/g +s/delhi/delhy/g +s/delineated/deleeneeated/g +s/democrat/deemo-crat/g +s/derivative/dereevative/g +s/descartes/deckahre/g +s/\/de speaka bl/g +s/\/de speaka blee/g +s/deveraux/dehveh row/g +s/devil/dehvil/g +s/devour/devhour/g +s/dialogue/diallog/g +s/diameter/digh amtur/g +s/\/dighed/g +s/\/dighs/g +s/dilemma/di lemma/g +s/dinosaur/dighnosaur/g +s/disable/de sable/g +s/disciple/dis eyehple/g +s/discipline/discipleen/g +s/disembark/dis embark/g +s/dishevelled/de shevvelld/g +s/dishevell/de shevvell/g +s/dishwater/dish water/g +s/disuse/dis use/g +s/dived/dighved/g +s/diver/dighver/g +s/diving/dighving/g +s/diwan/dee van/g +s/dizzy/deazy/g +s/doctrine/doctreen/g +s/dragonfly/dragon fly/g +s/\/doctor/g; +s/dreamt/dremt/g +s/drizzly/dreezzly/g +s/\/dighing/g +s/dysentery/disen-tery/g +s/eardrum/ear drum/g +s/earth/airth/g +s/ebony/aibo nee/g +s/echelon/esh alone/g +s/\/ekoes/g;s/\/eko/g +s/\/eko-ing/g;s/\/ekoed/g +s/edifice/edifisse/g +s/elite/eleet/g +s/embassies/embus-is/g +s/\/em you/g +s/\/em yous/g +s/entourage/entu rahj/g +s/eschatolog/eskahto-log/g +s/\/ethher/g +s/eunuch/eunuk/g +s/exited/exi ted/g +s/faeces/fee\ seas/g +s/fasade/fasahde/g +s/fatigue/fahteeg/g +s/favourite/favorite/g +s/feather/fether/g +s/fetal/feetal/g +s/fiance/feeanseh/g +s/\/feeb/g;s/\/feebs/g; +s/fiercesome/fear some/g +s/filthied/filtheed/g +s/finger/fingher/g +s/flaccid/flassid/g +s/flatiron/flat iron/g +s/flatly/flattly/g +s/flaubert/flow bare/g +s/flood/fludd/g +s/focuses/focus es/g;s/focused/focusd/g +s/\/focu sing/g +s/foetus/feetus/g +s/forehead/fore head/g +s/\/fortay/g +s/fragile/frahjile/g +s/funeral/fewneral/g +s/\/fewry/g +s/gandhi/gan\ dee/g +s/gazebo/gazeebo/g +s/gear/ghear/g +s/gear/ghear/g +s/\/jee eytch keoo/g +s/giant/jiant/g +s/gibe/jighb/g +s/\/jin/g +s/giraffe/jirrafe/g +s/goethe/guhtay/g +s/gonorrohea/gonor reeah/g +s/goodbyes/good byes/g +s/guilotine/guilo teen/g +s/gypsy/jypsy/g +s/gyroscope/jyroscope/g +s/\/hah/g +s/halo/haylo/g +s/harbour/harbor/g +s/haroun/how-roon/g +s/harrumph/har rumph/g +s/\/heyste/g +s/\/heystily/g +s/havana/ha vana/g +s/headache/head eyk/g +s/heaven/hehven/g +s/\/hair/g +s/heresy/hairecy/g +s/heroine/hairoin/g +s/hiccup/hickup/g +s/hideout/hide-out/g +s/hierarchy/hierarcky/g +s/\/hinjed/g +s/\/hinje/g +s/histoire/histu are/g +s/\/high v/g +s/hocusing/hokus-sing/g +s/honour/honor/g +s/hotelrie/hotel ree/g +s/hullabaloo/hoola bah loo/g +s/hygien/high jean/g +s/ichthyology/eekhthyology/g +s/ichthy/eekhthy/g +s/\/icey lee/g +s/\/icey/g +s/\/ighsik l/g +s/idiot/eediot/g +s/iinsider/insighder/ +s/image/eemehje/g +s/imbecile/imbaih ceele/g +s/\/ im mo bile/g +s/indigenous/indeegenous/g +s/infamous/infamuss/g +s/infamous/innfa-moose/g +s/inventory/inven tory/g +s/iran/ee ran/g +s/iraq/ee rack/g +s/irises/iris-is/g +s/irish/eyerish/g +s/island/eyeland/g +s/\/eyele/g +s/issuing/issu ing/g +s/\eyevied/g +s/ivory/ighvor-y/g +s/japanese/jahpa-knees/g +s/jasmine/jasmeen/g +s/\/jaundissd/g +s/\/jaundiss/g +s/jealous/jellous/g +s/jesus/jeezuss/g +s/jewelle/jewel/g +s/\/ho say/g +s/juice/juce/g +s/juliet/julee et/g +s/kaleidoscope/callide o scope/g +s/karachi/karachee/g +s/kitab/ketabb/g +s/label/leybel/g +s/labourer/labor ers/g +s/labour/labor/g +s/lager/lagger/g +s/landowner/land-owner/g +s/latrine/lah\ treen/g +s/\/la zoo lee/g +s/league/leeg/g +s/leather/lether/g +s/lethal/leethal/g +s/librar/lie brar/g +s/\/licey/g +s/lilac/lighlac/g +s/lineage/lyn e ahj/g +s/linen/leenen/g +s/linger/lingher/g +s/listen/lyssen/g +s/\/long/g +s/loophole/loop\ hole/g +s/lousy/louzey/g +s/louvre/loovre/g +s/maciavelli/makiavelli/g +s/mahmoud/macmood/g +s/mangy/mangey/g +s/marathon/marathun/g +s/maria/ma ria/g +s/marquee/mar-key/g +s/marvellous/marvel lus/g +s/massacre/masicur/g +s/mauritius/maurisius/g +s/\/ment/g +s/\/mehlay/g +s/\/mennahced/g +s/\/mennahce/g +s/\/mennahcing/g +s/mercedes/mercedeys/g +s/merciless/mercyless/g +s/metaphor/meta for/g +s/\/met ee air/g +s/\/mygrant/g +s/migrat/my grat/g +s/mingy/minjy/g +s/mirac/meerac/g +s/mirage/meeraje/g +s/miranda/meeranda/g +s/\/my zer /g +s/\/ mo bile/g +s/monarch/monark/g +s/monologue/mono logg/g +s/morale/mor-ahl/g +s/morose/mo rose/g +s/mosquito/moskeeto/g +s/mountain/mounten/g +s/moustache/moos-tash/g +s/muggy/mugghy/g +s/murmur/murmurr/g +s/myth/meeth/g +s/naked/nakhead/g +s/\/nah/g +s/\/nant/g +s/nausea/nosey ah/g +s/navel/nayvel/g +s/nazi/nah tsee/g +s/neighbour/neighbor/g +s/\/neesh/g +s/obesity/obissity/g +s/oceanic/ohsee annic/g +s/ocean/owshen/g +s/octopuses/octopusses/g +s/oligarch/oligark/g +s/olive/ohleave/g +s/opposite/oppo zit/g +s/orchestra/orkestra/g +s/orifice/orriffisse/g +s/\/ory jin/g +s/outlive/outleave/g +s/ouzo/oozo/g +s/pajama/puh jahmah/g +s/panther/panthher/g +s/pariah/par-eye ah/g +s/pastiche/pas teesh/g +s/pathetick/pathetic/g +s/pearl/perl/g +s/\/pair/g +s/\/pairs/g +s/peasant/pehsant/g +s/pellagra/pel lahgrah/g +s/\/penncilled/g +s/\/peenis/g +s/penniless/penny less/g +s/percolator/perco-latur/g +s/pernod[s ]/pair no/g +s/petal/pettal/g +s/\/peteete/g +s/\/feenix/g +s/pineapple/pine apple/g +s/pipeline/pipe-line/g +s/piteous/pitteous/g +s/plague/pleyg/g +s/planet/plahnet/g +s/plateau/plah-toh/g +s/platoon/plah-toon/g +s/pocusing/pockus-sing/g +s/polite/polight/g +s/porthole/port hole/g +s/portmateau/portmantoh/g +s/practise/practice/g +s/precedent/pressud ent/g +s/prejudice/prejudeece/g +s/pretext/pre text/g +s/\/pray/g +s/priest/preest/g +s/privily/preeveely/g +s/\/promiced/g +s/\/promice/g +s/\/promices/g +s/prophesied/prophessighed/g +s/proprietor/pro pryetor/g +s/protege/prote jey/g +s/psyche/psychee/g +s/puke/pehuke/g +s/purifier/pure y fire/g +s/purposeful/purpose ful/g +s/\/pus filled/g +s/p[ya]jamas/pu-jamas/g +s/pygm/peagm/g +s/pyramid/pee ruhmeed/g +s/queue/ky oo/g +s/\/raggud/g +s/rallied/rally d/g +s/rapist/reypist/g +s/rashid/rah-sheed/g +s/recognisable/recognizable/g +s/redcouut/red couut/g +s/rehears/rehers/g +s/\/rain/g +s/\/rains/g +s/\/religh/g +s/renaissance/renais sance/g +s/reply/repligh/g +s/rerun/rerun/g +s/rescue/reskiu/g +s/reservoir/reserve-uar/g +s/restaurant/raysto rant/g +s/\/re surface/g +s/retrospect/re-truspect/g +s/reverie/reveh ree/g +s/reverie/rever ee/g +s/rhythm/reethem/g +s/riordan/reordan/g +s/\/row pey/g +s/\/ruff/g +s/routine/rooteene/g +s/\/rhough/g +s/rubato/rue batto/g +s/\/rumord/g +s/rumour/rumor/g +s/\/run away/g +s/\/sa lighva/g +s/\/salt water/g +s/salvage/salvij/g +s/satisfies/satisfighs/g +s/scarred/skard/g +s/\/skeptical/g +s/seadragon/sea dragon/g +s/\/sea water/g +s/seawater/sea water/g +s/\/sea men/g +s/sequence/sequens/g +s/severest/severe est/g +s/shapeless/sheypless/g +s/shaven/shayven/g +s/shiny/shiney/g +s/shiva/sheeva/g +s/shiver/sheever/g +s/shower/shauwer/g +s/shrivel/shreevel/g +s/siamese/siameese/g +s/singed/singd/g +s/singer/singher/g +s/singh/seekh/g +s/ski[ -]/skee/g +s/sky/sky /g +s/slimy/slighmy/g +s/\/slau ing/g +s/\/sligh/g +s/\/slighly/g +s/snivelling/sneave ling/g +s/solace/solass/g +s/soldier/soldjer/g +s/sorcerer/sorce rer/g +s/\/sauerd/g +s/\/sauer ing/g +s/\/sauer lee/g +s/\/sauer/g +s/souvenir/soove near/g +s/spicy/spicey/g +s/spindle/spin dle/g +s/spread/spredd/g +s/stagecoach/stage coach/g +s/steak/stake/g +s/stiletto/stylletto/g +s/stomach/stomak/g +s/stonemason/stone mason/g +s/\/saint /g +s/stupider/stupeh der/g +s/stupidest/stupeh dest/g +s/\/stighlized/g +s/\<\sty\>/stigh/g +s/suicide/suiside/g +s/\/sweet/g +s/supplier/sup liar/g +s/sweat/swett/g +s/synagogue/seenugog/g +s/syphilis/seefee lis/g +s/tableau[x ]/tab low/g +s/taproom/tap room/g +s/tasteless/taste less/g +s/tasty/taysty/g +s/teaching/teatching/g +s/tearing/tairing/g +s/thes[ie]s/thhesis/g +s/\/thrash/g +s/\/tighdy/g +s/\/tighdied/g +s/tiger/tie gher/g +s/tomb/toomb/g +s/tongue/tung/g +s/toothache/tooth eyk/g +s/tough/tuff/g +s/towards/to wards/g +s/travelled/travelld/g +s/traverse/trah verse/g +s/treacher/trecher/g +s/trio/treeo/g +s/triptych/triptyck/g +s/trousseau/true-saw/g +s/trousseaux/true-saw/g +s/turntable/turn table/g +s/umbrage/umbrahj/g +s/unfed/unfaid/g +s/\/unhinjing/g +s/unimaginable/un imaginable/g +s/unimportant/un important/g +s/unimpress/un impress/g +s/\/un inhabited/g +s/unintetional/un intentional/g +s/\/un invited/g +s/unravell/un ravell/g +s/unsavoury/un savory/g +s/urin/uren/g +s/\/yoused/g +s/usherred/usherrd/g +s/vague/veyg/g +s/vasco/vascou/g +s/veil/vayl/g +s/vein/vane/g +s/versailles/ver say/g +s/vicar/veecar/g +s/video/veedee\ oh/g +s/\/ve et nam/g +s/\/ve et nahmeeze/g +s/vigil/vijil/g +s/\/vilain noose/g +s/\/virjil/g +s/vivaldi/ve valdee/g +s/voila/vwah-lah/g +s/volcan/volkain/g +s/wasteland/waste land/g +s/wasting/waisting/g +s/\\>wair/g +s/\/wairs/g +s/\/wair/g +s/werewolf/were-wolf/g +s/werewolves/were-wolves/g +s/whereami/where am i/g +s/whiny/whiney/g +s/wicked/wekid/g +s/wilderness/weelder ness/g +s/wind/weend/g +s/weending/winding/g +s/winged/winghed/g +s/wobbliness/wobbly ness/g +s/\/wood shed/g +s/wormwood/worm wood/g +s/worshipp/war shipp/g +s/\/wretchad/g +s/writhe/righth/g +s/yodelled/yodeld/g +s/youngest/younghest/g +s/saviour/savior/g +s/authored/authord/g diff --git a/letters.sed b/letters.sed new file mode 100644 index 0000000..d0f5f4d --- /dev/null +++ b/letters.sed @@ -0,0 +1,37 @@ +s/\(.*\)/\L\1/ +s/ê/e/g;s/è/e/g;s/é/e/g;s/ë/e/g;s/â/a/g;s/à/a/g;s/ô/o/g;s/ò/o/g;s/ù/u/g;s/û/u/g;s/ü/u/g;s/î/i/g;s/ì/i/g;s/ï/i/g;s/ç/s/g +s/\/bee/g +s/\/see/g +s/\/dee/g +s/'dee/'d/g +s/ *'d/'d/g +s/\/ee/g +s/\/ef/g +s/\/jee/g +s/\/eytch/g +s/\/jay/g +s/\/kay/g +s/\/el/g +s/'el/\'l/g +s/ *'ll/'ll/g +s/\/em/g +s/'em/'m/g +s/\/en/g +s/\/oh/g +s/'oh/'o/g +s/\/pee/g +s/\/ky_oo/g +s/you.re/your/g +s/\/are/g +s/ *'re/r/g +s/\/ess/g +s/'ess/'s/g +s/\/tea/g +s/'tea/'t/g +s/\/you/g +s/ *'ve/'ve/g +s/\/vee/g +s/\/double you/g +s/\/ex/g +s/\/why/g +s/\/zed/g