Mmarco:
How can you objectively know the intention of the writer?
Inerrancy is a matter of faith, so we start with that principle: the inspired writers were free of error when they wrote the text. The interpretation of scripture is undertaken in exegesis.
If there is a clearly apparent error in scripture when compared with our historical study or archaeology, then we have a problem. Either our historical study or archaeology are incomplete or inerrancy doesn’t correspond with reality.
The point is that the infallibility of Magisterium extends to faith and morals only. So the Magisterium cannot establish infallibly a scientific or historically truth.
From the Catechism:
The inspired books teach the truth. “Since therefore all that the inspired authors or sacred writers affirm should be regarded as affirmed by the Holy Spirit, we must acknowledge that the books of Scripture firmly, faithfully, and without error teach that truth which God,
for the sake of our salvation, wished to see confided to the Sacred Scriptures” (CCC 107, quoting the Vatican II document
Dei Verbum 11).
The purpose of the Bible is to teach the saving truth, and not to teach us science or history. The fact that the Bible contains historical errors can be easily proved:
1 King 7:26 contradicts 2 Chr 4:5
1 King 7:26 It was a handbreadth in thickness, and its rim was like the rim of a cup, like a lily blossom.
It held two thousand baths .
2 Chronicles 4:5 It was a handbreadth in thickness, and its rim was like the rim of a cup, like a lily blossom.
It held three thousand baths .
2 Samuel 24:9 contradicts 1 Chr 21:5
2 Samuel 24:9 Joab reported the number of the fighting men to the king: In Israel there were
eight hundred thousand able-bodied men who could handle a sword, and in Judah
five hundred thousand .
1 Chronicles 21:5 Joab reported the number of the fighting men to David: In all Israel there were
one million one hundred thousand men who could handle a sword, including
four hundred and seventy thousand in Judah.
2 Samuel 24:24 contraddice 1 Chr 21:25
2 Samuele 24:9 But the king replied to Araunah, “No, I insist on paying you for it. I will not sacrifice to the Lord my God burnt offerings that cost me nothing.” So David bought the threshing floor and the oxen and paid
fifty shekels of silver fo them.
1 Chronicles 21:24 But King David replied to Araunah, “No, I insist on paying the full price. I will not take for the Lord what is yours, or sacrifice a burnt offering that costs me nothing.” So David paid Araunah
six hundred shekels of gold for the site.
2 Samuel 10:18 contradicts 1 Chr 19:18
2 Samuel 10:18 But they fled before Israel, and David killed
seven hundred of their charioteers and forty thousand of their foot soldiers.
1 Chronicles 19:18 But they fled before Israel, and David killed
seven thousand of their charioteers and forty thousand of their foot soldiers.