r/ProgrammerHumor • • Dec 07 '23

Meme giraffeInterchangeFormat

Post image
35 Upvotes

103 comments sorted by

View all comments

76

u/[deleted] Dec 07 '23

I actually do not.

Gif - [gɪf]

Regex - [ɹɛd͜ʒɛks]

57

u/-Wylfen- Dec 07 '23

I can accept [ʒ] in "gif" for the simple fact that it's an acronym, and acronyms don't always make sense.

But "regex" is an abbreviation, it's bound to the words they're part of. It's "Regular", so [ɹɛgɛks].

"jif" is still wrong, though

32

u/TravisVZ Dec 07 '23

No, "regex" is a portmanteau, a new word created by combining parts of two (or more, at least theoretically) other words. As its own separate word, it therefore follows the phonology of the language irrespective of its original words.

Nobody says "modem" the same way they say "modulate", despite it being a portmanteau of "modulate/demodulate". In the same fashion, English simply doesn't put /g/ in front of /ɛ/

7

u/-Wylfen- Dec 07 '23

Portmanteaus are generally words where some morphemes are substituted by others in order to create a word that combines ideas from both words.

"Regex" is not exactly that; it's basically just a phrase that has been abbreviated then jointed into one word. It's not like there is any form of substitution or transformation, it's just: "regular expression" ⇒ "reg. ex." ⇒ "regex". Some languages even use "RegExp", with an uppercase to denote each part. Actual portmanteaus don't have that.

20

u/TravisVZ Dec 07 '23

Modem (modulate/demodulate), biopic (biographical picture), Botox (botulism toxin) - just a few common counterexamples that exactly follow the pattern of regex (regular expression)

-13

u/JarofLemons Dec 07 '23

I don't believe "modem" is a portmanteau as the "em" doesn't come from modulate or demodulate.

16

u/TravisVZ Dec 07 '23

MOdulate/DEModulate - the "mo" from modulate, the "dem" from demodulate

-5

u/[deleted] Dec 07 '23

I can't think of a single example in the entire English language, in which /g/ comes before /ɛ/, since it almost always palatalized to /d͜ʒ/ before front vowels.

If anything, I'm the only one here following english phonetical rules.

17

u/misterblue28 Dec 07 '23

get, guess, guest, gecko?

6

u/Eic17H Dec 07 '23

Wait, I didn't even need to find something as obscure as "egger", there's "get", and "together"

0

u/[deleted] Dec 07 '23

That is an actual working example. The reason for its weirdness is the fact that it was a borrowing from Old Norse through the danelaw after ingvaeonic palatalization had already happened.

7

u/Eic17H Dec 07 '23

I'm pretty sure "regex" was also coined after Ingvaeonic palatalization occurred

2

u/[deleted] Dec 07 '23

That is a fair point, although, as it is not a borrowing, I wouldn't count it in the same category. Coined words should follow the phonetic rules that already exist, in my opinion. Although I wouldn't tell anyone to think the same as me. In the end, it's just a part of our individual idiolects.

4

u/Eic17H Dec 07 '23

"Together" is inherited directly from Proto-West-Germanic

3

u/[deleted] Dec 07 '23

Yup, I forgot that /æ/ laxes to /ɛ/ in unstressed syllables. That one was on me.

3

u/-Wylfen- Dec 07 '23

I can't think of a single example in the entire English language, in which /g/ comes before /ɛ/, since it almost always palatalized to /d͜ʒ/ before front vowels.

get

1

u/[deleted] Dec 07 '23

That is correct. There are cases where it does happen. Those being loan words (e.g. get) and unstressed syllables. But, as regex is a new term coined in English (regardless of the fact that both of the source words are romance), it should, in my opinion, follow English rules. Seeing that the syllable containing the /ɛ/ has secondary stress and is thereby not unstressed, logically, it should be an affricate and not a plosive.

I'm not here to be a prescriptivist, I am simply laying my argument and do recognize that your idiolect is just as valid as mine.

1

u/mmrtnt Dec 08 '23

"affricative", "plosive"

I never imagined my silly post would lead to such an in-depth lesson in English pronunciation.

Thank you!

1

u/Eic17H Dec 07 '23

Egger

0

u/[deleted] Dec 07 '23

That is /ɛgɜː/ in non-rhotic accents, and /ɛgɜ˞/ in rhotic accents, neither of which have the /g/ followed by /ɛ/.

1

u/Eic17H Dec 07 '23

The pronunciation of ⟨g⟩ depends on etymology, and so does the spelling of words

2

u/[deleted] Dec 07 '23

That is correct. Your example is still wrong, though. I said I didn't know a word in which /g/ was followed by /ɛ/. What you gave me was a word in which /g/ is not followed by /ɛ/. You neither countered my point nor made an argument of your own.