This prompt is designed for contract review pipelines that must determine which jurisdiction's laws govern an agreement. It detects governing law clauses, extracts the specified jurisdiction and venue, and explicitly flags contracts where governing law is missing, ambiguous, or distributed across multiple sections. Use this prompt when your system needs to route contracts by jurisdiction, assess enforceability risk, or validate contract completeness before ingestion into a contract management platform.
Prompt
Missing Governing Law Clause Prompt

When to Use This Prompt
Determine when to deploy the Missing Governing Law Clause Prompt in a contract review pipeline and when to choose an alternative approach.
The ideal deployment context is a document intelligence pipeline where contracts arrive in varied formats and must be triaged before downstream processing. For example, a procurement system might use this prompt to route contracts governed by California law to a California-specific review queue, while flagging contracts with missing governing law for manual attorney review. The prompt expects a full contract text as input and returns a structured JSON object with governing_law_found, jurisdiction, venue, clause_text, citation_location, and ambiguity_flags fields. This structured output makes it straightforward to integrate with contract management APIs, compliance databases, or routing rules engines.
Do not use this prompt when you need legal advice about whether a governing law clause is enforceable, when you need to interpret choice-of-law rules across multiple jurisdictions, or when the contract is governed by international treaties or arbitration rules that require specialized analysis. This prompt identifies presence, absence, and ambiguity—it does not provide legal opinions. Human legal review is required for contracts flagged as ambiguous or missing governing law. For contracts where governing law is implied by the parties' locations or the contract's subject matter, pair this prompt with a separate jurisdiction inference step rather than expecting the model to perform legal reasoning beyond the text.
Use Case Fit
Where the Missing Governing Law Clause prompt works, where it fails, and the operational preconditions required before deploying it into a contract review pipeline.
Good Fit: Standard Commercial Contracts
Use when: contracts follow conventional section headings such as 'Governing Law,' 'Jurisdiction,' or 'Dispute Resolution.' The prompt reliably extracts explicit jurisdiction and venue statements with high confidence. Guardrail: always pair extraction with a citation to the exact section and paragraph to enable human verification.
Bad Fit: Implied or Industry-Norm Jurisdiction
Avoid when: jurisdiction is only implied by party location, industry custom, or referenced arbitration rules without an explicit governing law clause. The model may hallucinate a jurisdiction based on contextual cues. Guardrail: require an explicit text span as evidence; if none exists, output governing_law_found: false with reason implied_not_stated.
Required Inputs
Required: full contract text with preserved section headings and paragraph boundaries. Strongly recommended: a pre-extracted clause index or table of contents to narrow the search scope. Guardrail: if the document exceeds the model's context window, pre-chunk by section and run the prompt on each chunk containing 'governing,' 'jurisdiction,' 'venue,' or 'dispute' keywords.
Operational Risk: Split Governing Law Provisions
Risk: governing law and venue may appear in separate sections (e.g., 'Governing Law' in Section 12 and 'Venue' in Section 15). A single-pass extraction may miss one component. Guardrail: design the prompt to search the entire document for both elements independently and flag venue_missing: true if only governing law is found, with a note to check dispute resolution sections.
Operational Risk: Ambiguous or Conflicting Clauses
Risk: contracts may contain conflicting governing law provisions in different sections, amendments, or exhibits. The model may select one arbitrarily or blend them. Guardrail: instruct the prompt to extract all candidate clauses with their locations, flag conflicts, and escalate for human review rather than silently resolving ambiguity.
Not a Substitute for Legal Judgment
Risk: downstream systems may treat the prompt's output as a definitive jurisdiction determination for routing, compliance checks, or automated filing. Guardrail: the output schema must include a review_required boolean and a confidence score. Any contract with governing_law_found: false or confidence < 0.9 must route to a human reviewer before downstream actions execute.
Copy-Ready Prompt Template
A copy-ready prompt for detecting, extracting, and flagging missing governing law clauses in contracts.
The prompt below is designed to be pasted directly into your AI system. It instructs the model to analyze a contract, locate any governing law provision, extract the jurisdiction and venue, and—critically—produce an explicit flag when such a clause is absent, ambiguous, or split across multiple sections. Replace every square-bracket placeholder with your actual contract text and configuration values before use.
textYou are a contract analysis assistant. Your task is to examine the provided contract text and determine the governing law and venue. INPUT CONTRACT: [CONTRACT_TEXT] OUTPUT SCHEMA: Return a single JSON object with the following fields: - "governing_law_found": boolean - "jurisdiction": string or null - "venue": string or null - "clause_text": string or null (the exact text of the governing law clause) - "section_reference": string or null (e.g., "Section 12.4") - "confidence": "high" | "medium" | "low" - "absence_reason": string or null (required if governing_law_found is false; explain why, e.g., "No clause found", "Clause is ambiguous", "Jurisdiction split across sections 5.2 and 8.1") - "notes": string (any additional observations) CONSTRAINTS: - If no governing law clause is found, set "governing_law_found" to false and all extraction fields to null. - If a clause is present but the jurisdiction is ambiguous (e.g., "the laws of the State of the parties' principal place of business"), set "jurisdiction" to null, "confidence" to "low", and explain in "absence_reason". - Do not infer a jurisdiction from the parties' addresses or other contextual clues unless explicitly stated as the governing law. - If the governing law and venue are stated in separate sections, extract both and note the split in "notes". [EXAMPLES] Example 1 - Clause Found: Input: "This Agreement shall be governed by and construed in accordance with the laws of the State of New York, without regard to its conflict of laws principles. Any legal action arising out of this Agreement shall be brought in the federal or state courts located in New York County, New York." Output: {"governing_law_found": true, "jurisdiction": "State of New York", "venue": "New York County, New York", "clause_text": "This Agreement shall be governed by...", "section_reference": null, "confidence": "high", "absence_reason": null, "notes": ""} Example 2 - Clause Missing: Input: "The parties agree to the terms set forth herein. IN WITNESS WHEREOF..." Output: {"governing_law_found": false, "jurisdiction": null, "venue": null, "clause_text": null, "section_reference": null, "confidence": "high", "absence_reason": "No governing law clause found in the provided text.", "notes": ""} Example 3 - Ambiguous Clause: Input: "This contract is governed by the laws of the jurisdiction where the services are performed." Output: {"governing_law_found": true, "jurisdiction": null, "venue": null, "clause_text": "This contract is governed by the laws of the jurisdiction where the services are performed.", "section_reference": null, "confidence": "low", "absence_reason": "Jurisdiction is ambiguous; it depends on an external fact (location of service performance).", "notes": ""}
After pasting this template, replace [CONTRACT_TEXT] with the full text of the document you are analyzing. The [EXAMPLES] block provides few-shot demonstrations that teach the model the distinction between a missing clause, an ambiguous clause, and a clean extraction. For production use, you should expand these examples to cover edge cases specific to your contract domain, such as international arbitration clauses or choice-of-law provisions that reference multiple jurisdictions for different parts of the agreement. The output schema is designed to be machine-readable; the absence_reason field is the critical signal for downstream routing logic—contracts with a false governing_law_found flag should be routed for human review or an escalation workflow.
Prompt Variables
Required and optional inputs for the Missing Governing Law Clause Prompt. Each placeholder must be populated before the prompt is sent. Validation notes describe how to confirm the input is fit for purpose.
| Placeholder | Purpose | Example | Validation Notes |
|---|---|---|---|
[FULL_CONTRACT_TEXT] | The complete contract body to scan for governing law, jurisdiction, and venue provisions | Entire MSA or SOW as plain text or markdown extracted from PDF | Must not be truncated. Check character count against source document length. If OCR was used, run OCR confidence check first. |
[JURISDICTION_CHECKLIST] | List of expected jurisdiction patterns or required governing law references to verify presence or absence | ["Delaware", "New York", "England and Wales", "Singapore"] | Must be a valid JSON array of strings. Empty array is allowed and means 'detect any jurisdiction'. Validate JSON parse before prompt assembly. |
[OUTPUT_SCHEMA] | JSON schema describing the required output shape including presence flag, extracted text, citation, and confidence fields | See output contract table for full schema definition | Validate schema is valid JSON Schema draft-07 or later. Confirm required fields include 'governing_law_found', 'jurisdiction', and 'citation'. Schema parse check required before prompt assembly. |
[CONFIDENCE_THRESHOLD] | Minimum confidence score below which the extraction is flagged for human review | 0.85 | Must be a float between 0.0 and 1.0. Values below 0.7 produce excessive review flags in production. Validate type and range before prompt assembly. |
[AMBIGUITY_PATTERNS] | Known phrases or structures that indicate implied or split governing law without an explicit clause heading | ["shall be governed by", "subject to the laws of", "venue shall be", "exclusive jurisdiction of"] | Must be a valid JSON array of strings. Empty array is allowed. Patterns should be lowercase for case-insensitive matching. Validate JSON parse before prompt assembly. |
[DOCUMENT_METADATA] | Context about the document source, type, and extraction method to help the model calibrate uncertainty | {"source": "pdf_extraction", "document_type": "master_service_agreement", "page_count": 12, "extraction_method": "layout_aware_ocr"} | Must be a valid JSON object. Include 'extraction_method' field to help model account for OCR noise. Validate JSON parse and required keys before prompt assembly. |
[REVIEW_FLAG] | Boolean indicating whether this extraction is part of a human review workflow requiring explicit escalation language in output | Must be boolean true or false. When true, output must include 'review_recommended' field and 'review_reason' when governing law is absent or ambiguous. Validate type before prompt assembly. |
Implementation Harness Notes
How to wire the Missing Governing Law Clause prompt into a contract review application with validation, retries, and human review gates.
The Missing Governing Law Clause prompt is designed to operate as a single step inside a larger contract ingestion pipeline. It expects pre-extracted contract text and a structured output schema as inputs. The prompt should be called after the document has been parsed, classified as a contract, and had its text extracted—but before downstream risk scoring or obligation tracking systems consume the output. This ordering matters because a missing or ambiguous governing law clause changes how every other clause in the contract is interpreted, making it a gating extraction that should block or flag downstream processing when uncertain.
Wire this prompt as a standalone function or microservice that accepts [CONTRACT_TEXT] and [OUTPUT_SCHEMA] as inputs and returns a JSON payload with jurisdiction, venue, governing_law_clause_text, is_present, is_ambiguous, and confidence fields. Implement a validation layer that checks: (1) the is_present boolean matches whether clause text was actually returned, (2) when is_present is true, the jurisdiction field is not null or empty, and (3) when confidence is below a configurable threshold (suggest 0.85), the extraction is routed to a human review queue rather than automatically ingested. For production systems, log every extraction attempt with the contract hash, prompt version, model used, confidence score, and validation result. This audit trail is essential for legal engineering teams that must explain why a contract was flagged or passed through.
Model choice matters here. Use a model with strong legal text comprehension and structured output support—GPT-4o, Claude 3.5 Sonnet, or equivalent. Avoid smaller or general-purpose models that may hallucinate jurisdiction when the clause is absent. Set temperature=0 to maximize determinism. If your pipeline processes high volumes, implement a two-stage approach: a fast classifier prompt that determines presence/absence first, then a detailed extraction prompt only when the clause is found. This reduces token costs and latency for the common case where governing law is present and straightforward. For contracts that return is_ambiguous=true or confidence < 0.85, do not retry automatically with the same prompt—escalate to a human reviewer with the extracted clause text and the model's ambiguity notes attached. Retry logic should be reserved for clear system failures like malformed JSON or schema validation errors, not for borderline legal interpretations.
When integrating this prompt into a multi-document contract review system, ensure that the governing law extraction runs before cross-document consistency checks. A contract package may have a master agreement specifying Delaware law while an exhibit references California law—this prompt should flag each document independently, and a separate reconciliation step should resolve conflicts. Do not attempt to resolve cross-document jurisdiction conflicts inside this prompt; its scope is single-document extraction with explicit uncertainty signaling. For RAG-based systems that retrieve governing law clauses from a clause library, use this prompt's output as a filter: if is_present=false, skip retrieval of governing-law-specific precedent and flag the contract for manual jurisdiction assignment before any automated analysis proceeds.
Expected Output Contract
Schema contract for the Missing Governing Law Clause detection prompt. Every field must be validated before the output is accepted by downstream systems. Null fields must be explicit, not absent.
| Field or Element | Type or Format | Required | Validation Rule |
|---|---|---|---|
governing_law_clause_present | boolean | Must be true or false. If false, governing_law_jurisdiction and governing_law_venue must be null. | |
governing_law_jurisdiction | string | null | If present, must match a recognized jurisdiction name or ISO 3166-2 code. If null, absence_reason must be populated. | |
governing_law_venue | string | null | If present, must specify a court, county, or arbitration forum. If null, absence_reason must be populated. | |
governing_law_section_citation | string | null | If clause is present, must cite the exact section, paragraph, or page where the governing law provision appears. Format: Section X.Y or Page N. | |
absence_reason | string | null | Required when governing_law_clause_present is false. Must be one of: 'not_found', 'ambiguous', 'split_across_sections', 'redacted', 'illegible'. | |
alternative_language_detected | boolean | Must be true if the contract uses non-standard language that implies jurisdiction without an explicit governing law clause. Triggers human review flag. | |
confidence_score | number (0.0-1.0) | Must be a float between 0.0 and 1.0. Scores below 0.85 must set review_required to true. Scores below 0.60 must set extraction_failed to true. | |
review_required | boolean | Must be true if confidence_score < 0.85, alternative_language_detected is true, or absence_reason is 'ambiguous' or 'split_across_sections'. |
Common Failure Modes
When a governing law clause is missing, the model's behavior can shift from a clean null to a hallucinated jurisdiction. These are the most common failure patterns and how to prevent them in production.
Hallucinated Jurisdiction from Context
Risk: The model infers a governing law from party addresses, venue mentions, or notary blocks and returns it as a confirmed extraction instead of flagging it as absent. Guardrail: Instruct the model to require an explicit 'Governing Law' heading or phrase. If only circumstantial evidence exists, output jurisdiction_source: 'inferred' and set confidence: low.
False Positive on Arbitration Clauses
Risk: The model confuses an arbitration clause or dispute resolution procedure with a governing law clause, extracting the arbitration rules (e.g., AAA, JAMS) as the jurisdiction. Guardrail: Add a negative example in the prompt showing an arbitration clause and the expected output of governing_law: null with absence_reason: 'arbitration_clause_only'.
Split Clause Miss
Risk: The governing law and venue are specified in separate, non-adjacent sections. The model finds one and stops searching, returning a partial result without flagging the split. Guardrail: Require the model to scan the entire document for both jurisdiction and venue before emitting a final output. Add a post-extraction check: if jurisdiction is found but venue is null, trigger a re-scan prompt.
Ambiguous Language Treated as Definitive
Risk: Language like 'The laws of the State of New York, or such other jurisdiction as the Lender may select' is extracted as a simple 'New York' without flagging the unilateral choice provision. Guardrail: Add a specific output field is_ambiguous: boolean and instruct the model to set it to true if the clause contains language like 'or as X may elect', 'non-exclusive', or 'without regard to'.
Choice of Law vs. Governing Law Confusion
Risk: A 'Choice of Law' provision in a related document (e.g., a referenced Terms of Service) is extracted as the primary contract's governing law. Guardrail: Constrain extraction to the four corners of the provided document text. If a reference to an external document is the only source, output governing_law: null and absence_reason: 'external_reference_only'.
Silent Null on Scanned Documents
Risk: On a low-quality scan, the OCR garbles the governing law clause text. The model, unable to parse it, defaults to a null output without indicating an OCR failure, making it look like the clause is genuinely absent. Guardrail: Pre-process the document with an OCR confidence scorer. If the region around a potential clause has low confidence, inject a note into the prompt context: [OCR_WARNING: Low confidence in Section 12.3]. The model must then output absence_reason: 'ocr_failure'.
Evaluation Rubric
How to test output quality before shipping. Run these checks against a golden dataset of 50+ contracts with known governing law status.
| Criterion | Pass Standard | Failure Signal | Test Method |
|---|---|---|---|
Governing Law Presence Detection | Correctly identifies presence or absence of a governing law clause in 98% of contracts | False positive on contracts with only venue or forum selection clauses; false negative on contracts where governing law is embedded in a miscellaneous section | Run against 50-contract golden set with known presence/absence labels; measure precision and recall separately |
Jurisdiction Extraction Accuracy | Extracted jurisdiction matches ground-truth label for 95% of contracts with a governing law clause | Extracts venue instead of governing law; extracts state when contract specifies federal law; extracts outdated jurisdiction from amendment history | Compare extracted [JURISDICTION] field against golden-set labels; flag any mismatch for manual review |
Venue Extraction Accuracy | Extracted venue matches ground-truth label for 90% of contracts with an explicit venue clause | Extracts governing law jurisdiction as venue; misses venue specified in a separate dispute resolution section; conflates arbitration venue with litigation venue | Compare extracted [VENUE] field against golden-set labels; treat missing venue as pass when contract has no venue clause |
Split Clause Detection | Flags contracts where governing law and venue appear in separate, non-adjacent sections with 90% recall | Misses split clauses when sections use different heading terminology; false flags when clauses are adjacent but in separate numbered paragraphs | Use 15-contract subset with known split-clause patterns; measure recall of [SPLIT_CLAUSE_FLAG] |
Ambiguity Flagging | Raises [AMBIGUITY_FLAG] for contracts with conflicting or conditional governing law language with 85% precision | Flags standard exclusive jurisdiction language as ambiguous; misses true ambiguity from most-favored-nation or fallback jurisdiction clauses | Use 10-contract subset with known ambiguous governing law; measure precision and recall of ambiguity flag |
Implied Jurisdiction Detection | Correctly identifies implied jurisdiction from related clauses in 80% of contracts where governing law is absent but venue or arbitration clause specifies jurisdiction | Infers jurisdiction from party addresses or notary blocks; misses implied jurisdiction when venue uses 'courts of competent jurisdiction' without naming a location | Use 10-contract subset with absent governing law but present venue; check [IMPLIED_JURISDICTION] against ground truth |
Null Output Schema Compliance | Returns valid JSON matching [OUTPUT_SCHEMA] with all required fields present and correct types in 100% of test cases | Missing [GOVERNING_LAW_PRESENT] boolean field; null represented as empty string instead of explicit null; [CONFIDENCE] outside 0.0-1.0 range | Validate all outputs against JSON Schema; reject any response that fails schema validation |
Confidence Score Calibration | Mean [CONFIDENCE] for correct extractions exceeds 0.85; mean confidence for incorrect extractions below 0.60 | High confidence on incorrect jurisdiction; low confidence on straightforward single-jurisdiction clauses; confidence uncorrelated with accuracy | Compute mean confidence for correct and incorrect predictions separately; check for separation between distributions |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Adapt This Prompt
How to adapt
Start with the base prompt and a single contract. Remove strict output schema requirements initially—accept a paragraph response that identifies governing law presence, jurisdiction, and venue. Use a frontier model (GPT-4o, Claude 3.5 Sonnet) with default temperature.
codeAnalyze this contract and tell me: 1. Is there a governing law clause? (Yes/No) 2. If yes, what jurisdiction is specified? 3. If no, are there any clues about intended jurisdiction? Contract: [CONTRACT_TEXT]
Watch for
- Model confidently extracting jurisdiction from a venue clause and labeling it governing law
- False positives on choice-of-forum clauses that don't specify governing law
- No distinction between 'clause absent' and 'clause ambiguous'

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us