Nutrient Web SDK

v0.0.0-dev

ReferenceAIADocumentChangeTaggingItem

Interface AIADocumentChangeTaggingItem

Individual change item with AI-assigned category tags from the tagging service. Extends the base response item with categorization information.

Interface

Example

// Typical structure of a tagged change
{
id: "change-123",
type: "insertion",
text: "confidential information",
page: 2,
contextBefore: "regarding the ",
contextAfter: " shall not be disclosed",
tag: ["Legal", "Confidentiality"]
}

Hierarchy

AIADocumentChangeResponseItemAIADocumentChangeTaggingItem

Properties

contextAfter

Optional
string

Text content appearing after the change for context.

string

Text content appearing before the change for context.

string

Unique identifier for this change, used for tracking and correlation

number

Zero-based page number where this change occurred

string[]

Array of category strings assigned by AI to classify this change.

string

The actual text content that was changed

string

Type of change operation (e.g., "insertion", "deletion", "modification")