In the article on AI in shipping we wrote that document reading is the most mature application of artificial intelligence in shipping today. A language model can pull the demurrage rate, the laytime terms and the notice of readiness (NOR) conditions out of a forty-page charter party in a few seconds, and turn the scanned statement of facts (SOF) sent by the agent into an hour-by-hour table. Data entry that takes the operations team hours comes down to minutes.

The same article also carried a warning: where the work turns directly into money, as with laytime and demurrage, the output still has to be approved by a person. This article goes into the detail behind that warning. How does an AI system read a charter party step by step, where and why does it go wrong, and how can an owner catch those errors before they reach the calculation?

Key concepts

  • Large language model (LLM): A model trained on very large bodies of text that can read text, extract information from it and produce new text. It does not “understand” a document; it produces the most likely answer given the text it has read.
  • OCR (optical character recognition): Converting the writing in a scanned document or photograph into machine-readable text. In some systems this is a separate step; some models read the image directly.
  • Context window: The amount of text a model can take into account at once. A document that exceeds it is split into parts.
  • Structured extraction: Moving information from free text into predefined fields (demurrage rate, laytime, port, date and so on). The list of fields is called a schema.
  • Grounding: The model giving each value it extracts together with the page, clause or line it relies on in the document.
  • Hallucination: A model confidently producing information that is not in the source but looks plausible. The US National Institute of Standards and Technology (NIST) calls this “confabulation” in its guidance on generative AI.
  • Recap and rider: The recap is the correspondence summarising the terms agreed at the end of negotiation. Riders are additional clauses written by the parties and attached to a printed standard form (for example GENCON 1994).

How a system reads a charter party

Details differ between products, but most document-reading systems follow the same steps.

1. Turning the document into text. A PDF produced directly on a computer already contains text. A scanned charter party, a rider clause received by fax or a hand-filled SOF must first be recognised. Tables, stamps, signatures, struck-out lines and handwritten remarks in the margin are the hardest part of this step.

2. Working out the structure. A voyage charter is not a single text: the printed form, the rider clauses, the recap and later amendments (addenda) together make up the contract. The system has to tell where each clause begins and ends, and which text amends which.

3. Extracting the fields. For each field in the schema, the model looks for a match in the text. A typical output looks like this:

Field Wording in the text Structured value
Loading rate “5,000 mt per WWD SHEX EIU” 5,000 tonnes per weather working day; Sundays and holidays excluded even if used
Demurrage “USD 12,500 per day pro rata” USD 12,500 per day, pro rata for part of a day
NOR “WIBON, WIPON, WIFPON, WCCON” May be tendered whether in berth or not, whether in port or not, whether in free pratique or not, whether customs cleared or not
Source Clause 6 and rider clause 31, pp. 4 and 12

4. Normalisation. The extracted values are put into a form the calculation can use: dates are converted to a single format, times to a single time zone, abbreviations are expanded and units aligned.

5. Calculation. In well-designed systems, the language model does not calculate laytime. The model reads; the calculation is done by an engine whose rules are written out explicitly and whose every step can be traced. Language models are designed to produce text; they can make mistakes in arithmetic and in adding up long date ranges, and such a mistake can go unnoticed inside fluent prose.

Where it goes wrong

1. Scanned documents and handwriting

SOFs are often filled in by hand by the agent, or typed, signed and scanned. Recognition errors are most common in figures: 1 and 7, 0 and 6, 3 and 8 get confused. The difference between “12.40” and “21.40” is a single character but nine hours in the calculation. Date format is another risk: “03/04/2026” means 3 April in one document and 4 March in another. The model often resolves this ambiguity on its own assumption, without asking.

2. Printed form, rider clauses and deleted lines

Clauses added to a printed form often amend or remove a provision of the form. Part I of GENCON 1994 states expressly that in the event of a conflict between Part I and Part II, Part I prevails. Under English law, too, greater weight is given to terms the parties have written specifically than to pre-printed terms designed to cover many situations (The Starsin). A model may read the laytime clause in the printed form and miss that a rider clause thirty pages later amends it.

On scanned forms, lines deleted by striking through are often still legible. OCR does not see the line; it sees the text, and a deleted provision enters the output as if it were in force.

3. Abbreviations and small words

Laytime provisions create large differences with a few letters. The difference between “SHEX EIU” (Sundays and holidays excluded even if used) and “SHEX UU” (counted if used) decides whether weekend work counts as laytime. The difference between “SHEX” and “SSHEX” (Saturdays excluded too) is whether one day a week counts at all. Words such as reversible and averaging decide whether time at the loading and discharging ports is calculated together or separately. A model may give not what the text actually says but a “corrected” version closer to the wording it has seen more often in its training data. The standard reference for the common meanings of these terms is the Laytime Definitions for Charter Parties 2013 prepared by BIMCO and other organisations.

4. Filling the empty field

If the schema asks for a field, the model tends to fill it. If the charter party states no despatch rate, the model may write “half demurrage” because that is common practice. If there is no turn time provision, it may assume the most common pattern. This is the most dangerous form of hallucination in document work: the output does not look wrong, it looks plausible. The error only shows up when someone asks where in the document the value came from.

5. Inconsistency between documents

The contract is often spread across several documents: the recap may state one demurrage rate and the signed charter party another; an amendment made by email during the voyage may override both. If the system is given only one document, the model knows nothing of the others. If it is given several, there is no guarantee it will correctly decide on its own which is the later and governing text.

6. Details in the statement of facts

The information in an SOF that matters most for the calculation is often outside the table: intervals such as “stopped due to rain”, the master’s “signed under protest” remark, notes written by the agent at the bottom. Entries crossing midnight (such as 23.30–01.15) can be put on the wrong day because of the date change. Where two events are recorded over the same time interval, the model may skip one or count both.

7. Information lost in the middle of a long document

Context windows have grown large enough to take hundreds of pages, but a model does not pay equal attention to every part of the text. A study by Liu and colleagues published in 2024 showed that language models perform markedly worse when the relevant information sits in the middle of a long text than when it is at the beginning or end. When a document is split into parts, cross-references such as “clause 29 as amended by clause 45” fall into two separate parts and the link is lost.

8. Confident tone

Models give a value they are unsure of in the same tone as one they are sure of. An illegible time and a clearly printed time look the same in the output. How tidy the output looks therefore says nothing about whether it is correct.

In practice: verifying the output before it reaches the calculation

  1. Accept no value without a source. Every field should come with the page and clause it relies on, and the reviewer should be able to see the value in the document with one click. A value whose source cannot be shown should not be used, even if it is right.
  2. Allow “not found”. The schema should not make every field mandatory; for information that is not in the document, leaving the field empty or answering “not in the document” should be defined. An empty field is always cheaper than an invented one.
  3. Have a person check the critical fields. Demurrage and despatch rates, laytime rate and exceptions, NOR conditions and turn time, the claim time bar: each of these turns directly into money. For these fields, AI does the first reading and a person gives the approval.
  4. Set up rule-based consistency checks. Are the SOF events in chronological order? Was NOR tendered after the ship’s arrival? Does laytime start after NOR and turn time? Are the total times consistent with the length of the voyage? These checks are simple rules independent of the model, and they catch most of the common errors.
  5. Fix the list of documents and their order of precedence. Which recap, which charter party, which amendments? Which overrides which? Do not leave this decision to the model; settle it yourself when you hand the documents to the system.
  6. Keep the original documents and the review record. The originals the calculation relies on, the model’s output and the reviewer’s corrections should be kept together. The justification put to the charterer or the arbitrator is not “the system read it that way” but the document and the clause number.
  7. Measure before you rely on it. Run the documents of a few closed voyages whose outcome is known through the system and compare field by field. Seeing in which fields and on which document types it makes mistakes shows where tighter checks are needed.
  8. Know where the documents go. Charter parties contain commercial terms and counterparty information. Where the service processes the documents, whether it keeps them and whether it uses them to train its models should be settled by contract.

Conclusion

Language models bring real speed to reading charter parties and statements of facts, and can take over much of the data entry that takes up most of the operations team’s time. But their errors differ in character from human errors: they come not from fatigue but from quietly resolving ambiguity, filling an empty field with a plausible value and giving an uncertain value in a confident tone. That is why the right arrangement does not change: AI reads and shows its source, rules check consistency, a traceable engine does the calculation, and a person approves every value with a financial consequence.


This article is for general information only; it is not an assessment of any particular product or service and is not legal advice. In specific disputes, the terms of the charter party and the governing law should be relied on.

References

  • BIMCO, GENCON 1994, Part I and Clause 6 (Laytime).
  • BIMCO, CMI, FONASBA and INTERCARGO, Laytime Definitions for Charter Parties 2013.
  • Schofield, J., Laytime and Demurrage, 7th edn, Informa Law, 2016.
  • Homburg Houtimport BV v Agrosin Private Ltd (The Starsin) [2003] UKHL 12.
  • NIST, Artificial Intelligence Risk Management Framework (AI RMF 1.0), 2023.
  • NIST, AI 600-1, Artificial Intelligence Risk Management Framework: Generative Artificial Intelligence Profile, 2024.
  • Ji, Z. et al., “Survey of Hallucination in Natural Language Generation”, ACM Computing Surveys, 55(12), 2023.
  • Liu, N. F. et al., “Lost in the Middle: How Language Models Use Long Contexts”, Transactions of the Association for Computational Linguistics, 12, 2024.