opinion of the Court:
{1 Roger Hooban sued Unicity International for breach of a distribution agreement. The district court entered summary judgment for Unicity, holding that Hooban was not a party to the agreement and lacked standing to sue for its enforcement. Unicity then filed a motion for attorney fees under Utah's reciprocal attorney fees statute, Utah Code section 78B-5-826.
12 We affirm. Section 826 applies here because, had Hooban's theory of the case prevailed in the district court, he would have been a party to the contract and the contract would have allowed Hooban to recover fees. The statute thus authorizes the court to award fees to Unicity, as the court of appeals correctly concluded.
I
13 Unicity is a multilevel marketer of nutritional supplements and personal care products. It contracts with independent distributors who, in turn, reeruit other distributors to sell its products to consumers.
4 In 1994, Unicity entered into a distribution agreement with an entity called H&H Network Services. Under this agreement, H&H agreed to policies and procedures that, among other things, limited H&H's right to assign or transfer its distributorship to a third party and secured Unicity a right of "first offer"-a right to purchase the distributorship instead of allowing it to be transferred to a third party.
1 5 The owners of H&H filed a bankruptey petition in 2004, and Hooban ended up purchasing all of H&H's stock in an auction held by the bankruptey trustee. Upon learning of the stock transfer, Unicity sought to exercise its "first offer" right to purchase the distributorship under the terms of the agreement. Hooban rejected Unicity's offer, asserting that he was the owner of H&H's stock and succeeded to its rights under the agreement. Unicity refuted Hooban's claim, insisting that Hooban was not a party to the agreement and had no right to operate under it as a Unicity distributor.
T6 Hooban then filed this suit. His complaint sought enforcement of the distributorship agreement, including damages for Unicity's failure to recognize and compensate Hooban as a distributor. It also requested an award of attorney fees under a provision in the contract providing that "[in the event of a dispute, the prevailing party shall be reimbursed attorney's fees ... by the other party."
T7 The district court granted Unicity's motion for summary judgment, holding that Hooban was not a party to the distribution agreement and thus lacked standing to sue under its terms. The court also upheld Unicity's "first offer" right under the contract and rejected Hooban's claim that he was authorized to operate as a distributer.
8 In the wake of this ruling, Unicity filed a motion for an award of its attorney fees. It based its request on Utah Code section 78B-5-826, which authorizes a fee award to "either party that prevails in a civil action based upon any promissory note, written contract, or other writing ... when the provisions of the ... writing allow at least one party to recover attorney fees."
19 The district court denied the motion. The court concluded that the statute "only applies to the parties to the contract in question 'and not any party to the litigation,'" quoting Anglin v. Contracting Fabrication Machining, Inc.,
T 10 Unicity appealed, challenging the district court's analysis and application of the reciprocal attorney fees statute. The court of appeals reversed. Hooban v. Unicity Int'l, Inc.,
{11 Hooban challenges this decision on certiorari. We review the court of appeals' decision de novo, granting no deference to its statutory construction. State v. Arave,
II
{12 The reciprocal attorney fees statute provides as follows:
A court may award ... attorney fees to either party that prevails in a civil action based upon any ... written contract ... when the provisions of the ... contract ... allow at least one party to recover attorney fees.
UTax Cope § 7T8B-5-826. This provision consists of a conditional if/then statement: (a) If the provisions of a written contract allow at least one party to recover attorney fees in a civil action based upon the contract, (b) then a court may award attorney fees to either party that prevails.
113 Largely ignoring this text, Hooban urges against the applicability of the statute here in light of its avowed purpose. Citing the legislative history, Hooban asserts that the statute was intended to "level the playing field" between contracting parties with disproportionate bargaining power, and he contends that it applies only to "equalize one-sided attorney's fees provisions in [disputes] between contracting parties." Because the contractual fee provision at issue is bilateral and Hooban was found not to be a party to the contract, Hooban claims that this case does not implicate the statutory purpose of leveling the playing field between parties to a unilateral contract.
{ 14 Unicity, in response, contends that the statute reaches more broadly. Citing the statutory text, its drafting history, and our decision in Bilanzich v. Lonetti,
1 15 We agree with Unicity and affirm. In so doing, however, we clarify some latent ambiguities in section 826 that are implicated by the parties' competing arguments. First, we hold that the statute applies even in the
A
116 Hooban urges us to limit section 826's reach to contract disputes involving unilateral fee provisions. In support of this view, Hooban points to a statement of Representative Richard Maxfield, the sponsor of the bill that became the reciprocal fee statute, in which he characterized "[the purpose of the above-proposed legislation" as putting "those who deal with the more sophisticated on more equal footing," or in other words as addressing the circumstance of "(blanks, corporations, etc., having their own legal staff and custom made forms ... that do[ ] not cut both ways in the event of defaults and/or misconduct." HB. 175, 46th Leg., Gen. Sess. (Utah 1986) (Rep. Maxfield's introduction and bill as introduced). Hooban also quotes the bill as originally introduced by Representative Maxfield, which provided that "the right to recover legal expenses shall be reciprocal" in "a civil action where a promissory note, contract, or other writing permits one of the parties but not the other to recover attorney fees." Id. Finally, Hooban cites Bilanzich, in which we explained that "[the statute levels the playing field by allowing both parties to recover fees where only one party may assert such a right under contract, remedying the unequal allocation of litigation risks built into many contracts of adhesion."
117 We disagree. Our evaluation of the statute's purpose must start with its text, not the legislative history. Where the statute's language marks its reach in clear and unambiguous terms, it is our role to enforce a legislative purpose that matches those terms, not to supplant it with a narrower or broader one that we might infer from the legislative history.
¶18 Hooban asks us to do just that. He invokes the views of a single legislator as to the statute's "purpose" without regard to the purpose set forth in the statutory text. That is inappropriate. The statute clearly provides that it is triggered "when the provisions" of a contract "allow at least one party to recover attorney fees." Urar CopE § 78B-5-826 (emphasis added). That text
1 19 Bilanzich is not to the contrary. Our reference to unilateral fee provisions was simply illustrative of the prototypical seenar-io implicated by the statute, not an exhaustive description of the statute's coverage.
11 20 The fact that the introduced version of the bill-but not the enrolled version-spoke of unilateral fee provisions does not help Hooban's cause. It cuts the other way. Hooban is ultimately asking us to revive text that never survived the legislative process. That we decline to do. We hold that the statute means what it says, and applies when a contract entitles "at least one party"-one or more-to recover fees.
B
T21 Hooban next challenges Unicity's right to recover fees on the ground that he was deemed a non-party to the contract in the proceedings below. Because the statute is implicated in cases in which "either party ... prevails in a civil action based upon" a contract, Utax Cop® $ 78B-5-826 (emphasis added), Hooban construes the statute to be limited to actions between litigants that are both signatories to the contract at issue. And because Hooban was found not to be a party to the distribution agreement, he insists that Unicity has no right to recover its fees under section 826.
122 We again disagree. As we noted in Bilanzich, an action is "based upon" a contract under the statute if a "party to the litigation assert[s] the writing's enforceability as basis for recovery."
123 As Hooban notes, the statutory trigger for a fee award-"when the provisions of the ... contract ... allow at least one party to recover attorney fees"-does appear to refer to a party to a contract, and not just the litigation. In context, the statute makes an obvious reference to contracting parties and their contractual attorney fees provisions. After all, the "provisions of a contract" would not apply to a mere party to the litigation who is unmentioned in the contract. And since Hooban was deemed a stranger to the distribution agreement, he insists that the statute is not implicated and that Unicity has no right to fees under its provisions.
124 Hooban's argument rests on the premise that the question whether "the provisions of the ... contract ... allow at least one party to recover attorney fees" is evalu
[ 25 Unicity offers an alternative formulation, however. Unicity asks us to evaluate the question whether the contract allows "at least one party to recover attorney fees" under a hypothetical alternative in which the case was resolved the other way. Under this approach, Unicity notes that if Hooban's suit had been successful, he would have been deemed a "party" to the distribution agreement and in that event the contract would have allowed "at least one party to recover attorney fees." Unicity thus asserts a right to recover fees under the statute when the provisions of the underlying contract would allow at least one party to recover fees if it had prevailed in the action based upon the contract.
126 We adopt Unicity's formulation and thus affirm its right to seek an award of fees from the district court. The classic application of the statute involves a one-sided fee provision in a dispute between the parties to the contract.
127 A concrete example may help to confirm this point. If Hooban were a Unicity employee subject to a contract providing that the "employee shall pay the employer's attorney fees in an action establishing the employee's breach of the employment contract," and Hooban prevailed in an action by Unicity for breach of contract, Hooban would be entitled to recover his fees under section 826. This 'is, in fact, the classic, archetypal case for fee shifting under the statute.
[ 28 That result would not obtain, however, under Hooban's formulation of the statutory inquiry. If the trigger for a fee award under section 826 turned on whether the contract "allow[s] at least one party to recover attorney fees" under the facts and cireumstances as found by the court, Hooban would receive no fees as the prevailing party under the classic seenario for fee shifting. Under that approach, after all, the court has determined that the employee did not breach the contract, and thus it is not the case that "the provisions of the ... contract ... allow at least one party to recover attorney fees."
129 We accordingly reject Hooban's formulation of the statutory inquiry. The statute cannot reasonably be interpreted to foreclose its application to the core circumstance that gave rise to its enactment. Thus, we interpret section 826 in accordance with Un-icity's formulation, which inquires whether the contract would allow at least one party to recover fees in the hypothetical alternative scenario in which the opposing party prevailed.
T 30 This is the approach we took in Bilanzich,
I 31 We confirm this approach and accordingly uphold Unicity's right to fees. Under Hooban's theory of the case in the district court, Hooban was a party to an enforceable, written contract with Unicity. The contract contained an attorney fees provision that allowed "the prevailing party" to recover fees "lin the event of a dispute." Had Hooban prevailed, the contractual provisions would have entitled at least one party-Hooban-to attorney fees, and the statutory trigger for fee shifting is therefore met. Section 826 thus affords a basis for an award of fees to the party that ultimately prevailed in the district court-Unicity.
III
132 A party is entitled to reciprocal fee-shifting by statute "when the provisions" of a contract would have entitled at least one party to recover its fees had that party prevailed "in a civil action based upon" the contract. That condition is met in this case because, had Hooban prevailed in this suit, he would have been a party to the contract upon which the suit is based and would have been contractually entitled to attorney fees. We accordingly affirm.
Notes
The court revised paragraphs 10 and 26.
. Prior to renumbering in 2008, this provision was codified in section 78-27-56.5.
. See Bd. of Governors of Fed. Res. Sys. v. Dimension Fin. Corp.,
. Brogan v. United States,
. As Hooban notes, our opinion in Giusti v. Sterling Wentworth Corp. cited Bilanzich for the proposition that a bilateral fee provision does not satisfy the statute because it does not create " 'an unequal exposure to the risk of contractual liability for attorney fees.'"
Our decision in Giusti is best understood under this rubric. Both litigants in Giusti were parties to a contract with a bilateral fee provision that awarded fees to "the non-defaulting party" "(in the event either party defaults."
. Bilanzich,
. See also, e.g., Dejavue, Inc. v. U.S. Energy Corp.,
