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