The earliest parts were written in a early form of Hebrew which existed roughly at the same time as Ugaritic, a closely related language. However, this early Hebrew was not Ugaritic, which had sounds, words, and grammar that was quite distinct from any historical or pre-historical Hebrew.