Add-ins · draft where you already workBrief 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
Both add-ins now also have Improve (rewrite a selection), Research(find & insert precedent — reranked for the paragraph you're drafting, with a “why it matters” line per case), and Review(whole-document structural check) tabs — for a draft you've already started, not just a fresh one.
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/.
- 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
- Start the Brief Guard API —
./run.sh (serves http://localhost:8000). - 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. - 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/.
- 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
- Open Apps Script. In a Google Doc: Extensions → Apps Script.
- Paste the three files from
plugins/gdocs/: Code.gs, a new HTML file Sidebar (Sidebar.html), and the appsscript.jsonmanifest (enable “Show manifest” in Project Settings). Save. - Run it. Reload the Doc → Brief Guard menu → Open Brief Guard → approve consent → set the API URL in Settings → Verify 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.
- Point them at your API once, in each add-in's Settings (or the default constant in
word/bg-core.js / gdocs/Code.gs). - Same engine as the web app — offline demo corpus with zero config; add an LLM key + Indian Kanoon token for contextual grounding and live case-law.
- The backend already sends permissive CORS, so no extra setup is needed.