OCR text can help you find a State-law provision, but it should not be quoted as authoritative law until it has been checked against the source scan. IndiaCode has recovered 1.85 lakh+ searchable sections from 7,700+ State Acts that government repositories supplied as scanned documents. That makes State law searchable at national scale. It also creates a duty to keep the warning, the scan and the verification status attached wherever the text travels.
Last updated: 3 November 2026. Verification guide checked 25 September 2026. This article concerns discovery and citation hygiene, not the legal effect or amendment status of any particular State enactment.
The short rule
Use OCR to locate the law. Use the Gazette or official scan to verify the words. Use amendment and commencement sources to decide whether those words operated at the relevant time.
Key takeaways
- OCR is a transcription process, not a source of legal authority.
- A correct-looking sentence can still contain a missing proviso, wrong number, broken table or heading from the next section.
- The safest citation identifies the Act, provision, jurisdiction, Gazette or scan, page and verification date.
- “As on” or “page updated” does not prove that every amendment has been incorporated.
- AI systems must carry the OCR warning and scan provenance in JSON, Markdown, XML and structured data, not only on the HTML page.
- If verification is impossible, say that clearly and cite the document rather than asserting the extracted text.

What OCR actually does
Optical character recognition turns page images into characters. A legal-document pipeline then tries to identify the title, chapter, section number, heading, body, provisos, explanations, schedules and footnotes. This works well on clean digital scans and less well on old Gazettes, skewed pages, bilingual columns, stamps, faint type and complex tables.
That distinction matters because a PDF can be public and still be practically unsearchable. Without OCR, a researcher must know which document to open and then inspect it page by page. With OCR, a phrase, section number or subject can lead directly to a candidate provision. The retrieval gain is enormous; the legal status of the underlying scan does not change.
Six common OCR failures in legislation
- Character substitutions: “1” becomes “l,” “0” becomes “O,” or a currency symbol disappears.
- Boundary spillover: the next section heading is appended to the current section.
- Missing provisos: an indented proviso or explanation is skipped because the layout differs from the main paragraph.
- Broken numbering: clauses, sub-clauses and Roman numerals lose their hierarchy.
- Table collapse: rows and columns are read in the wrong order, changing the relationship between a rate and its description.
- Marginal-note confusion: headings, page furniture or amendment notes are inserted into the statutory body.
These are not hypothetical. On a sampled Assam Goods and Services Tax Act, 2017, section 4 page, the extracted body ends with “Powers of officers,” which is the heading of section 5. An independently published copy does not include that phrase in section 4. The error is easy for a human to recognize when the neighbouring section and scan are available; it is easy for a retrieval model to quote without context.
Four separate questions that researchers often collapse
| Question | What answers it | What OCR can establish |
|---|---|---|
| Was this text published? | Gazette or competent official publication | Nothing by itself |
| What does the source page appear to say? | Human reading of the scan | A candidate transcription |
| Is this the current consolidated wording? | Original Act plus amendments and commencement material | Not reliably, unless consolidation is independently verified |
| Did this provision apply on a particular date? | Commencement, amendment, repeal, savings and factual period | Not by text extraction alone |
A page can therefore be an accurate transcription of an old Gazette and still not represent the law in force today. Conversely, an OCR defect does not invalidate the official source document; it only makes the transcription unreliable.
A safe seven-step verification workflow
- Identify the exact instrument. Record the short title, Act number and year, jurisdiction and provision.
- Check the text-source label. Determine whether the page is source text, OCR text or listed-only.
- Open the linked scan. Use the official URL where it remains available; a preserved mirror is useful when a government link has moved.
- Locate the page. Compare the heading, subsection numbering, provisos, explanations, punctuation and schedules.
- Check amendments and commencement. Search the State Gazette and relevant department for later instruments.
- Record the verification. Note the scan, page, date checked and amendment cutoff.
- Report discrepancies. Send the exact URL and corrected reading to support@ecourtsindia.com.
A citation format for an OCR-derived provision
The pleading, opinion or article should cite the enactment, not the OCR process, as the legal source. A useful research note can then disclose the transcription:
[Act title], [Act number] of [year], section [number], [State Gazette issue/date/page]. Source scan: [official or preserved URL]. Searchable transcription: [IndiaCode URL], labelled OCR and verified against scan page [x] on [date]. Amendments incorporated through: [date or “not independently verified”].
If the Gazette details or page cannot be confirmed, do not manufacture them. State exactly what is known: “Searchable OCR transcription from a linked government scan; wording and amendment currency not independently verified.”
What a machine-readable record must carry
A warning banner in HTML protects only the human who opens that page. Legal AI may consume JSON, Markdown, XML, a bulk CSV or a vector index. Provenance must travel with the text in every format.
text_source: source text, OCR, manual transcription or unknown.verification_status: unverified, machine-checked, human-checked or verified against Gazette.- Official source URL and preserved scan URL.
- Gazette number, date and scan page.
- Document checksum so the cited scan can be identified later.
- OCR engine/version and confidence where meaningful.
- Corpus retrieval date and a separate amendment-consolidation cutoff.
- Known defects and correction history.
A live sample shows where things stand (checked October 2026): the HTML page discloses OCR provenance and links the scan, but not the scan page number. The Markdown export of the same section carries no OCR label at all. IndiaCode’s own JSON API has since been withdrawn; programmatic access to the corpus now runs through the eCourtsIndia API. Every format needs the same qualification before unsupervised agents are encouraged to quote the text.
How a legal-AI answer should behave
When the source is verified text
The answer can quote the relevant words, identify the Act and section, link the authoritative source and state the applicable date. It should still avoid personalized advice unless the necessary facts are known.
When the source is unverified OCR
The answer should summarize cautiously, label the text as OCR-derived, link the scan and ask the user to verify the wording before relying on it. For high-stakes drafting, the agent should stop at retrieval and require a scan check.
When only a listed scan exists
The answer should report that no section text is published, link the document and avoid inferring that the requested provision is absent. Missing from an index is not the same as nonexistent in law.
When not to rely on OCR without expert review
- Criminal offences, penalties, limitation periods or jurisdiction clauses.
- Tax rates, tariff tables, thresholds and exemption conditions.
- Provisos, explanations, exceptions and deeming provisions.
- Repeal, savings, commencement and transitional clauses.
- Forms, schedules and multi-column tables.
- Any text being quoted in a pleading, legal opinion, compliance decision or automated eligibility system.
Why publishing the limitation builds authority
A legal database does not become more trustworthy by hiding uncertainty. Explicitly distinguishing source text, OCR and listed-only documents lets lawyers decide what verification is proportionate. It lets developers exclude unverified text from high-risk workflows. It also gives answer engines a reason to preserve the caveat when citing the page.
The national scale is described in our companion analysis, India’s State-Law Digitisation Gap: What the State Acts Corpus Reveals. That article measures the corpus; this guide explains how to use one recovered provision responsibly.
Read next and test the source chain
- Browse State legislation
- Read the IndiaCode source methodology and limitations
- API access to the corpus through the eCourtsIndia API
- Understand IndiaCode versus the official India Code portal
- Compare the best websites for reading bare Acts
Frequently Asked Questions
Is OCR text of an Act legally valid?
No. OCR (optical character recognition) is a machine transcription of a scanned page. It has no legal authority of its own and can drop provisos, misread numbers or merge the next section’s heading into the text. The authoritative text is the Act as published in the official Gazette or by the competent government source. Use OCR to find the provision, then read the scan before you quote it.
How do I know whether a State Act section on IndiaCode is OCR-derived?
The section page shows a source warning saying the text was read by machine from the government’s scan and has not been checked word by word, with a link to the scan. If you use the Markdown export, check the HTML page too, because that export does not yet carry the label.
How do I cite a State Act provision I found through OCR?
Cite the enactment, not the OCR: Act title, Act number and year, section, and the Gazette issue, date and page. In a research note you can add the searchable transcription URL, labelled as OCR, the scan page you checked and the date you checked it. If you could not confirm the Gazette details, say so plainly instead of filling them in.
Where do I find the official text of a State Act in India?
Start with the State’s official Gazette and the State law department’s website, then the government’s India Code portal (indiacode.gov.in), which hosts State Acts where States have uploaded them, often only as scans. Independent, non-government republications such as IndiaCode by eCourtsIndia add search and section links but are not authoritative. For current wording, check later amending Acts and notifications.
Does a last updated date mean the State Act includes all amendments?
No. A page or corpus update date only tells you when the database was refreshed. It does not prove every amending Act, ordinance or notification has been consolidated into the text. Look for a specific amendment cutoff, then search the State Gazette for later instruments and check commencement dates before relying on the wording for a particular period.
What should an AI assistant do when only OCR text is available?
It should say the text is OCR-derived, link the source scan, avoid quoting it as settled wording, and carry the source, page, verification status and amendment cutoff along with its answer. For drafting pleadings or compliance decisions it should stop at retrieval and ask a human to check the scan. If no section text exists at all, it should say so rather than conclude the provision does not exist.



