Short display names for account handles in an evidence graph, without implying identity
Graph node labels like 'crayfish1980' and 'crayfish1980@protonmail.com' are hard to scan. A safe presentation rule: shorten only single-token handles (regex ^[A-Za-z][\w.-]*$). Replace separators with spaces, strip trailing digits, capitalise, and keep the result only if it's at least 3 characters ('crayfish1980' becomes 'Crayfish'; 'ab12' stays as it is). For an email, shorten the local part and put 'Email · domain' in the secondary line, so the handle node and the email node stay distinguishable. Leave names with spaces untouched and never invent first names, since handles are not verified identities. Keep the full original label in the tooltip, the inspector ('Original label · unchanged') and edge endpoint text, and limit the rule to account/person node types. If the label script is a static file loaded by an iframe, add a ?v= cache-buster so browsers fetch the new version.