I think it’s a fun question. I’d argue that sanity doesn’t exist, as the concept of sanity is constructed entirely of opinions–if a concept is made up of opinions, then the concept itself is an opinion, and is therefore entirely hypothetical.
How do you know you’re in your right mind?
You do not.
Sanity is measured by the coherencecy of our natural experience and the simplicity by which it demonstrates that. The simplest measure of insanity is psychosis and so sanity is alignment of experience with the concepts of its objects.
There are always differing opinions in existence. You have yours, I have mine. Which are correct, which are false? The real answer is that they’re all correct AND incorrect at the same time, because everyone is subject to their own personal experiences and points of view.
From an existential understanding (perhaps spiritual), the universe manifests in all forms, in all times, in all spaces, simply to experience existence as throughly as possible to exhaust all possibilities through various combinations and permutations. If one could equate this to “God” or some manifestation of the divine reality, then regardless of bias, they are all necessary for existence.
So, it’s very simple. Whether someone is right or wrong holds no meaning, only that you accept it, because whether or not you agree, it still exists and therefore is fundamental to the entirety of existence.
At least, that’s my opinion. You may think or believe differently, and that’s okay.
I don’t.
I take it for what I consider it to be: a variable mix between a social contract (people agreeing on what is right and wrong (edit: healthy/not healthy), like with every single other thing going on in any society, whether I agree or not with them is not the point) and some common sense (what it means to be healthy (what sanity is referring to as far as I know) without arguing about abstract notions, like one would try to explain it to a young child maybe?)
So, really for me it’s an ad-hoc definition that has changed many times already, and will change again but it’s also something obvious that I would describe as being able to live among other people not in a perpetual state of anxiety… which may also incidentally imply I would not qualify as the best example of a sane person, who knows?
Psychology defines it in terms of cultural norms and whether it is distressful or harmful for the individual. Are you exhibiting behaviour outside of what your society deems normal? Sanity will be suspect. Does your behaviour bother you, seems to be outside your control, or is harming the quality of your life? Probably can be diagnosed as some psychiatric malady of one sort or another.
The example I recall in class is a culture in which witches talk to spirits. Witch comes in alarmed that they are talking to spirits all the time and can’t stop. Psychiatrist asks ‘is that not your job?’ and they reply “yes, but I’m talking to the wrong spirits”.
If your question was how to use a metaphor to describe sanity, anything that represents stability is common (“even when the shit hits the fan she is solid as a rock”).