2

I ask this because Firefox suggested that whitespaces is not a valid word; rather it gave me whitespace or white spaces.

1
  • 1
    If you mean the term from typography, the answer is trivial. it is an uncountable noun such as water or time. So your question is exactly the same as asking "what is the plural of time." Dead simple answer, and no mystery here.
    – Fattie
    Commented May 14, 2011 at 12:30

3 Answers 3

17

The word "whitespace" is usually uncountable. If you need it to be countable, I would suggest saying "whitespace characters".

1
  • 2
    +1: This is what I would do. When I want to pluralize it for the computer to understand, I use \s+ ^_^
    – Robusto
    Commented May 14, 2011 at 11:01
1

The design sense of "white space" is normally given as two words. Like Neil says, it's an uncountable noun. Like water, time, and money, you can have a lot of it, or you might need more. (When it comes to white space, people usually need more.)

6
  • Yes, thanks. But the word "white space" you cited means the blank area in art pieces (paintings, for example), here what I referred to is the character in computer science, just like this one " ". :)
    – xzhu
    Commented May 14, 2011 at 9:50
  • What's the difference between white space in art or in computer sciences?
    – user8568
    Commented May 14, 2011 at 10:03
  • 1
    Boob -- they're just different things. It's like saying "what's the difference between a redneck and a red neck". Commented May 14, 2011 at 10:12
  • @Neil: Do you mean that the plural form of "whitespace" cannot be "white space s "?
    – user8568
    Commented May 14, 2011 at 10:18
  • 1
    @Boob: Not usually, I don't think. "whitespace" is usually used as a so-called "mass noun" or "uncountable noun". So basically you would usually have "whitespace" just as you would have "bread", but you wouldn't usually talk about having "2 whitespaces" just as you wouldn't have "2 breads", "2 softwares", "2 musics" etc. Instead, you'd say "2 whitespace characters". That said, I'm sure there's a bit more variation on this than with "bread". Commented May 14, 2011 at 11:19
1

The term "whitespace" (without a space between "white" and "space") is, I think, borrowed from computing, in which characters that produce no on-screen glyphs, but only serve to separate groups of visible characters, are referred to collectively as "whitespace characters" (e.g. space, tab, new line). Since whitespace can refer to any one, or sequence, of such characters, you cannot really say that whitespace necessarily means a collection of space characters, because it might be a tab, followed by two spaces, followed by another tab, followed by a carriage return, etc.. In most programming languages, the formatting of program text is only for human legibility, and the computer couldn't really care less about whether two commands are placed on the same line or two separate lines, as long as there is SOME whitespace to indicate where one command ends and the next begins. But because the need to discard these redundant characters comes up so often in computing, they have acquired their own technical term: "whitespace."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.