The phrase "sanity check" is ableist language as it implies that there is something wrong with people who have mental illnesses and the word "sanity" has been used to discriminate against such people. Therefore, it should should be avoided. What is a better alternative in the context of software?

Example usage:

_: if this is not what it should be, we have memory corruption (a fatal error) and should terminate the program.

  • 1
    It would only be "ableist" (IMO an awful word) if it referred to a person. In this context it only means that an idea/procedure/etc "makes sense", i.e. conforms to a norm or can be expected to work as required. If the PC crowd will not allow any use of the word "sanity" then I fear for my own. – Jim Mack Oct 24 '15 at 1:31
  • 2
    In the areas where I worked last, this was referred to as a "basic function test" -- BFT. – Hot Licks Oct 24 '15 at 3:12
  • 1
    Context of what you want is slim... validation? – stevesliva Oct 24 '15 at 3:48
  • 1
    As far as I understand, it's not ableist to imply that there's something wrong with having a mental illness. There's a reason they're called "illnesses" and not "pleasant interesting mental variations." One common criterion for something to be classified as a disorder in the DSM-IV-TR is that it causes "clinically significant distress or impairment". – sumelic Oct 24 '15 at 17:17
  • 2
    It's not so much the discrimination as: if you agree that mental illness is a serious condition, why would you throw about the term like this if it's easily avoidable. I'd say it's not even the discrimination that is the issue here, just common decency. – Alper Sep 14 '17 at 9:29
up vote 7 down vote accepted

Consider, coherence check and confidence check.

coherence: systematic or logical connection or consistency M-W

consistency: agreement or harmony of parts or features to one another or a whole. M-W

confidence: faith or belief that one will act in a right, proper, or effective way M-W

  • 2
    Nope. Consistency checking is far more than sanity checking. In fact, consistency checking can be quite complex. What is called a sanity check is a quick-and-dirty, superficial check. – Drew Oct 24 '15 at 8:24
  • @Drew - Actually, if you read the example in the original question (which is misapplying "sanity check"), "coherence check" or "consistency check" fits pretty well. And "confidence check" comes quite close to "sanity check" (though I see that was a late edit). – Hot Licks Oct 26 '15 at 12:12

Perhaps you would prefer "health" to "sanity"?

Would "health check" pass your PC test of expressions that "should be avoided" "in the contest [sic] of software"? If not, maybe try the usual "quality control" or "quality assurance" testing.


[Sheesh. This is truly ridiculous. Health is a positive, and so is sanity. Anyone offended by use of the word sanity should ... (no, I didn't say have their head examined). Oh, and by the way, you won't find "sane" or "sanity" on the ableist language page you cited.]

  • 1
    Interestingly, in terms of etymology "sane" means the same thing as "healthy": see Latin mens sana in corpora sano "a healthy mind in a healthy body" – sumelic Oct 24 '15 at 17:13
  • @sumelic: Absolutely. (And sain in French.) – Drew Oct 24 '15 at 18:44

Wikipedia offers the term smoke test as synonymous with sanity check for software testing.

For the record, I think sanity check is more recognizable and an acceptable phrase.

  • Basically, a "smoke test" is just "Turn it on and see if it smokes." It doesn't involve any sort of planned testing, and may test very little of the item under test. A "sanity test", on the other hand, is a planned set of test operations which verifies the basic functions of the item being tested, without pretending to be exhaustive in nature. – Hot Licks Oct 24 '15 at 3:11

Assertion.

Per Wikipedia: In computer programming, an assertion is a statement that a predicate (Boolean-valued function, a true–false expression) is expected to always be true at that point in the code.

  • 1
    An "assertion" is a single test step. A "sanity test" is a group of assertions which together prove the basic functions of the item under test. – Hot Licks Oct 24 '15 at 3:35
  • +1 for Assertion. This is absolutely the most fitting word to describe the OP's example. – public wireless Oct 25 '15 at 6:01

I don't think "sanity check" is ableist, really, because it's using a different meaning of the word "sanity" (which is a positive term to begin with).

If I run a "sanity check" to make sure the internal state makes sense, I'm not saying that the program might have severe mental illness: I'm saying I want to make sure everything is internally consistent before proceeding further.

That's a separate meaning of "sanity": that everything fits together and nothing is obviously wrong. It was actually the more common meaning in the original Latin, with the idiom for "not having a severe mental illness" being instead compos mentis (literally "having control over one's own mind"). Saying that a person was sānus or had sānitās generally meant that they were in good physical health. Modern usage has shifted significantly, but this older meaning is still around to a lesser extent.

So I don't think that using "sanity" to mean "consistent and with nothing obviously wrong" with respect to a computer program is ableist language. To use an analogy, if I called someone with a disability an "invalid", that would be wrong. But saying that text input in a numeric field is "invalid" is a separate usage of the word, referring to an objective fact, and has been used for decades with no offense intended. In this case you're not even using the negative term "insane". And none of the lists of ableist terms I've found (e.g. here, here, and here) have included "sane" or "sanity".

In short: I don't think there's anything particularly wrong with the phrase "sanity check". It has a long history of technical use and I have never seen the phrase called offensive anywhere else. Consistency check might be the best alternative, or if you want to be pretentious and avoid English connotations Probātiō Sānitātis, but neither is ideal: the sort of "consistency check" run by fsck is a different sort of beast, and pretty much nobody is going to recognize the Latin.

When it comes down to it, language is meant to facilitate clear and meaningful communication. If new terminology gets in the way of that goal, it's not performing its proper function—so you might want to do a sanity check on the system before trying to institute a new phrase universally. ;)

I'll suggest a 'soundness' check, or 'soundness scan' if the check is superficial:

soundness, noun
The condition of being free from defects or flaws.

(soundness. (n.d.) American Heritage® Dictionary of the English Language, Fifth Edition. (2011). Retrieved October 24 2015 from http://www.thefreedictionary.com/soundness.)

"Smell check" is equally casual, and similarly carries no implication of thoroughness. It also sounds a lot like it, which may help with understanding.

As an added bonus, you can finally use the pig nose Unicode in your error messages. 🐽

  • If the OP has a problem with sanity check as being "ableist", I doubt he'd like an answer which discriminates against people with anosmia. – AndyT Oct 4 at 14:09

'Sense check' is what I use these days for an informal 'second eye' over some documents for a 'light proofing' for a colleague.

New contributor
DaveJ is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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