Platform Features

Powerful tools for policy intelligence

LexiRule provides a complete end-to-end pipeline — from raw document to live eligibility form — with AI assistance and human oversight at every step.

Multimodal document understanding

Upload any PDF, DOCX, or paste a URL. Gemini Vision "reads" the document page by page, preserving tables, charts, and complex layouts as accurate Markdown — far beyond what traditional text extractors can handle.

  • PDF, DOCX, and URL support (including downloadable PDF links)
  • Complex table conversion to structured Markdown
  • Real-time streaming progress via Server-Sent Events
  • Stop/resume control with AbortController
  • Automatic versioning of every ingested source
// Streaming ingestion progress
Chunk 1/4 — Cover Page processed
Chunk 2/4 — Table of Contents
Chunk 3/4 — Eligibility Matrix ★
Chunk 4/4 — Appendix A (CLB Table)...
EXTRACTION CONTEXT LOADED
✓ CLB Score Mapping
✓ NOC Codes v2024
✓ Income Thresholds

AI Rule extraction engine

Our extraction agent (powered by OpenAI) reads the Markdown and identifies three types of rules: binary qualifications, weighted scoring criteria, and conditional date-based logic — all output as a structured JSON RuleBase.

  • Qualifications: binary pass/fail gatekeepers
  • Scoring rules with nested group hierarchies
  • IF/ELSE conditional expressions for date-based rules
  • Multi-source architecture — combine multiple documents
  • Every rule linked to exact source document
// Extracted Rule — JSON
{
  "type": "scoring",
  "description": "Language Score",
  "condition": "clb_level >= 9",
  "points": 20,
  "source_id": "ircc_guide_v2",
  "bboxes": [[0.42, 0.12, 0.58, 0.19]]
}

The Enhanced Auditor Layer

A second Gemini Vision agent takes the drafted rules and the original PDF and visually verifies each rule — finding missed sections and providing bounding-box evidence for every match. No hallucinations go undetected.

  • Two-pass AI pipeline: Draft → Audit
  • Visual bounding-box provenance on original PDF
  • Gap analysis: flags rules missed by the drafter
  • Real-time audit log visible in the UI
  • Color-coded result: ✅ Verified · ⚠️ Corrected · 🆕 New
Rule 1.1 — Age Requirement
Verified on Page 3 · Confidence: 99%
⚠️
Rule 2.3 — Income Threshold
Corrected: $25,000 → $32,000 (post-2024)
🆕
Rule 3.7 — LMIA Exception
Found in Appendix B — missed by drafter

Visual No-Code Editor

Admins review and edit extracted rules through a clean, hierarchical interface — no JSON required. Each rule can be edited, reordered, approved, or deleted with full audit logging. View the original document right alongside the rules.

  • Split-screen: document + rule tree side by side
  • Click-to-edit scores, conditions, and pathways
  • Toggle mandatory / optional status per rule
  • Add custom rules via guided modal dialogs
  • Safe deletion with confirmation workflow
  • Full change history preserved in audit log
📁 Language Skills
CLB Level ≥ 9 +20pts Verified
CLB Level 7–8 +10pts Verified
+ Add rule to this group...

Deterministic Form Engine

Once rules are approved, LexiRule generates a minimal, adaptive questionnaire. Only relevant questions are shown. The entire scoring and evaluation is done with pure logic — no AI, no network call, no guessing. Results are explainable to every applicant.

  • Conditional question display based on prior answers
  • Zero AI at runtime — 100% deterministic SQL logic
  • Real-time score display with rule trace panel
  • Fill with Random Data for QA testing
  • Visual diff: highlight rules changed between versions
  • Policy Chat — AI post-analysis on completed forms
QUESTION 3 OF 7
What is your highest level of education?
Running Score 52 / 100 pts

See LexiRule in action

Schedule a personalized demo and see how LexiRule handles your specific policy documents.