Computing and AI
AI for lawyers and legal staff in Morocco: save time without putting the case at risk
Case timelines, first drafts of clauses, formal notices, French-Arabic translation: what AI brings to a law office, and what the lawyer must always check.
A lawyer or in-house counsel in Morocco can hand AI much of the work that comes before legal reasoning: summarising a case file, building a timeline, drafting a first version of a clause, a formal notice or a client letter, translating between French and Arabic. It does not replace research in official sources, legal advice or your signature. And it has a serious flaw for this profession: it can confidently invent judgments and statutory provisions that do not exist.
This guide is for lawyers, in-house legal staff and people working in notaries' offices and for commissaires judiciaires (the current name of the profession formerly known as huissiers de justice, now governed by Law 46.21).
What AI can do, and what it cannot
An assistant such as ChatGPT, Claude or Gemini produces plausible text from what you give it and what it has learned. It is very good at reorganising information you supply: documents, notes, a draft contract. It is far less reliable when it has to pull a precise, local, dated fact from memory, such as the number of a Court of Cassation ruling or the current wording of an article of the Code of Obligations and Contracts.
Hence a simple rule: work from your own documents, never from the tool's "knowledge". The more material you give it, the less it makes up.
Six practical uses in a law office
1. Summarise a file and build a timeline
Faced with a bulky file (correspondence, a contract, official reports, invoices), AI can produce a short summary and a dated timeline, with each event pointing back to the source document. This is often the clearest time saving.
Sample instruction: "You are assisting a Moroccan lawyer. Here are the anonymised documents in a commercial dispute between company A and company B. Build a timeline as a table: date, event, source document. If a date is missing or uncertain, write 'to check' instead of guessing. Do not add any legal references."
2. First drafts of clauses
Confidentiality, termination, dispute resolution: AI gives you a base to adapt. Ask for several versions (client-friendly, balanced) and a list of points to negotiate. It often reasons from foreign templates, so check that each clause fits the Moroccan law that governs the contract.
3. Formal notices and client letters
For a formal notice (mise en demeure), give the facts, the amount, the deadline and the tone you want; AI handles the layout. For a client letter, it helps you explain a procedure, a deadline or a risk in plain words. Read every sentence: one word too many in a formal notice can be used against your client.
4. Structure written submissions
From your notes, AI can suggest an outline for conclusions: facts, grounds, answers to the other side's arguments, requests. It also helps spot a contradiction or an opposing argument you missed. The substance, the choice of grounds and the references remain your work.
5. Translate between French and Arabic
Many files move between the two languages. AI gives a fast first translation, but Moroccan legal vocabulary does not always match that of other Arabic-speaking countries. Ask it to flag the terms it is unsure of, with two or three possible equivalents, and decide yourself. A translation to be filed in court is still a job for a sworn translator.
6. Prepare a client meeting
From an anonymised summary, AI can list the questions to ask, the documents to request and the grey areas. You walk into the meeting with a plan, and the client leaves with a clear list of papers to bring.
What AI does, what the lawyer checks
| Task | AI helps with | The lawyer must check |
|---|---|---|
| File summary | Condensing documents, spotting key facts | That nothing important was left out or distorted |
| Timeline | Ordering events by date | Every date against the source document |
| Clauses | Suggesting versions and negotiation points | Fit with Moroccan law and the client's interest |
| Formal notice | Laying out facts, amount and deadline | Amounts, deadlines, every phrase |
| Submissions | Suggesting an outline, spotting contradictions | Grounds, references, strategy |
| FR/AR translation | A first draft and a list of uncertain terms | Moroccan legal terminology |
| Client meeting | Listing questions and documents to request | Whether the questions fit this case |
The real danger: invented case law
The Mata v. Avianca case
The best-known example comes from the United States. In Mata v. Avianca, a personal injury claim against the airline Avianca, lawyers filed a brief citing decisions they had found with ChatGPT. The decisions did not exist, and neither did the quotations. Asked whether they were genuine, the tool had said they were. In June 2023, a federal judge in New York sanctioned the lawyers and their firm with a 5,000 dollar fine.
The lesson applies everywhere: a reference produced by AI is not a reference until you have read it in its source. And asking the tool whether it is sure achieves nothing.
Checking against official Moroccan sources
- Legislation: the General Secretariat of the Government portal gives access to the Bulletin officiel. Check the version in force and later amendments, not only the original text.
- Texts and case law: the Ministry of Justice legal and judicial portal brings together laws, decrees and court decisions, with full-text search.
- The decision itself: read the whole judgment. AI can cite a real decision while making it say the opposite of what it holds.
A good habit is to forbid AI from citing anything ("do not add any references") and then insert the references you have checked yourself.
Professional secrecy, ethics and Law 09-08
A lawyer's professional secrecy is enshrined in the law that organises the profession: Law 66.23, published in the Bulletin officiel in August 2026, replaced Law 28.08. Breaching it is also an offence under article 446 of the Criminal Code. Some provisions of Law 66.23 are waiting for implementing texts, so check the version in force and your bar's rules. Notaries and commissaires judiciaires are also bound to confidentiality by the texts governing their professions, and in-house counsel owe it to their employer.
Pasting a file into a public assistant means handing its content to a third-party service, often hosted abroad. If it contains personal data (names, CIN numbers, addresses, family situation, health), Law 09-08 applies as well, with its rules on disclosure to third parties and transfers outside Morocco. Our guide to using ChatGPT at work under Law 09-08 covers these rules in detail.
Anonymise before you paste
- Replace party names with "Party A", "Company B", "Witness C".
- Remove CIN numbers, case numbers, addresses, phone numbers, bank details and registration numbers.
- Take out unusual details that would let someone recognise a case in a small town.
- For sensitive files, paste nothing: work from an outline or general notes.
- Check whether the tool uses your conversations for training, and prefer a business plan with written commitments on data.
Anonymising reduces the risk; it does not remove it. When in doubt, leave it out.
What you never delegate
- Legal advice: AI knows neither your client, nor the judge, nor the history of the file. The advice you give is your responsibility.
- Your signature: a deed, submissions or a letter under your name is yours, sentence by sentence.
- Strategy: settling, pleading or appealing is a matter for your judgement and your client's wishes.
- Checking sources: never hand that to the same tool that produced the reference.
Getting started, and getting trained
Start with a low-risk task, such as the timeline of a closed, anonymised file, and compare it with your own work. Keep the instructions that work in a document: our article on AI prompts for office work sets out a method for writing them.
If you would rather practise in a group, the AI at work course at ApexTiz in Tiznit brings several professions together over four mornings, Saturday and Sunday across two weekends: rules, source control, the method and AI in the browser on the first weekend, then connectors, small agents and a final project on the second, which can be specific to legal work, such as research restricted to official sources. Groups are capped at 10, working in pairs on paid accounts provided by the centre, and everyone leaves with their project, a prompt kit and a certificate of attendance.
Frequently asked questions
Can AI do reliable research on Moroccan case law?
Not on its own. It can invent decisions or distort what they say. Use it to structure your reasoning, then find and read the decisions in official sources.
Can I paste a client file into ChatGPT?
Not as it is. Professional secrecy and Law 09-08 require you to anonymise, and some files should not go in at all. A business plan with written data commitments lowers the risk but does not remove the need for care.
Does AI translate legal terms well between French and Arabic?
Well enough for a first draft, with mistakes on terms specific to Moroccan law. Ask it to flag uncertain terms, and have any translation meant for court reviewed by a sworn translator.
Do these rules apply to in-house counsel?
Yes. In-house counsel are not covered by the law on the legal profession, but they owe confidentiality to their employer, and Law 09-08 applies as soon as they handle personal data.
Are the free versions of the tools enough?
For practice and work on anonymised documents, yes. For regular use on real files, read the terms of use and prefer a plan that excludes training on your data.
Want advice for your case?
Put it into practice in four mornings
The AI at work course: 16 hours at the ApexTiz centre in Tiznit, over two weekends, paid tools provided, connectors, agents and a final project on your own job.