Is it "falsy" or "falsey"?
I have seen both spellings of this word, falsy and falsey.
It can mean "something that is equivalent to false" in computer science, such as "The only two falsy values in the Ruby Language are false and nil".
What is the correct usage of this word?
Solution 1:
I've always seen falsy and truthy. Falsey is a perfectly acceptable alternative and gives me just as many search results. The word is unfortunately too new to provide good sources. The ECMAScript Language Specification uses “⟦ToBoolean⟧” to refer to the interpretation of of non-Boolean values as Booleans, but makes no use of truthy or falsy.
These terms are widely used in discussions of dynamically typed programming languages such as JavaScript, Ruby, and Python, in which there is a Boolean data type but other values which can also behave like the Booleans true
and false
. It is a way to distinguish between false the noun and false the adjective:
- “x is
false
” (clear) - “x is false” (ambiguous: is x
false
or is it a different false value?) - “x is falsy” (clear)
As tchrist points out, Perl is a notable exception because it lacks a Boolean type, so falsy values are just called false, in the adjectival sense.
Solution 2:
The only such word currently attested by the OED is the plural noun falsies, whose sense is given as:
A padded brassière; breast-pads.
It has its own Wikipedia entry, one which I must advise you is unlikely to be work-friendly in sensu stricto.