{{- /* "human:name" reads "name (a person)", and "process:name" reads "name (automation)". */ -}} {{- $parts := split . ":" -}} {{- $kind := index (dict "human" "a person" "process" "automation") (index $parts 0) -}} {{- if $kind -}}{{ delimit (after 1 $parts) ":" }} ({{ $kind }}){{- else -}}{{ . }}{{- end -}}