Class InherentConflictDetector
java.lang.Object
org.episteme.social.law.InherentConflictDetector
Detects internal contradictions and risk factors in contracts and statutes.
Uses keyword-based analysis to identify potential legal conflicts.
- Version:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a detected conflict between two sections of a legal document. -
Method Summary
Modifier and TypeMethodDescriptioncheckValidity(String text) Checks if a contract text meets basic legal validity criteria using simple heuristics.scanForContradictions(Map<String, String> clauses) Scans a map of legal clauses for keyword-based contradictions.
-
Method Details
-
scanForContradictions
public static List<InherentConflictDetector.Conflict> scanForContradictions(Map<String, String> clauses) Scans a map of legal clauses for keyword-based contradictions.- Parameters:
clauses- a map where keys are section identifiers and values are clause texts- Returns:
- a list of detected conflicts
-
checkValidity
-