In AI parlance, “hallucination” is the term used whenever the algorithm makes an error. The causes of hallucinations are numerous, ranging from simple syntax errors like mixing up proper nouns to making legal arguments based on court cases that never existed.