The Gemara provides yet another explanation: Rabbi Shmuel bar Naḥmani says that the book of Yashar is the book of Judges. And why did they call it the book of Yashar? As it is written: “In those days there was no king in Israel; every man did that which was right [yashar] in his own eyes” (Judges 17:6).
(1) When the Canaanite, king of Arad, who dwelt in the Negeb, learned that Israel was coming by the way of Atharim, he engaged Israel in battle and took some of them captive. (2) Then Israel made a vow to the LORD and said, “If You deliver this people into our hand, we will proscribe their towns.” (3) The LORD heeded Israel’s plea and delivered up the Canaanites; and they and their cities were proscribed. So that place was named Hormah.
The baraita now considers the authors of the biblical books: And who wrote the books of the Bible? Moses wrote his own book, i.e., the Torah, and the portion of Balaam in the Torah, and the book of Job. Joshua wrote his own book and eight verses in the Torah, which describe the death of Moses. Samuel wrote his own book, the book of Judges, and the book of Ruth. David wrote the book of Psalms by means of ten elders of previous generations, assembling a collection that included compositions of others along with his own. He included psalms authored by Adam the first man, by Melchizedek king of Salem, and by Abraham, and by Moses, and by Heman, and by Jeduthun, and by Asaph,
further, with regard to Rabbi Elazar’s statement in the Andbaraita that the generation of the judging of the Judges was one of vanity, Rabbi Yoḥanan says: What is the meaning of that which is written: “And it happened in the days of the judging of the Judges” (Ruth 1:1)? This indicates a generation that judged its judges. If a judge would say to the defendant standing before him: Remove the splinter from between your eyes, meaning rid yourself of some minor infraction, the defendant would say to him: Remove the beam from between your eyes, meaning you have committed far more severe sins.
It is taught in a baraita: Rabbi Meir would say: There is coercion with regard to accompaniment, i.e., one who does not want to accompany another is nevertheless required to do so, as the reward for accompaniment is without measure. The proof of the importance of accompaniment is from a verse, as it is stated with regard to when the Jewish people laid siege to the city of Bethel: “And the watchers saw a man come out of the city, and they said to him: Show us, please, the entrance into the city, and we will deal kindly with you” (Judges 1:24), and it is written: “And he showed them the entrance to the city” (Judges 1:25). And what kindness did they perform with him? It is that they killed the entire city by the sword, but that man and his family they sent free.
Five Similarities to Kings
1. Called by G-D, appointed by a court on behalf of the nation.
2. Lead in was as needed.
3. Has the Power to punish extra-judicially
4. Those who rebel against a judge would be punished with death.
5. There is continuity; there were no periods without judges.
Five differences from Kings
1. Not anointed.
2. They preside over courts, which kings can't do.
3. The Mitzvot of kings (limits on marriage, horses, and money; mitzvah of writing the Torah).
4. The nation's obligations of reverence do not apply
5. The position is not hereditary