Can AI think like a lawyer? Evaluating generative AI in South African law

Authors

DOI:

https://doi.org/10.17159//1727-3781/2025/v28i0a21584

Keywords:

AI in law, AI legal reasoning, delict, unjustified enrichment

Abstract

Artificial intelligence (AI) is increasingly being explored as a tool for legal research and reasoning, yet its effectiveness in applying South African legal principles remains underexamined. This study evaluates the performance of five generative AI models—ChatGPT 4o, Claude 3.7 Sonnet, DeepSeek R1, Gemini 2.0 Flash, and Grok3 Beta—across three private law scenarios involving actio de pauperie, negotiorum gestio, and actio legis Aquiliae. Each AI model’s response was assessed against seven criteria: identification of the correct legal action, accuracy of legal requirements, application to facts, case law citation, relevance of case law, consideration of defences, and clarity of the final answer. The findings reveal that while AI models generally identify and apply South African legal principles correctly, their performance varies significantly. Claude performed the strongest overall, demonstrating structured legal reasoning and engagement with statutory provisions, while ChatGPT followed closely but was undermined by hallucinated case law. DeepSeek provided sound reasoning but occasionally misapplied legal principles. Gemini and Grok were the weakest, with incomplete legal analyses and limited case law engagement. A key limitation across all models was the unreliable retrieval and application of case law, with frequent misinterpretations and fabricated references. Additionally, most models failed to incorporate statutory law unless explicitly prompted. These results underscore the potential of AI as a supplementary legal tool while highlighting its current limitations. Future research should explore AI’s competency in broader areas of South African law, including statutory interpretation and constitutional analysis, to better understand its role in legal practice and academia. While AI can assist legal professionals, human oversight remains essential to ensure doctrinal accuracy and case law reliability.

Downloads

Download data is not yet available.

Author Biography

  • Donrich Thaldar, University of KwaZulu-Natal

    BLC LLB MPPS PhD. Professor, University of KwaZulu-Natal. 

References

Literature

Bhambhoria R, Dahan S, Li J and Zhu X “Evaluating AI for Law: Bridging the Gap with Open-Source Solutions” 2024 arXiv preprint arXiv:2404.12349

Bottomley D and Thaldar D “Liability for Harm Caused by AI in Healthcare: An Overview of the Core Legal Concepts” 2023 Front Pharmacol https://doi.org/10.3389/fphar.2023.1297353 DOI: https://doi.org/10.3389/fphar.2023.1297353

Magesh V, Surani F, Dahl M, Suzgun M, Manning CD and Ho DE “Hallucination-Free? Assessing the Reliability of Leading AI Legal Research Tools” 2024 arXiv preprint arXiv:2405.20362 DOI: https://doi.org/10.1111/jels.12413

Mtuze S S K and Morige M “Towards Drafting Artificial Intelligence (AI) Legislation in South Africa” 2024 Obiter 45(1):161–179 https://hdl.handle.net/10520/ejc-obiter_v45_n1_a9 DOI: https://doi.org/10.17159/obiter.v45i1.18399

Naidoo S, Bottomley D, Naidoo M, Donnelly D and Thaldar D “Artificial Intelligence in Healthcare: Proposals for Policy Development in South Africa” 2022 S Afr J Bioeth Law 15(1):11–16 https://doi.org/10.7196/SAJBL.2022.v15i1.797 DOI: https://doi.org/10.7196/SAJBL.2022.v15i1.797

Nordling L “New AI Chatbot Will Make African Health Data More Usable” 2024 Nature 19 August https://doi.org/10.1038/d44148-024-00249-w DOI: https://doi.org/10.1038/d44148-024-00249-w

Sihlahla I, Donnelly D‐L, Townsend B and Thaldar D “Legal and Ethical Principles Governing the Use of Artificial Intelligence in Radiology Services in South Africa” 2025 Dev World Bioeth 25:35–45 https://doi.org/10.1111/dewb.12436 DOI: https://doi.org/10.1111/dewb.12436

Case law

Cape Town Municipality v Paine 1923 AD 207

Conradie v Rossouw 1919 AD 276

Da Silva v Otto 1986 (3) SA 538 (T)

Evrigard (Pty) Ltd v Select PPE (Pty) Ltd [2024] ZAGPJHC 183

Gouws v Jester Pools (Pty) Ltd 1968 (3) SA 563 (T)

Herschel v Mrupe 1954 (3) SA 464 (A)

Immaculate Truck Repairs CC v Capital Acceptances Ltd [2016] ZAFSHC 3

International Shipping Co (Pty) Ltd v Bentley 1990 (1) SA 680 (A)

International Shipping Co (Pty) Ltd v Bentley 1990 (1) SA 680 (A)

Joubert v Combrinck 1980 (3) SA 680 (T)

Kommissaris van Binnelandse Inkomste v Willers 1994 (3) SA 283 (A)

Kruger v Coetzee 1966 (2) SA 428 (A). DOI: https://doi.org/10.1080/04966740.1966.10587860

Lever v Purdy 1993 (3) SA 17 (A) DOI: https://doi.org/10.1093/clinids/17.5.949

Mackintosh v Mackintosh 1864 2 M 1357

Makunga v Barlequins Beleggings [2023] ZAWCHC 332

Mavundla v MEC: Department of Co-Operative Government and Traditional Affairs KZN [2025] ZAKZPHC 2

McCarthy Retail Ltd v Shortdistance Carriers CC 2001 (3) SA 482 (SCA)

Minister van Polisie v Ewels 1975 (3) SA 590 (A)

Nortje v Pool 1966 (3) SA 96 (A)

O’Callaghan v Chaplin 1927 AD 310

Parker v Forsyth [2023] ZAGPRD 1

Portwood v Svamvur 1970 (4) SA 8 (RA)

Roshcon (Pty) Ltd v Anchor Auto Body Builders CC [2014] ZASCA 40

S v Mokgethi 1990 (1) SA 32 (A)

S v Mokgethi 1990 (1) SA 32 (A).

Steenberg v De Kaap Timber (Pty) Ltd 1992 (2) SA 169 (A)

Trustees for the Time Being of Two Oceans Aquarium Trust v Kantey & Templer (Pty) Ltd 2006 (3) SA 138 (SCA)

Van der Merwe v Road Accident Fund 2006 (4) SA 230 (CC) DOI: https://doi.org/10.4102/sajhrm.v4i3.99

Van Meyeren v Cloete [2021] ZASCA 103

Legislation

National Veld and Forest Fire Act 101 of 1998.

Internet sources

Anthropic “Claude 3.7 Sonnet” 2025 available at https://www.anthropic.com/claude/sonnet accessed 1 March 2025.

DeepSeek-AI “DeepSeek-R1” 2025 available at https://www.deepseek.com accessed 1 March 2025.

DS-I Africa Law Research Group, University of KwaZulu-Natal “Welcome to datalaw.bot” 2024 available at https://www.datalaw.bot accessed 1 March 2025.

Google DeepMind “Gemini 2.0 Flash” 2025 available at https://gemini.google.com/app accessed 1 March 2025.

OpenAI “GPT-4o” 2025 available at https://chat.chatbotapp.ai/?model=gpt-4o accessed 1 March 2025.

xAI “Grok 3 Beta” 2025 available at https://grok.com/?referrer=website accessed 1 March 2025.

Published

16-10-2025

Issue

Section

Articles

How to Cite

Thaldar, D. (2025). Can AI think like a lawyer? Evaluating generative AI in South African law. Potchefstroom Electronic Law Journal, 28, (Published on 16 October 2025) pp 1-32. https://doi.org/10.17159//1727-3781/2025/v28i0a21584

Similar Articles

1-10 of 1239

You may also start an advanced similarity search for this article.