Trevixal API
    Preparing search index...

    Interface WritingAssistantOptions

    interface WritingAssistantOptions {
        debounceMs?: number;
        grammar?: boolean;
        layer?: string;
        longSentences?: boolean;
        onReport?: (report: WritingReport) => void;
        passive?: boolean;
        repeated?: boolean;
    }
    Index
    debounceMs?: number

    Delay between the last edit and the re-check; 0 runs synchronously (default 200).

    grammar?: boolean

    Run the grammar rules (default true).

    layer?: string

    Decoration layer key (default 'writing').

    longSentences?: boolean

    Flag sentences over 25 words (default false, it is noisy in long-form prose).

    onReport?: (report: WritingReport) => void
    passive?: boolean

    Flag passive constructions (default true).

    repeated?: boolean

    Flag doubled words (default true).