Interface GooglePerspectiveNodeParameters

Source
interface GooglePerspectiveNodeParameters {
    operation?: "analyzeComment";
    options?: { languages?: string };
    requestedAttributesUi?: {
        requestedAttributesValues: {
            attributeName?:
                | "flirtation"
                | "identity_attack"
                | "insult"
                | "profanity"
                | "severe_toxicity"
                | "sexually_explicit"
                | "threat"
                | "toxicity";
            scoreThreshold?: number;
        }[];
    };
    text?: string;
}

Properties§

Source§

readonly operation?: "analyzeComment"

Default: "analyzeComment"

Source§

readonly options?: { languages?: string }

Default: {}

Source§

readonly requestedAttributesUi?: {
    requestedAttributesValues: {
        attributeName?:
            | "flirtation"
            | "identity_attack"
            | "insult"
            | "profanity"
            | "severe_toxicity"
            | "sexually_explicit"
            | "threat"
            | "toxicity";
        scoreThreshold?: number;
    }[];
}

Default: {} Type options: {"multipleValues":true}

Source§

readonly text?: string