If you're an avid viewer of crime shows, you've probably come across cases in which an expert, often a psychologist, is called in to help solve a crime using their language analysis skills.
source https://phys.org/news/2020-11-forensic-linguists-court-case.html