Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "th" at the end of words to "f" #21

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Change "th" at the end of words to "f" #21

wants to merge 1 commit into from

Conversation

zuzak
Copy link
Owner

@zuzak zuzak commented Jan 10, 2020

For example, "truth" becomes "twuf".
"This" stays "this", but "fifth" becomes "fiff".

This only affects mid-sentence words; not the word at the end.
This change affects 245 lines from my copy of /usr/share/dict/words.

I'm not sure about this one; it might be going too far?

@zuzak
Copy link
Owner Author

zuzak commented Jan 10, 2020

Original OWOified
Alioth Awiof
Asquith Asquif
Baath Baaf
Barth Bawf
Bayreuth Bayweuf
Beth Bef
Bluetooth Bwuetoof
Booth Boof
Bournemouth Bouwnemouf
Commonwealth Commonweawf
Corinth Cowinf
Darth Dawf
Dartmouth Dawtmouf
Duluth Duwuf
Earth Eawf
Edith Edif
Elisabeth Ewisabef
Elizabeth Ewizabef
Elnath Ewnaf
Faith Faif
Galbraith Gawbwaif
Gareth Gawef
Garth Gawf
Goldsmith Gowdsmif
Goliath Gowiaf
Goth Gof
Griffith Gwiffif
Hayworth Haywowf
Heath Heaf
Hindemith Hindemif
Hogarth Hogawf
Hollerith Howwewif
Judith Judif
Keith Keif
Kenneth Kennef
Kennith Kennif
Kieth Kief
Knuth Knuf
Kossuth Kossuf
Leavenworth Weavenwowf
Lilith Wiwif
Macbeth Macbef
Meredith Mewedif
Monmouth Monmouf
Naismith Naismif
Namath Namaf
Nazareth Nazawef
North Nowf
Ostrogoth Ostwogof
Perth Pewf
Plath Pwaf
Plymouth Pwymouf
Portsmouth Powtsmouf
Roth Wof
Ruth Wuf
Sabbath Sabbaf
Seth Sef
Smith Smif
Sopwith Sopwif
South Souf
Sukkoth Sukkof
Tamworth Tamwowf
Th Th
Thoth Thof
Truth Twuf
Visigoth Visigof
Woolworth Woowwowf
Wordsworth Wowdswowf
Wyeth Wyef
absinth absinf
afterbirth aftewbiwf
aftermath aftewmaf
amaranth amawanf
azimuth azimuf
badmouth badmouf
bandwidth bandwidf
bath baf
behemoth behemof
beneath beneaf
bequeath bequeaf
berth bewf
betroth betwof
bigmouth bigmouf
billionth biwwionf
birdbath biwdbaf
birth biwf
bismuth bismuf
blabbermouth bwabbewmouf
blacksmith bwacksmif
bloodbath bwoodbaf
booth boof
both bof
breadth bweadf
breath bweaf
broadcloth bwoadcwof
broth bwof
buckteeth buckteef
bucktooth bucktoof
cheesecloth cheesecwof
childbirth chiwdbiwf
cloth cwof
commonwealth commonweawf
cottonmouth cottonmouf
dearth deawf
death deaf
depth depf
dishcloth dishcwof
doth dof
drouth dwouf
earth eawf
eighteenth eighteenf
eighth eighf
eightieth eightief
eleventh ewevenf
eyeteeth eyeteef
eyetooth eyetoof
faith faif
fifteenth fifteenf
fifth fiff
fiftieth fiftief
filth fiwf
firth fiwf
footpath footpaf
forsooth fowsoof
forth fowf
forthwith fowthwif
fortieth fowtief
fourteenth fouwteenf
fourth fouwf
froth fwof
girth giwf
goldsmith gowdsmif
growth gwowf
gunsmith gunsmif
hairbreadth haiwbweadf
hairsbreadth haiwsbweadf
hath haf
health heawf
hearth heawf
heath heaf
henceforth hencefowf
herewith hewewif
hundredth hundwedf
hyacinth hyacinf
interfaith intewfaif
kith kif
labyrinth wabywinf
lath waf
length wengf
loath woaf
locksmith wocksmif
loincloth woincwof
loth wof
loudmouth woudmouf
mammoth mammof
matzoth matzof
megalith megawif
millionth miwwionf
mirth miwf
monolith monuwif
month monf
moth mof
motormouth motowmouf
mouth mouf
myth myf
neath neaf
nineteenth nineteenf
ninetieth ninetief
ninth ninf
north nuwf
nth nf
oath oaf
oilcloth oiwcwof
osteopath osteopaf
outgrowth outgwowf
overgrowth ovewgwowf
path paf
pith pif
plinth pwinf
polymath powymaf
psychopath psychopaf
quoth quof
rebirth webiwf
sackcloth sackcwof
sailcloth saiwcwof
saith saif
seventeenth seventeenf
seventh sevenf
seventieth seventief
sheath sheaf
shibboleth shibbowef
silversmith siwvewsmif
sixteenth sixteenf
sixth sixf
sixtieth sixtief
sleuth sweuf
sloth swof
smith smif
smooth smoof
sociopath sociopaf
sooth soof
south souf
stealth steawf
stillbirth stiwwbiwf
strength stwengf
swath swaf
tablecloth tabwecwof
teeth teef
tenth tenf
thenceforth thencefowf
therewith thewewif
thirteenth thiwteenf
thirtieth thiwtief
thousandth thousandf
tinsmith tinsmif
tollbooth towwboof
tooth toof
towpath towpaf
trillionth twiwwionf
troth twof
truth twuf
twelfth twewff
twentieth twentief
umpteenth umpteenf
uncouth uncouf
undergrowth undewgwowf
underneath undewneaf
unearth uneawf
untruth untwuf
vermouth vewmouf
warmth wawmf
warpath wawpaf
washcloth washcwof
wavelength wavewengf
wealth weawf
width widf
with wif
worth wowf
wraith wwaif
wrath wwaf
wreath wweaf
wroth wwof
yeshivoth yeshivof
youth uuf
zenith zenif
Show script (click here)
ENG_WORDS=`mktemp`;OWO_WORDS=`mktemp`

ag --nonumbers "th$" /usr/share/dict/words | sed "s/$/ /g" > $ENG_WORDS
cat $ENG_WORDS | nodejs -e "console.log(require('./index.js')(require('fs').readFileSync(0, 'utf-8')))" > $OWO_WORDS
echo 'Original | OWOified'
echo '--- | ---'
paste -d '| ' $ENG_WORDS $OWO_WORDS
rm $ENG_WORDS; rm $OWO_WORDS

For example, "truth" becomes "twuf".
"This" stays "this", but "fifth" becomes "fiff".

This only affects mid-sentence words; not the word at the end.
This change affects 245 lines from my copy of /usr/share/dict/words.

// if this one changes update the README too:
'I have no mouth and I must scream': 'I haz nu mouf and I must scweam'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Unexpected blank line between object properties.

Suggested change
'I have no mouth and I must scream': 'I haz nu mouf and I must scweam'

@@ -15,10 +15,15 @@ describe('Substitution', function () {
'r': 'w',
'rrrrr': 'wwwww',
'rlrlrl': 'wwwwww',
'thth thth thth': 'thf thf thth',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace 'thth·thth·thth':·'thf·thf·thth' with "thth·thth·thth":·"thf·thf·thth"

Suggested change
'thth thth thth': 'thf thf thth',
"thth thth thth": "thf thf thth",

'notification': 'nutification',
'with the economy in ruins': 'wif da econumy in wuins',
'it is a truth universally acknowledged': 'it is a twuf univewsawwy acknuwwedged',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace 'it·is·a·truth·universally·acknowledged':·'it·is·a·twuf·univewsawwy·acknuwwedged' with "it·is·a·truth·universally·acknowledged":⏎······"it·is·a·twuf·univewsawwy·acknuwwedged"

Suggested change
'it is a truth universally acknowledged': 'it is a twuf univewsawwy acknuwwedged',
"it is a truth universally acknowledged":

'MPs reject Theresa May\'s revised EU withdrawal deal, throwing UK\'s Brexit plans into confusion':
'MPs weject Thewesa May\'s wevised EU withdwawaw deaw, thwowing UK\'s Bwexit pwans into confusion'
'MPs weject Thewesa May\'s wevised EU withdwawaw deaw, thwowing UK\'s Bwexit pwans into confusion',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace 'MPs·weject·Thewesa·May\'s·wevised·EU·withdwawaw·deaw,·thwowing·UK\'s·Bwexit·pwans·into·confusion' with ··"MPs·weject·Thewesa·May's·wevised·EU·withdwawaw·deaw,·thwowing·UK's·Bwexit·pwans·into·confusion"

Suggested change
'MPs weject Thewesa May\'s wevised EU withdwawaw deaw, thwowing UK\'s Bwexit pwans into confusion',
"MPs weject Thewesa May's wevised EU withdwawaw deaw, thwowing UK's Bwexit pwans into confusion",


// if this one changes update the README too:
'I have no mouth and I must scream': 'I haz nu mouf and I must scweam'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace 'I·have·no·mouth·and·I·must·scream':·'I·haz·nu·mouf·and·I·must·scweam' with "I·have·no·mouth·and·I·must·scream":·"I·haz·nu·mouf·and·I·must·scweam",

Suggested change
'I have no mouth and I must scream': 'I haz nu mouf and I must scweam'
"I have no mouth and I must scream": "I haz nu mouf and I must scweam",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant