package at.procon.dip.normalization.spi;

import at.procon.dip.domain.document.ContentRole;
import at.procon.dip.domain.document.RepresentationType;

/**
 * Candidate text representation for semantic indexing.
 */
public record TextRepresentationDraft(
        RepresentationType representationType,
        String builderKey,
        String languageCode,
        String textBody,
        boolean primary,
        Integer chunkIndex,
        Integer chunkStartOffset,
        Integer chunkEndOffset,
        ContentRole sourceContentRole,
        Boolean queueForEmbedding
) {

    public TextRepresentationDraft(RepresentationType representationType,
                                   String languageCode,
                                   String textBody,
                                   boolean primary,
                                   Integer chunkIndex) {
        this(representationType, null, languageCode, textBody, primary, chunkIndex, null, null, ContentRole.NORMALIZED_TEXT, null);
    }
}

