Brief Guard India
Workspace Verifier API
Add-ins · draft where you already work

Brief Guard inside Word & Google Docs

Grammarly-style citation & AI-hallucination checking, brought into the editors lawyers actually draft in. Each add-in reads the open document, sends its text to your Brief Guard API, and flags every fabricated, overruled, or misgrounded authority — inline, with a reason and a suggested fix.

fabricated / overruled / misgrounded unverified / support unconfirmed verified

Microsoft Word anchored comments

A task pane + ribbon button. Reviews each citation, jumps to it in the document, and inserts a color-coded, anchored Word comment with the fix. Files live in plugins/word/.

  1. Serve the add-in files over HTTPS (Office requires it). From plugins/word/:
    npx office-addin-dev-certs install
    npx http-server . -p 3000 -S \
      -C ~/.office-addin-dev-certs/localhost.crt \
      -K ~/.office-addin-dev-certs/localhost.key
  2. Start the Brief Guard API./run.sh (serves http://localhost:8000).
  3. Sideload the manifest. Mac: copy manifest.xml into ~/Library/Containers/com.microsoft.Word/Data/Documents/wef/ and restart Word. Windows: share a folder with manifest.xml and add it under Trust Center → Trusted Add-in Catalogs. Web: Insert → Add-ins → Upload My Add-in.
  4. Run it. Home tab → Brief Guard group → Verify Citations. Per card: Go to selects the citation; Add comment anchors a comment. Or Verify & Comment to annotate every issue at once.
API URL is set in the task-pane Settings gear (default http://localhost:8000). Word's pane runs on your machine, so it can reach localhost directly.

Needs Word with WordApi 1.4+ for anchored comments (Microsoft 365 / Word on the web); older builds fall back to highlighting. Full guide: plugins/word/README.md.

Google Docs sidebar + highlight

A Grammarly-style sidebar. Highlights citations by severity, adds inline notes, and can append a full Citation Report. Files live in plugins/gdocs/.

  1. Expose your API on a public HTTPS URL. Apps Script runs on Google's servers and cannot reach localhost:
    ngrok http 8000        # -> https://abcd.ngrok-free.app
    # or a deployed https URL
  2. Open Apps Script. In a Google Doc: Extensions → Apps Script.
  3. Paste the three files from plugins/gdocs/: Code.gs, a new HTML file Sidebar (Sidebar.html), and the appsscript.json manifest (enable “Show manifest” in Project Settings). Save.
  4. Run it. Reload the Doc → Brief Guard menu → Open Brief Guard → approve consent → set the API URL in SettingsVerify Citations. Per card: Go to, Highlight, Add note; toolbar has Insert report / Clear highlights.
Google Docs can't create anchored comments from Apps Script, so the add-on uses severity highlighting, inline notes, and an appended report instead — all reversible.

Full guide + clasp deploy: plugins/gdocs/README.md.

What both add-ins show

A risk score, per-status counts, and a card for every citation — status badge, the citation and case name, the reason, a suggested fix, matched-case detail, quote checks, and the grounding rationale. They call one endpoint, POST /api/analyze, and anchor by searching the document for the exact citation string, so results land on the right text.