In 2016 a friend and I wrote a little Java program that counted the words in the 1830 Book of Mormon and compared them with Joseph Smith's journals. It was a weekend thing. It answered nothing, and the repo sat for ten years.
This year I picked it back up, with one rule: everything is replicable. Of the 695,021 books, pamphlets, and newspaper pages I catalogued from 1780 to 1830, 202,816 volumes passed the date and duplicate checks and trained three language models from scratch (125M, 297M, and 590M parameters) on 25.7 billion tokens. They had never seen the Book of Mormon or anything written about it since. I set aside 168 passages until the final test, and I masked King James wording first, so the tests weren't just measuring the Bible. As far as I can find, nothing on this question has come close to this size. Earlier computer studies used a few dozen to a couple of hundred writing samples. One, in 2013, searched about 100,000 old books.
I asked two things. Did the book copy from earlier books? And whose writing does it sound like?
Set the King James Bible aside, and only 0.16% of the text matches earlier books. I ran four tests against about 221,000 earlier books. The books most often named as sources, like The Late War and View of the Hebrews, don't stand out from other books of their kind. View of the Hebrews is not a hit on wording, ideas, or storyline: 77 of 500 religious books are closer in ideas. The test that catches Josephus retelling Genesis finds no book whose story the Book of Mormon follows.
Of the eight people usually proposed as the author, the closest writing is Joseph Smith's revelations. Six of eight methods rank them first, including all three of my models. His letters and journals don't stand out the same way. Against 23,872 writers of that era, his revelations come out first in two of the three ways I ran the search. In the third, an English prophet whose own visions were being printed in the same years is ahead. Too many of the rest were already dead: 9 of the top 20 in one version, where chance says 5. The tools are matching a style of religious writing, not just a person.
I'm not arguing about whether the book is inspired. A computer can't answer that. These tools are good at picking the closest match from a list, and bad at telling whether the real author is on the list at all, so nobody is ruled in or out. A believer and a skeptic can both read the result as fitting their view.
The full essay, with live interactive charts and the method behind every number, is at https://lifehug.com/book-of-mormon/. The code and results are at https://github.com/lifehug/book-of-mormon-authorship. The time-locked models are on Hugging Face under etherfuse: timelocked-1830-125m, timelocked-1830-300m, and timelocked-1830-590m. You can rerun the Book of Mormon result without training anything.

