docx-validate
    Preparing search index...

    Function inferAuthor

    • Infer the author of new tracked changes between modifiedDir and originalDocx. Returns the single new author when exactly one is found, defaultAuthor when no new authors are detected, and throws when more than one author has added changes (ambiguous; caller must pick).

      defaultAuthor is required — there is no built-in fallback string.

      Parameters

      • modifiedDir: string
      • originalDocx: string
      • defaultAuthor: string

      Returns Promise<string>