bluememo

EntityResolver

Links a sentence to the people it names, only when the name is unambiguous.

type EntityResolver interface {
	Resolve(content string) (resolvedEntityIDs []string, unresolvedNames []string)
}

PeopleRegistry resolves a name only when exactly one person answers to it, and reports the rest as unresolved so an ambiguous name is visible instead of silently empty. When the directory changes, ResolveEntitiesAgain recomputes every memory. A memory whose name stayed unresolved is still found by its words.