Precisely who wrote the Bible has been debated for centuries - but now scientists have devised a computer program that sheds much more light on the sources of the various religious texts within it.

Israeli computer scientists and Bible scholars have written an algorithm that analyses the writing styles found within various sections.

While it can't pinpoint an individual author, the program has been able to determine when a passage has been written by more than one person and can detect the point at which a new author has taken over.

Image
© Getty ImagesWrite stuff: The computer program searches for how common words are used throughout the scriptures
For instance, many believe that the Torah, the first five books of the Bible, was written by one person - Moses.

However, many experts insist there were multiple sources.

The computer program will be able to help with these kinds of debates by processing how functional words and synonyms are used within various passages, which can reveal whether different people were involved in producing the material.

The researchers, led by Professor Nachum Dershowitz of Tel Aviv University's Blavatnik School of Computer Science, tested their software by feeding it mixed up passages from two Hebrew books of Jeremiah and Ezekiel - and asking the computer to re-sort them.

It did so with 99 per cent accuracy, by looking at how various words were distributed.

Presented at the 49th Annual Conference of the Association for Computational Linguistics in Portland, the research was hailed as a way of side-stepping a traditional problem in Bible analysis - the fact that many scholars are inherently subjective about how they view its text.

Image
© Press AssociationWhen passages from the Bible were mixed up the software re-sorted them with 99 per cent accuracy