Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / normalizeEntityName

Function: normalizeEntityName()

ts
function normalizeEntityName(name): string;

Defined in: packages/memory/src/graph/entity-resolver.ts:81

Fold an entity surface form into a canonical lexical key: Unicode NFKC, lowercased, internal whitespace collapsed, surrounding punctuation stripped. " Anna S. ""anna s". Returns '' for a name with no letters/digits (the resolver treats that as "no entity").

Parameters

ParameterType
namestring

Returns

string

Stable