summaryrefslogtreecommitdiff
path: root/doc/optparse/ruby/explicit_array_values.rb
diff options
context:
space:
mode:
authorBrandon Zylstra <9854+brandonzylstra@users.noreply.github.com>2026-01-04 22:26:21 -0500
committerNobuyoshi Nakada <nobu.nakada@gmail.com>2026-01-05 17:11:06 +0900
commitc65a5548a80f955ad71decabf0f29183fef8d6d7 (patch)
tree69cb1f1f9c4291e07cea26f60468df6e9168eef4 /doc/optparse/ruby/explicit_array_values.rb
parent32674606102d21ec56635ff4b496544dd01775a6 (diff)
Update box.md
"Code" (when used to refer to what we create in Ruby or any other programming language) is an abstract non-count noun, so it cannot be pluralized. ("Codes" would be used when referring to specific countable things like PIN codes, which is a different use of the word "code".) This is somewhat confusing because English allows converting count nouns into non-count nouns, and converting non-count nouns into count nouns, and because many words have both forms. For an example of converting a non-count noun to a count noun, "water" is normally a non-count noun: > The world is covered with water. but people who work in restaurants often use the word as a count noun, as a shorthand for "cup of water": > I need 7 waters on the big table by the window. For an example of the opposite conversion, "worm" is normally a count noun: > There are lots of worms in the puddle. but someone might use it as a non-count noun when talking about non-distinct remains of worms: > You have worm all over the bottom of your shoe! So although a given noun can be flexible enough to be used in either way—even when it is unconventional—there is a definite change of meaning when using a word as a count noun or a non-count noun.
Diffstat (limited to 'doc/optparse/ruby/explicit_array_values.rb')
0 files changed, 0 insertions, 0 deletions