Examples
Examples
See how PolicyDiff represents different types of structural and legal changes using our rule-based engine.
Intent Logic: Negation Shift
Detecting when negation words (e.g., "not", "never") are removed from sensitive clauses, fundamentally changing the legal intent.
{
"risk_level": "CRITICAL",
"changes": [
{
"section": "Data Monetization",
"type": "MODIFIED",
"risk": "CRITICAL",
"reason": "NEGATION_REMOVAL_DETECTED",
"details": [
{ "value": "We will ", "removed": false },
{ "value": "not", "removed": true },
{ "value": " sell your PII.", "removed": false }
]
}
]
}Real-World Engine Output: Full Trace
The complete, unedited result from the deterministic diff engine, illustrating the detailed signal provided for a complex pricing and legal shift.
{
"message": "Changes detected",
"risk_level": "HIGH",
"changes": [
{
"section": "2. subscription tiers",
"type": "MODIFIED",
"details": [
{
"value": "the following table outlines our current pricing plans...",
"added": false,
"removed": false
},
{
"value": "by subscribing you agree to waive your right to participate in",
"added": false,
"removed": true
},
{
"value": "all sales are final and we offer no refund",
"added": true,
"removed": false
}
],
"risk": "HIGH",
"reason": "High risk keyword root detected"
}
],
"content_isolation": "success",
"isolation_drift": true,
"numeric_override_triggered": false,
"fuzzy_match_count": 0,
"low_confidence_fuzzy_match_count": 0,
"fuzzy_collision_count": 0,
"title_rename_count": 0
}Pricing Change (Numeric Override)
A subtle increase in monthly subscription cost detected as a numeric override event.
{
"risk_level": "MEDIUM",
"changes": [
{
"section": "Pro Plan Pricing",
"type": "MODIFIED",
"risk": "MEDIUM",
"reason": "Numeric value increased",
"diff": {
"added": ["$29/month"],
"removed": ["$19/month"]
}
}
]
}