Normally I issue a command like \label{foo}, and this means that foo gets entered into a symbol table somewhere that says that it equals 14, or xiv, or aa, or whatever. These symbols are generated and incremented automatically, and to change the numbering system, I can use packages like alphalph.
Suppose I want to force foo to evaluate to some arbitrary string, such as "Socrates." E.g., I want something like \mynameis{Socrates}\label{foo}, and then when I say \ref{foo}, the result will not be "14" but "Socrates."
I want to completely bypass the normal system involving counters. If Socrates is the name of a chapter, then I don't expect LaTeX to be smart enough to automatically name the next chapter Plato. So, e.g.:
\chapter{The life of Socrates}\mynameis{Socrates}\label{foo}
...
\chapter{The life of Plato}\label{bar}
...
This is an error on my part. It's OK with me if bar is set to garbage, or if LaTeX chokes, or if bar is set to some arbitrary string such as Socrates2.
Is there some way to do this?

