Dataset
Legal billing datasets of time entries and invoices for AI training
A legal billing dataset is a set of timekeeper entries and invoices from law firm billing systems and corporate e-billing platforms: the narrative of the work done, task and activity codes, hours, rates, write-downs, and the client's bill review adjustments with their stated reasons. SourceX sources these records to a buyer's specification from established businesses, such as law firms and the legal operations teams that pay them. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Time entries and invoice lines with narrative, codes, hours, rates and each adjustment before payment
- Typical systems
- Elite 3E, Aderant Expert, Clio Manage, PCLaw, Legal Tracker, CounselLink, TyMetrix 360
- Typical history
- Specified by the buyer; whole closed matters or closed billing years
- Modality
- Structured line items, each fee line with a free-text narrative
- Delivery formats
- Agreed per order; JSONL or CSV line items, plus original LEDES files with their identifier fields replaced, where the holder kept them
- Preparation
- Clients, matters and timekeepers pseudonymized; narrative screening and rate handling set per dataset, for you to confirm
- Licensing
- Rights reviewed per client relationship; firm and client agreement on narratives and rates is yours to confirm; permitted use set in the license
- Availability
- Sourced to your spec by practice area and by side, firm or client; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| entry_id | string | Pseudonymous key of the time or expense entry, which a LEDES file usually carries as the line item number. |
| matter_ref | object | One pseudonymous key for the firm's matter number and the client's, with matter type and fee arrangement. |
| work_date | date | The day the work was done, kept apart from the invoice date and the billing period. |
| entered_at | datetime | When the entry was recorded, which separates same-day capture from time rebuilt at month end. |
| timekeeper | object | Pseudonymous ID with classification, such as partner, associate or paralegal, and an experience band. |
| narrative | string | The description of the work as billed, with names replaced and privileged detail screened. |
| narrative_as_entered | string | The timekeeper's original wording before the billing lawyer's edits, where the system keeps it. |
| task_code | object | Task and activity codes with the code set named, such as UTBMS litigation L330 with A103, or a client's own list. |
| hours | object | Hours worked, hours billed and the billing increment. |
| rate | object | Standard rate, agreed matter rate and currency, or a rate band where exact rates are not released. |
| prebill_adjustment | object | A write-down or write-up made inside the firm before the invoice issued, with amount, editor role and any note. |
| review_adjustments | array | Each reduction or rejection in the client's bill review, with the rule cited, reviewer comment, any appeal and the result. |
| invoice | object | Invoice key, billing period, line type (fee, expense or invoice-level adjustment), status and amount paid. |
Field names from the table above; values are masked placeholders.
Example record
{
"entry_id": "te_5c81a0",
"matter_ref": {
"id": "m_77d2e4",
"matter_type": "commercial_litigation",
"arrangement": "hourly_with_budget"
},
"work_date": "2023-05-16",
"entered_at": "2023-05-19T18:42:00Z",
"timekeeper": {
"id": "tk_0412",
"classification": "associate",
"experience_band": "4_to_6_years"
},
"narrative_as_entered": "Depo prep [WITNESS_3]; review docs; conf w/ [TK_0098].",
"narrative": "Prepare outline for deposition of [WITNESS_3] (2.1); review pricing committee minutes for use as exhibits (1.4); confer with [TK_0098] re same (0.3).",
"task_code": {
"set": "UTBMS litigation",
"task": "L330",
"activity": "A101"
},
"hours": {
"worked": 4.2,
"billed": 3.8,
"increment": 0.1
},
"rate": {
"standard_band": "band_C",
"currency": "USD"
},
"prebill_adjustment": {
"type": "write_down",
"hours": -0.4,
"editor_role": "billing_partner",
"note": "Trimmed document review; narrative itemized."
},
"review_adjustments": [
{
"stage": "automated_rule",
"rule": "intra_office_conference",
"hours": -0.3,
"comment": "Internal conferences are not billable."
},
{
"stage": "appeal",
"by": "firm",
"comment": "Conference set the exhibit order for the deposition.",
"result": "denied"
}
],
"invoice": {
"id": "inv_2023_0611",
"period": "2023-05",
"line_type": "F",
"line_status": "partially_approved",
"hours_paid": 3.5
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Code narratives by task and activity
Entries coded by timekeepers under UTBMS are labeled examples for classifying free-text work descriptions, with client-rejected codes as corrections.
Reconstruct what was done on a matter
Entries in date order give a daily activity log per timekeeper for matter summaries, status reports and staffing models.
Train invoice review
Lines with the reviewer's reduction, the guideline cited and the appeal result teach a model to flag block billing, vague narratives and staffing that breaks a client's rules.
Estimate effort and budgets
Hours by phase, matter type and timekeeper level across closed matters support estimates of what a deposition, a motion or a diligence review takes.
Draft and repair narratives
Pairs of narratives as entered and as billed show how lawyers restate an entry so it gives the task, the purpose and the time without disclosing advice.
Use-case guides: Legal AI, Finance and accounting agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Worked, billed and paid
All three values on each line, not only the invoice total.
Reasons on adjustments
Reductions and rejections recorded with a code or comment and the guideline they rest on.
Contemporaneous entry
Entry timestamps close to the work date, since narratives rebuilt weeks later are vaguer.
Known code source
Codes entered by the timekeeper, with the code set named.
Whole matters
Every entry from opening to final bill, including non-billable and written-off time.
Guidelines attached
The outside counsel guidelines in force for each client and period.
Record timeline
Legal billing dataset
Time narratives are a daily log of legal work
A matter file shows what a legal team produced: the motion as filed, the letter as sent. It does not show the day an associate spent reading produced emails to build a deposition outline. Time entries do. Each is written by the person who did the work, usually within days, commonly in tenths of an hour, and names the task, its object and often its purpose. Over a long litigated matter that can make thousands of dated lines saying who did what, at a finer grain than any document in the file. Research that went nowhere and drafts that were abandoned appear too, because someone recorded the time.
Task codes turn that log into labeled data. UTBMS, the Uniform Task-Based Management System maintained by the LEDES Oversight Committee, pairs a task code with an activity code. In the litigation set L330 is depositions and L240 is dispositive motions, while activity codes give the kind of work: A102 research, A103 draft or revise, A104 review or analyze. A line coded L240 and A103 is a dated example of a lawyer drafting a dispositive motion. The LEDES 1998B specification leaves the requirement to the receiving client, so coverage follows the client: one client's matters are coded on every line and the next client's carry none.
The log has known distortions. Timekeepers pick codes under time pressure, and broad codes such as L120, analysis and strategy, absorb whatever does not fit. Block billing folds several tasks into one line with one total. Narratives are written for a client who will read them, so they are terse and partly formulaic. They can also disclose the subject of legal advice, which is why the buyer checks how narratives were screened for privileged content and client identities.
An adjustment without its reason is only a smaller number
On work billed to a corporate client through an e-billing platform, a time entry is usually reviewed twice before it is paid. First the billing lawyer reads the draft bill, cuts hours that look excessive, moves time to non-billable and rewrites narratives. Then an e-billing platform tests each line against the client's outside counsel guidelines, and a reviewer on the client's side reduces or rejects lines. The firm may appeal. Each step is a judgment about whether the work was necessary, done at the right level and described well enough to pay for. An ordinary timesheet carries no such label.
The reason for each judgment is stored somewhere different, and the common exchange format drops it. LEDES 1998B, the pipe-delimited text format with 24 fields per line that firms submit, has a line item adjustment amount, negative for a discount and positive for a premium, and defines the line total as unit cost times units plus that adjustment. No field among the 24 is for the reason. A firm's submitted file shows that a line was discounted, not the reason, and nothing of what the client did next. Client reductions sit in the e-billing platform with a reason code and comment. Pre-bill write-downs sit in the firm's billing system, often with no note.
Reasons differ in what they teach. A rule that fires on block billing, on a second attendee at a deposition or on a timekeeper the client never approved is consistent, but it tests form, not necessity. A reviewer's comment that six hours went on a standard briefed the month before is rarer and worth more. A flat percentage negotiated off the whole invoice says nothing about any line, and a partner's courtesy discount is a commercial decision, not a finding that work was wasted. A dollar reduction also reveals the rate behind it, and an original LEDES file states the standard, undiscounted rate as the unit cost of every fee line, so the buyer checks that rate information is released only as the firm and client agree.
What to check before licensing
- Ask which side the records come from. A law firm's billing system holds worked time and pre-bill write-downs. A client's e-billing platform holds review reductions, reason codes and appeals. Few holders have both.
- Confirm how narratives were screened for privileged content and client identities, who did it and under what written rule, and have counsel review whether the client, not only the firm, agreed to release.
- Agree how rates appear: exact, banded or removed. Check that removed rates cannot be rebuilt from line totals and hours, and that original LEDES files had the unit cost, timekeeper name, client ID and law firm ID fields replaced. The specification asks for the firm's federal taxpayer ID as its law firm ID.
- On the sample, count the adjusted lines that carry a stated reason, and separate rule-fired reasons from reviewer comments and flat invoice-level discounts.
- Ask for the outside counsel guidelines in force for each client and period, so a rejection can be checked against the rule behind it.
- Check task code coverage by client and matter type, which code set was used, and whether timekeepers entered the codes or the firm mapped them at invoicing.
- Compare work dates with entry timestamps, and ask whether non-billable, written-off and fixed-fee time was recorded at all.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What is the difference between firm-side and client-side legal billing data?
They hold different halves of the same invoice. A law firm's billing system records time as worked, the billing lawyer's pre-bill edits and what was collected. A legal department's e-billing platform records the invoice as submitted, the reductions its rules and reviewers applied, appeals and the approved amount. Say which half you need. A matched pair needs a firm and its client to both agree, so specify it as a separate request.
Do the records come as LEDES files?
They can, but LEDES is an invoice exchange format and leaves layers out. A LEDES 1998B file is pipe-delimited text with 24 fields per line item, including the narrative, the codes, units, unit cost and an adjustment amount. It has no field for the reason behind an adjustment or for the client's later review, so ask for those layers as added fields.
How are privileged details in time narratives handled?
They should be screened before delivery under a written rule that you ask to see. A narrative saying a lawyer researched a specific question for a client can disclose the subject of legal advice, and how far billing records are protected depends on what they reveal, so treat it as a question for counsel. Ask who screened the narratives and whether the client agreed. No screening method is perfect.
Can hourly rates be included?
Only as the firm and the client agree. Rates and negotiated discounts are commercially sensitive for both. The usual options are exact rates, rate bands by timekeeper classification, or hours with no money at all. If rates are removed, check that they cannot be recovered by dividing a line total by its hours.
Are time entries coded with UTBMS task codes?
Some are, depending on the client. The LEDES specification leaves the requirement to the receiving client, so one client's matters are coded on every line while another's carry no codes. UTBMS has separate task sets for litigation, counseling, project and bankruptcy work, and later sets for patent, trademark and e-discovery work. Ask for coverage by matter type and whether a client substituted its own code list.
Are fixed-fee and contingency matters included?
Sometimes, and the records look different. On a fixed or capped fee some firms still record time, often called shadow billing, to measure profitability. Those entries never pass a client's bill review, so they carry no reductions. Other firms record little, and contingency practices may keep no time at all. Ask which fee arrangement each matter was on.
Related datasets
- Legal matter files
Whole files for individual legal matters, every document tied to a matter number, a date and a stage
- Legal intake and conflict check records
Intake requests with the names searched, each hit and its resolution, and the decision to accept, condition or decline
- Accounting and reconciliation workflows
Coded transactions, reconciliations and close records with reviewer corrections and approvals
- Legal research memos and briefs
Research memos, opinion letters and brief drafts, each with its question, jurisdiction, date, authorities and review history
- Accounts payable invoices with approvals and exceptions
Supplier invoices as received, joined to posted fields, GL coding, approval route, match result, exceptions and payment
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell us what your models need
Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.
Updated 25 November 2026.