Shoftim / Judges 11:31
וְהָיָה הַיּוֹצֵא אֲשֶׁר יֵצֵא מִדַּלְתֵי בֵיתִי לִקְרָאתִי בְּשׁוּבִי בְשָׁלוֹם מִבְּנֵי עַמּוֹן וְהָיָה לַיהוָה וְהַעֲלִיתִהוּ עוֹלָה׃
then whatever comes out of the doors of my house to meet me, when I return in peace from the children of Ammon, shall be the Eternal's, and I will offer it up as a burnt offering."
Pshat פְּשָׁט
A vow and a mistake
Metzudat David: the vow is twofold: what is fit for an offering will be offered as a burnt offering, and what is not fit will be holy to the Eternal. Rabbeinu Bahya: Yiftach (Jephthah) erred when he offered his daughter as a burnt offering. He thought a vow works like a king's ban, but a vow cannot make an offering of what is unfit for an offering. What he did proved that he was not learned in Torah.
How Metzudat David and Rabbeinu Bahya explain it
Remez רֶמֶז
One letter
Radak in his father's name: the vav (ו) in "and I will offer it up" means "or": either holy to the Eternal, or a burnt offering. So Yiftach's (Jephthah's) daughter was not offered but set apart from the world: it says she mourned her maidenhood, not her life, and that her father "did his vow," not that he "offered her up." Malbim accepts this reading.
How Radak and Malbim explain it
Drash דְּרָשׁ
Between two proud men
Bereshit Rabbah: four asked improperly, and to three the Eternal answered properly. To Yiftach (Jephthah) He did not: his daughter came out to meet him. Pinchas (Phinehas) could have released him from the vow, but each waited for the other to come to him. Between them the girl was lost, and both were punished.
How Bereshit Rabbah explain it
Sod סוֹד
The first to the Eternal
Ahavat Yehonatan: his brothers denied Yiftach (Jephthah) the birthright, so when he rose he promised the Eternal the very first. An Ammonite woman may enter the community, because "all the glory of the king's daughter is within," and a woman was not expected to go out to meet anyone. But Yiftach's daughter went out with drums, and death was decreed for her. Yet in the future death will vanish forever.
How Ahavat Yehonatan explain it