Deontic modality extraction is the automated process of detecting words and phrases that express normative force—what an actor must, may, or must not do. The task distinguishes deontic modal auxiliaries like shall, must, may, and cannot from epistemic modals that express possibility or belief. In legal and regulatory texts, this extraction is foundational for transforming prose into machine-executable rules by isolating the operative language that creates duties, grants rights, or imposes constraints.
Glossary
Deontic Modality Extraction

What is Deontic Modality Extraction?
Deontic modality extraction is the computational linguistics task of identifying and classifying linguistic markers in text that signal obligation, permission, or prohibition, enabling automated systems to parse normative rules from unstructured language.
Modern extraction systems combine dependency parsing with transformer-based token classification to handle complex scoping challenges, such as negation that flips an obligation into a prohibition. The output is typically a structured tuple containing the deontic operator, the subject bearing the duty, the action required or forbidden, and any conditions or exceptions. This structured representation feeds downstream deontic logic modeling engines and contract clause extraction pipelines, forming the bridge between natural language and formal normative reasoning.
Key Characteristics of Deontic Modality Extraction
Deontic modality extraction is the computational identification of linguistic markers that signal obligation, permission, or prohibition within legal text. This process transforms ambiguous natural language into machine-actionable normative logic.
The Deontic Triad: Obligation, Permission, Prohibition
Deontic modality extraction classifies clauses into three fundamental normative categories:
- Obligation: Markers like 'shall', 'must', 'is required to' that impose a duty
- Permission: Markers like 'may', 'is permitted to', 'has the right to' that grant authority
- Prohibition: Markers like 'shall not', 'must not', 'may not' that forbid action
A single sentence can contain nested modalities, such as 'The lessee shall maintain insurance but may self-insure if assets exceed $10M.'
Scope and Target Identification
Extraction requires identifying not just the modal marker but its full syntactic scope:
- Bearer: The party upon whom the obligation falls (e.g., 'the Contractor')
- Action: The required, permitted, or prohibited conduct
- Condition: Any triggering event or precondition
- Exception: Carve-outs that limit the scope
Example: 'The Licensee [bearer] shall [obligation] pay royalties within 30 days [action] unless a force majeure event occurs [exception].'
Ambiguity Resolution in Legal Modals
Legal text presents unique challenges where common modals carry domain-specific weight:
- 'Shall' in statutes creates a mandatory duty, not mere futurity
- 'May' confers discretionary authority, not possibility
- 'Must' in contracts often signals a condition precedent
- 'Will' can express a future promise with binding force
Contextual disambiguation distinguishes deontic uses from epistemic uses ('The evidence may suggest fraud' expresses possibility, not permission).
Negation and Exception Handling
Negation transforms deontic meaning and requires precise structural parsing:
- Direct negation: 'shall not' converts obligation to prohibition
- Scope ambiguity: 'You shall not disclose or use the data' — does 'not' govern both verbs?
- Double modals: 'No party may assign this agreement without prior written consent'
- Exception nesting: 'The recipient shall not disclose Confidential Information, except as required by law or with the discloser's prior written consent'
Failure to correctly resolve negation scope is a primary source of extraction errors.
Conditional and Temporal Modality
Deontic force often depends on conditional or temporal triggers that must be extracted as part of the modality frame:
- Conditional obligation: 'If the project is delayed, the contractor shall pay liquidated damages'
- Temporal permission: 'The tenant may sublet the premises after the first year of the lease term'
- Sunset clauses: 'This restriction shall expire upon the fifth anniversary of the Closing Date'
Extraction systems must link the modal to its governing condition to preserve the full normative logic.
Multi-Lingual and Cross-Jurisdictional Variation
Deontic markers vary significantly across legal traditions:
- Common law: Heavy reliance on 'shall' and 'may' with established interpretive canons
- Civil law: Preference for present indicative tense with deontic force implied by context
- EU legislation: 'Shall' has been largely replaced by present tense in modern drafting guidelines
- French: 'doit' (must), 'peut' (may), 'ne peut pas' (may not)
- German: 'muss' (must), 'darf' (may), 'darf nicht' (must not)
Cross-jurisdictional systems require language-specific extraction models calibrated to local drafting conventions.
Frequently Asked Questions
Clear, technical answers to the most common questions about identifying and classifying obligation, permission, and prohibition signals in legal text.
Deontic modality extraction is the computational linguistics task of identifying linguistic markers in text that signal obligation, permission, or prohibition. Unlike epistemic modality (which deals with certainty and belief), deontic modality concerns normative statements about what is required, allowed, or forbidden. The process typically involves a sequence classification pipeline where a transformer-based model, fine-tuned on annotated legal corpora, classifies each clause or sentence into deontic categories. Key linguistic triggers include modal auxiliaries like 'shall,' 'must,' 'may,' 'must not,' and 'may not,' but also extend to deontic adjectives ('obligatory,' 'permissible'), verbs ('require,' 'prohibit'), and nominal constructions ('obligation,' 'right'). Modern extraction systems employ contextual embeddings from models like Legal-BERT to disambiguate deontic from epistemic uses of the same modal verb—for instance, distinguishing 'The contractor shall deliver' (obligation) from 'The package shall arrive by Friday' (prediction). The output is a structured annotation layer that tags each normative statement with its deontic type, subject, action, and any conditional triggers, enabling downstream contract compliance engines and obligation management systems.
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.
Related Terms
Master the ecosystem of terms surrounding deontic modality extraction—the computational identification of obligation, permission, and prohibition in legal text.
Deontic Logic Modeling
The formal symbolic representation of normative reasoning using modal operators. Where deontic modality extraction identifies linguistic markers like 'shall' or 'may', deontic logic modeling translates them into computable axioms.
- O(p): Obligation that p occurs
- P(p): Permission that p occurs
- F(p): Prohibition of p (equivalent to O(¬p))
Standard Deontic Logic (SDL) extends classical propositional logic with these operators, enabling automated consistency checking of regulatory rule sets.
Operative Provision Segmentation
The isolation of binding, actionable clauses from prefatory material. Deontic modality extraction operates primarily within operative provisions—the sections containing 'shall', 'must', and 'may' that create legal effects.
- Distinguishes recitals ('Whereas...') from mandates
- Identifies the boundary between background context and enforceable terms
- Critical preprocessing step: modality extraction on recitals produces false positives
Without accurate segmentation, obligation detection systems conflate statements of intent with binding duties.
Normative Conflict Resolution
The algorithmic detection and reconciliation of contradictory deontic expressions. When extraction identifies both O(p) and F(p) across a document corpus, conflict resolution engines apply precedence rules:
- Lex superior: Higher authority prevails
- Lex posterior: Later enactment prevails
- Lex specialis: Specific rule overrides general
Deontic modality extraction feeds these systems by surfacing the precise location and scope of each obligation, permission, or prohibition for pairwise comparison.
Statutory Reference String Parsing
The decomposition of legal citations into structured components. Deontic modality extraction often couples with reference parsing to answer: 'Who is obligated, under which authority, to do what?'
A parsed citation like '42 U.S.C. § 1983' yields:
- Title: 42
- Code: U.S.C.
- Section: 1983
Combined with modality extraction, this enables mapping obligations to their statutory source for hierarchical conflict analysis.
Temporal Reasoning in Contracts
The modeling of time-bound deontic conditions. Obligations extracted via modality analysis often carry temporal constraints that determine when duties activate, expire, or recur.
- Deadline extraction: 'shall deliver within 30 days'
- Effective date parsing: 'This agreement shall commence on...'
- Conditional triggers: 'shall, upon receipt of notice...'
Temporal reasoning layers add the when dimension to the what identified by deontic modality extraction, enabling full obligation lifecycle management.
Legal Embedding Models
Vector representations of legal text optimized for semantic similarity. Fine-tuned embedding models capture the nuanced distinction between:
- 'May' (discretionary permission)
- 'Shall' (mandatory obligation)
- 'Must not' (absolute prohibition)
These models power the classification layer in neural deontic extraction pipelines, outperforming regex-based approaches on ambiguous constructions like 'no person shall' (which is prohibitive, not obligative).

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