CS Chris Smith
CodePen Mastodon X (formerly Twitter) Feed

Pronunciation of Terms in Web Development

by Chris Smith
,

Yesterday I was on a call and mentioned that I'd done some pattern matching using regex and as I said it I suddenly felt very self-conscious about how I'd pronounced it.

Regex

Is it "reggex" with a hard G like "egg", or "redgex" with a soft G like in "agenda"? I think we have probably all heard both at some point and so it's an unresolved question with no definitive right or wrong. What's interesting to me is where people land and why.

The word regex is a contracted form of "regular expression" so the original G is hard. Some people see this logic and want to preserve the original G sound. This preference is based in logic and showing you understand the origin.

Others worry less about the original sound and view it as a new independent word, approaching it as they would expect it to be pronounced. The EGE pattern is usually pronounced with a soft G sound, e.g. regenerate, egestion.

Some people may approach this from a natural language point of view but, if English is not their first language and they are more used to a hard G in this pattern, then they may swing this way.

GIF

The conversation that everybody hates. Is it pronounced like "gift" or "jiffy"? The origin is Graphical Interface Format with a hard G but English has words "git", "gibbon" (hard G) and "ginger", "gist" (soft G) as well as names "Gideon", "Gillian", so it's anyone's guess.

Git doesn't seem to have this debate and we're not starting it here. Maybe they learnt from GIF and went out of their way to make it definitive early?

Whatever

My inconclusive conclusion is that either is fine and we just shouldn't worry about it, no more than we worry about US vs UK English. They're different because we're from different backgrounds or wired differently, and that keeps things interesting.