Peter Leithart, in the introduction to Wise Words: Family Stories That Bring the Proverbs to Life:

In the first eight chapters of Proverbs, two women are presented: Dame Folly and Lady Wisdom. The Prince, Solomon’s son, must decide which he will embrace as his bride.

At the end of the book, we learn that the Prince has resisted the temptations of Dame Folly. Proverbs 31 describes the superhuman labors of the “excellent wife,” and we know the Prince has chosen well, for he has made Lady Wisdom his queen.

For more on this, see Leithart’s brief article, “The Dramatic Structure of Proverbs.”