As I understand it, the Torah was dictated not just word by word, but letter by letter. It was dictated to Moses, who wrote it down.
Over and above that, the Torah is what chr*stians call the "logos," the blueprint/DNA of creation. According to a mystical teaching it was written by G-d "974 generations" before the Creation. The universe is in fact derivative of the Torah and G-d created it by using the letters of the Torah.
There are sites out there with far better information than I can give you, or you may wish to ask some of the Orthodox Jewish FReepers.
Thanks much.
I was certain that Genesis was so . . . wasn’t sure about the rest.
I don’t know if you know, or not, the Bible Code professors/scholars . . . have analyzed Genesis many different ways with computers—and its language—use of words and use of letters is EXTREMELY ATYPICAL.
It also seems to be the richest trove of authentic codes of all the books—even of the rest of the Torah.