26
1
submitted 1 year ago by bleistift2@feddit.de to c/english@lemmy.ca

I’m a computer programmer. When we test programs, we often use a function called “assert” to check if the program produces the conditions we expect.

For example, this test will fail if the + produces an incorrect result:

assert( 2 + 3 ).equals(5)

Another meaning of “assert” in programming is “check, and take action, if necessary”. For instance, the procedure assertDataPresent() may check if the data has already been loaded. If it hasn’t, the function would try to do so, so that in either case the data is present after the procedure is executed.

Which of these meanings is the more common one in regular English? Can “assert” even be used in these ways outside programming?

27
1
submitted 1 year ago* (last edited 1 year ago) by OsakaWilson@lemmy.world to c/english@lemmy.ca

My Microsoft account at work made me re-think this because it is pushing me to add more commas that I usually do.

I'm of two minds here. On one hand, punctuation is for clarity. If a sentence is clear without additional hyphens or commas, you could argue that they are not needed. For example:

I want ice cream too. (Acceptable in informal writing.)

I want ice cream, too. (Expected in formal writing.)

I want to eat, mom. (Always a good idea.) I want to eat mom. (Or the police could be involved.)

Or with hyphens when putting two adjectives before a noun, as with: "a well-known author" or "a high-speed chase." With both of these, leaving out the hyphen would not change the meaning or cause confusion.

However, with "high-school students" vs "high school students" the police could get involved again over omitting the hyphen.

I tend toward leaving it out unless it improves clarity or changes meaning.

Now for the Oxford comma. Have we all seen the memes?

However you feel about strippers, is would probably be less confusing if "the strippers, Kennedy, and Stalin" suddenly arrived, than it would be if "the strippers, Kennedy and Stalin" arrived.

Not using the Oxford comma can make the phrase ambiguous, but when it doesn't become ambiguous, as with, "Get me the carrots, potatoes and celery", we can really leave it out without problems.

I go back and forth on these. Even the most careful writers and editors can fail to see the ambiguity in their phrases, so choosing to always include the punctuation is a good way to go. Then again, if you feel confident and want to remove the clutter, I can respect that too. If you have a style guide you must follow, do that, if not, then stay consistent with whatever you choose.

Thoughts? Or more fun examples are welcome.

28
1
submitted 1 year ago by MrRobot@lemmy.world to c/english@lemmy.ca

In my native language there's a word for that kind of words, but I'm not sure how they are called in english.

29
1
Less vs. Fewer (lemmy.world)

Of course the official rule is that for countable things, like apples, we say fewer, as in, "Why are there fewer apples?" And for things that you can't really count, you use less, as in "We need more dream time and less screen time."

But recently, even from native speakers who've been to university, you can hear people using 'less' when the grammar books say they should use 'fewer'. Language changes and there are many examples of things that we say differently than we write. What are your thoughts?

Should we grammar nazi this until everyone gets back in line? Should we just let language evolve and enjoy the ride? Do you think it will settle in with spoken and written forms being different? Do you think this will become the norm in English?

By the way, I blame supermarkets with their "9 items or less" signs.

30
1
submitted 1 year ago* (last edited 1 year ago) by OsakaWilson@lemmy.world to c/english@lemmy.ca

I see there are no comments here yet.

I am an English professor, and have experience in magazine, book, and test editing. I often comment on grammar related subs on "that other social media site", but I'm trying to help Lemmy grow by contributing here instead. But to do that, there ~~needs~~ need to be posts. : )

The way to get a community growing is to start posting. I'm going to start some seed topics, so please comment on them and add your own. Questions are good too.

31
1
submitted 1 year ago* (last edited 1 year ago) by pglpm@lemmy.ca to c/english@lemmy.ca

Imagine there's a sequence of items, it started somewhere in the past and will keep on going. The kind of items could be anything – say days, or football matches, or lectures, or widgets out of an assembly line.

I'd like to refer to the future item that will be, say, the 100th if I start counting them from now. I hope you understand what I mean: the 1st would be the next, the 2nd would be the one after the next, and so on.

How do I denote that future 100th item with a concise expression? I thought of "the next 100th item", but it doesn't sound right.

The problem is that if I just say "the 100th item", that refers to the number 100 since the sequence started, not the number 100 starting counting from now.

Example:

The last 10 widgets were red and blue; the 20th widget from now will be yellow.

Saying "the 20th widget from now" doesn't sound right – but maybe it is? Nor does "the next 20th widget" sound right.

As usual, if possible please also give some references. Cheers!

32
1
submitted 1 year ago* (last edited 1 year ago) by pglpm@mander.xyz to c/english@lemmy.ca

Sometimes it's necessary to make clear that an item is singled out for some reason, for instance if it's been specially chosen. I often use the words specific and particular for that. Example:

"She is going to buy a specific book"

Omitting specific, the sentence could otherwise suggest that she just wants to buy any book; she'll decide which after browsing some at the book store.

I was wondering if there are any differences that I should be aware about among specific, particular, certain, and similar words in this context.

Giving your opinion about their usage is OK, but I'd also like to have some references if possible.

English usage and grammar

364 readers
10 users here now

A community to discuss and ask questions about English usage and grammar.

If your post refers to a specific English variant, please indicate it within square brackets (for instance [Canadian]).

Online resources:

Sibling communities:

Rules of conduct:

The usual ones on Lemmy and Mastodon.. In short: be kind or at least respectful, no offensive language, no harassment, no spam.

(Icon: entry "English" in the Oxford English Dictionary, 1933. Banner: page from Chaucer's "The Wife of Bath's Tale".)

founded 1 year ago
MODERATORS