<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Majed</title>
    <description>The latest articles on Forem by Majed (@majed_dev).</description>
    <link>https://forem.com/majed_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3817572%2F8c258364-6927-4727-9aa1-be6b6ce68a59.png</url>
      <title>Forem: Majed</title>
      <link>https://forem.com/majed_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/majed_dev"/>
    <language>en</language>
    <item>
      <title>Deterministic Contract Risk Scanning in a Single HTML File (No AI, No Cloud)</title>
      <dc:creator>Majed</dc:creator>
      <pubDate>Tue, 10 Mar 2026 23:23:28 +0000</pubDate>
      <link>https://forem.com/majed_dev/deterministic-contract-risk-scanning-in-a-single-html-file-no-ai-no-cloud-293d</link>
      <guid>https://forem.com/majed_dev/deterministic-contract-risk-scanning-in-a-single-html-file-no-ai-no-cloud-293d</guid>
      <description>&lt;p&gt;&lt;strong&gt;Most contract review tools today do one of two things: send &lt;br&gt;
your documents to a cloud AI, or charge you $2,000/year for &lt;br&gt;
the privilege of doing so.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Neither felt acceptable to me for sensitive legal documents.&lt;/p&gt;

&lt;p&gt;So I built CRIP; a deterministic, rule-based contract risk &lt;br&gt;
scanner that runs entirely as a single HTML file on your &lt;br&gt;
machine. No server. No API. No data leaves your device.&lt;/p&gt;
&lt;h2&gt;
  
  
  30-second demo
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=12OQpdB6uZA" rel="noopener noreferrer"&gt;https://www.youtube.com/watch?v=12OQpdB6uZA&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The problem with AI for contract review
&lt;/h2&gt;

&lt;p&gt;AI contract tools are impressive. But for this specific use &lt;br&gt;
case, they have three fundamental problems.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Your documents leave your machine
&lt;/h3&gt;

&lt;p&gt;NDAs, vendor agreements, privileged materials — uploading &lt;br&gt;
them to any external service creates exposure. Many NDAs &lt;br&gt;
explicitly prohibit sharing document contents with third &lt;br&gt;
parties.&lt;/p&gt;

&lt;p&gt;You can technically breach the very agreement you're reviewing &lt;br&gt;
just by running it through a cloud tool.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Results are probabilistic, not auditable
&lt;/h3&gt;

&lt;p&gt;Ask an AI to review the same contract twice and you may get &lt;br&gt;
different results.&lt;/p&gt;

&lt;p&gt;When you're presenting risk findings to a board or legal &lt;br&gt;
counsel, "the AI flagged it" is not an acceptable explanation.&lt;/p&gt;

&lt;p&gt;You need to show exactly which rule triggered, why, and where &lt;br&gt;
in the document.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Restricted environments can't use them
&lt;/h3&gt;

&lt;p&gt;Air-gapped networks. Government contractors. Regulated &lt;br&gt;
industries.&lt;/p&gt;

&lt;p&gt;These environments have real contract review needs and &lt;br&gt;
almost no tools that work within their restrictions.&lt;/p&gt;
&lt;h2&gt;
  
  
  The deterministic alternative
&lt;/h2&gt;

&lt;p&gt;CRIP uses four detection methods against a configurable &lt;br&gt;
playbook of 217+ clause patterns.&lt;/p&gt;
&lt;h3&gt;
  
  
  Exact Phrase
&lt;/h3&gt;

&lt;p&gt;Finds precise wording.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;termination without cause
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Stem Match
&lt;/h3&gt;

&lt;p&gt;Catches all word variations.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;terminat- → terminate, terminating, termination
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Token Proximity
&lt;/h3&gt;

&lt;p&gt;Flags risk spread across a sentence.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;liability within 12 tokens of unlimited
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Regex
&lt;/h3&gt;

&lt;p&gt;Advanced structural matching.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;\b(indemnif)(y|ies|ied|ication)\b
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every flagged clause shows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the exact document location
&lt;/li&gt;
&lt;li&gt;the rule that triggered it
&lt;/li&gt;
&lt;li&gt;a severity level (High / Medium / Low)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No black box. Fully auditable.&lt;/p&gt;

&lt;h2&gt;
  
  
  What deterministic gives you that AI doesn't
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reproducibility&lt;/strong&gt; — same contract, same playbook, same result&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auditability&lt;/strong&gt; — every flag traces to a rule and document location&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speed&lt;/strong&gt; — results in seconds with a single local pass&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Privacy&lt;/strong&gt; — nothing transmitted at any stage&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Air-gap compatibility&lt;/strong&gt; — works in fully offline environments&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The output
&lt;/h2&gt;

&lt;p&gt;Each scan generates an executive report exportable as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PDF&lt;/li&gt;
&lt;li&gt;DOCX&lt;/li&gt;
&lt;li&gt;PowerPoint&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reports include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Contract health score (logarithmic, weighted by clause severity)&lt;/li&gt;
&lt;li&gt;Estimated financial exposure&lt;/li&gt;
&lt;li&gt;Risk radar map across clause categories&lt;/li&gt;
&lt;li&gt;Clause-by-clause action plan&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The tradeoff
&lt;/h2&gt;

&lt;p&gt;Deterministic detection won't catch a completely novel clause &lt;br&gt;
written in a creative way that doesn't match any pattern.&lt;/p&gt;

&lt;p&gt;AI might.&lt;/p&gt;

&lt;p&gt;But for the &lt;strong&gt;217+ known high-risk clause patterns&lt;/strong&gt; that appear &lt;br&gt;
in the majority of commercial contracts — uncapped indemnity, &lt;br&gt;
auto-renewal traps, termination without cause, unfavorable &lt;br&gt;
jurisdiction clauses — deterministic detection is faster, &lt;br&gt;
reproducible, and far easier to audit.&lt;/p&gt;

&lt;p&gt;The playbook is also fully editable.&lt;/p&gt;

&lt;p&gt;You can add your own rules using any of the four detection &lt;br&gt;
methods and clauses for detection.&lt;/p&gt;

&lt;h2&gt;
  
  
  Architecture
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Single HTML file.&lt;/li&gt;
&lt;li&gt;Runs in any modern browser.&lt;/li&gt;
&lt;li&gt;No installation. No dependencies. No internet required after 
initial font loading.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Works in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;air-gapped environments&lt;/li&gt;
&lt;li&gt;restricted networks&lt;/li&gt;
&lt;li&gt;regulated infrastructures&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One-time purchase. No subscriptions. No seat limits.&lt;/p&gt;




&lt;p&gt;If you work in legal, procurement, or compliance and have &lt;br&gt;
ever felt uncomfortable uploading a sensitive contract to &lt;br&gt;
a cloud AI tool, this might be useful.&lt;/p&gt;

&lt;p&gt;CRIP; Contract Risk Intelligence Platform&lt;br&gt;&lt;br&gt;
&lt;a href="https://cripengine.netlify.app/" rel="noopener noreferrer"&gt;https://cripengine.netlify.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy to discuss the detection engine or architecture in the comments.&lt;/p&gt;

</description>
      <category>legaltech</category>
      <category>security</category>
      <category>javascript</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
