As Thermion and JBH aptly demonstrated in their answers, the principles of hermeneutics include context, and the context was Jesus' own explanation of why the disciples should buy swords. He plainly stated that this was to fulfill the prophecy that he should be counted among the transgressors as written in Isaiah 53:11-12:
11 Out of the anguish of his soul he shall see and be satisfied; by his knowledge shall the righteous one, my servant, make many to be accounted righteous, and he shall bear their iniquities. 12 Therefore I will divide him a portion with the many, and he shall divide the spoil with the strong, because he poured out his soul to death and was numbered with the transgressors; yet he bore the sin of many, and makes intercession for the transgressors. ESV
Also note that the Greek words used for swords at the time the Septuagint was being written included the following:
• The machaira is loosely used for any single-edged sword or dagger and was typically about the size and shape of a bread knife.
• The xiphos is a double-edged stabbing weapon averaging 18 inches long that’s widest at two-thirds of the distance to the point and appears 13 times in the Septuagint.
• The kopis is a single-edged chopping weapon that’s widest at the front half and has a downward curve similar to the kukri knife used by Gurkhas. This sword is not mentioned in the Septuagint.
• The rhomphaia is a feared, double-handed Thracian weapon that was about five feet long. It had a wooden haft that was almost half the length of the weapon, and the slightly curved blade had an extremely sharp edge on the concave side only. This weapon is estimated to have been in use primarily from about 400 BCE until about 100 CE. In the Septuagint, it was used in the passages concerning the flaming sword guarding the Garden of Eden, Goliath’s weapon, the sword of the angel confronting Balaam, the sword of God’s judgment, several military actions by Israel against its enemies, and in Psalm 22.
The New Testament uses only two Greek words for sword:
• Machaira is used 29 times
• Rhomphaia is used only seven times, six of them in Revelation and one in Luke 2:35, which might have been an allusion to Psalm 22.
In none of the New Testament references is machaira (Strong’s Greek 3162) ever used in context with food preparation, cutting brush, or anything other than a weapon. Check it out for yourself.
An interesting, related question might be asked whether Jesus being crucified along with criminals was a more thorough and less volitional fulfillment of Isaiah 53:12.