The grammar of identity