Function: resolveTag()
resolveTag(
candidate,vocabulary):TagResolution|null
Defined in: packages/agentos/src/cognition/library/tags.ts:306
A candidate resolved against a vocabulary: the existing tag of its key; for one spaced word, the existing tag of its
stem; for a key of 5 code points or more in a spaced script, the existing tag one edit away with the same digits
(q3 and q4, two years, two versions and plan and play stay apart); among several, preferredTagOrder's
first. Otherwise a new tag, spelled as its key. Null for a candidate with no key.
Parameters
candidate
string
vocabulary
readonly TagUse[]
Returns
TagResolution | null