Superb

Meaning / Resolve a word

Resolve a word in context

Use resolve when you have a passage and one target expression in it. It names the most likely sense, how far the passage supports it, the alternatives and the evidence. For a whole text, read chooses every word's sense together.

Make the request#

const result = await superb.resolve({
  text: 'The auditor identified a material error in the report.',
  target: 'material',
});
result.sense.gloss;   // the most likely sense
result.strength;      // 'clear' | 'likely' | 'close'
result.pointsTo;      // the runner-up when the call is close
result.alternatives;  // every other listed sense, with its share and what each specialist said

HTTP equivalent: POST /v1/resolve. The passage may contain up to 12,000 characters; the target may contain up to 100 characters and must occur as a complete word or phrase.

Handle all outcomes#

Result What to show
strength: "clear" or "likely" The selected sense, labelled as machine-proposed, with its strength
strength: "close" A close call: the selected sense and the one it pointsTo
status: "not_found" The reference has no entry for the expression; keep it as unlisted, not wrong
abstention: "AMBIGUOUS_TARGET" The target occurs more than once; ask which, and send a span

The reading always names a most likely sense. On natural prose a clear answer is right about 86% of the time, likely 65% and close 41% (measured); shares are not probabilities. Do not replace a close call with the first alternative, and do not present a machine-proposed sense as accepted.

Select a repeated occurrence#

Supply span: [start, end] using JavaScript UTF-16 offsets. The end is exclusive, and the selected text must match the target. Preserve the exact input string when computing offsets; trimming or changing emoji first can move the selection.

Keep provenance#

Retain release, source, mode and model when saving a result. A bootstrap reference has a null release hash; do not invent a release id for it.

Editorial reference inventory#

resolve({ text, target, inventory: "reference" }) uses the current public reference inventory, including clarified glosses and sourced slang. This is an editorial view, not an accepted release. The returned source includes the inventory integrity digest. Omit inventory for the accepted-release behaviour, and use release to pin it; inventory: "reference" cannot be combined with release.

Next: Read a whole passage, or a usage's stable identity.