reglab/housing_qa huggingface dataset:
NC Gen Stat § 6-19.1 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-19.1 - Attorney's fees to parties appealing or defending against agency decision.

 6-19.1. Attorney's fees to parties appealing or defending against agency decision.(a) In any civil action, other than an adjudication for the purpose of establishing or fixing a rate, or a disciplinary action by a licensing board, brought by the State or brought by a party who is contesting State action pursuant to G.S. 150B-43 or any other appropriate provisions of law, unless the prevailing party is the State, the court may, in its discretion, allow the prevailing party to recover reasonable attorney's fees, including attorney's fees applicable to the administrative review portion of the case, in contested cases arising under Article 3 of Chapter 150B, to be taxed as court costs against the appropriate agency if:(1) The court finds that the agency acted without substantial justification in pressing its claim against the party; and(2) The court finds that there are no special circumstances that would make the award of attorney's fees unjust. The party shall petition for the attorney's fees within 30 days following final disposition of the case. The petition shall be supported by an affidavit setting forth the basis for the request.Nothing in this section shall be deemed to authorize the assessment of attorney's fees for the administrative review portion of the case in contested cases arising under Article 9 of Chapter 131E of the General Statutes.Nothing in this section grants permission to bring an action against an agency otherwise immune from suit or gives a right to bring an action to a party who otherwise lacks standing to bring the action.Any attorney's fees assessed against an agency under this section shall be charged against the operating expenses of the agency and shall not be reimbursed from any other source.(b) Expired. (1983, c. 918, s. 1; 1987, c. 827, s. 1; 2000-190, s. 1; 2009-475, s. 8.)
NC Gen Stat § 6-20 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-20 - Costs allowed or not, in discretion of court.

 6-20. Costs allowed or not, in discretion of court.In actions where allowance of costs is not otherwise provided by the General Statutes, costs may be allowed in the discretion of the court. Costs awarded by the court are subject to the limitations on assessable or recoverable costs set forth in G.S. 7A-305(d), unless specifically provided for otherwise in the General Statutes. (Code, s. 527; Rev., s. 1267; C.S., s. 1243; 2007-212, s. 2.)
NC Gen Stat § 6-21 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-21 - Costs allowed either party or apportioned in discretion of court.

 6-21. Costs allowed either party or apportioned in discretion of court.Costs in the following matters shall be taxed against either party, or apportioned among the parties, in the discretion of the court:(1) Application for years' support, for surviving spouse or children.(2) Caveats to wills and any action or proceeding that may require the construction of any will or trust agreement, or fix the rights and duties of parties under any will or trust agreement. In any caveat proceeding under this subdivision, the court shall allow attorneys' fees for the attorneys of the caveators only if it finds that the proceeding has substantial merit.(3) Habeas corpus. The court shall direct which officer shall tax the costs of the proceeding.(4) In actions for divorce or alimony. The court may, both before and after judgment, make any order respecting the payment of costs incurred by either spouse from the sole and separate estate of either spouse, as may be just.(5) Application for the establishment, alteration, or discontinuance of a public road, cartway, or ferry. The board of county commissioners in its discretion may assess the costs incurred before the board.(6) The compensation of referees and commissioners to take depositions.(7) All costs and expenses incurred in special proceedings for the partition of real or personal property under Chapter 46A of the General Statutes, except that attorneys' fees shall be assessed in accordance with G.S. 46A-3.(8) In all proceedings under Chapter 156 of the General Statutes relating to drainage, except as otherwise provided in that Chapter.(9) Repealed by Session Laws 2020-23, s. 10, effective October 1, 2020.(10) In proceedings under Article 3 of Chapter 49 of the General Statutes regarding children born out of wedlock.(11) In custody proceedings under Chapter 50A of the General Statutes.(12) In actions brought for misappropriation of a trade secret under Article 24 of Chapter 66 of the General Statutes.The word "costs" as used in this section includes reasonable attorneys' fees in whatever amounts the court in its discretion determines and allows. Attorneys' fees in actions for alimony, however, shall not be included in the costs as provided in this section but shall be determined and provided for in accordance with G.S. 50-16.4.  (Code, ss. 533, 1294, 1323, 1422, 1660, 2039, 2056, 2134, 2161; 1889, c. 37; 1893, c. 149, s. 6; Rev., s. 1268; C.S., s. 1244; 1937, c. 143; 1955, c. 1364; 1965, c. 633; 1967, c. 993, s. 2; c. 1152, s. 5; 1977, c. 576; 1979, c. 110, s. 3; 1981, c. 809, s. 1; c. 890, s. 2; 2013-198, s. 1; 2020-23, ss. 7, 10.)
NC Gen Stat § 6-21.1 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-21.1 - Allowance of counsel fees as part of costs in certain cases.

 6-21.1. Allowance of counsel fees as part of costs in certain cases.(a) In any personal injury or property damage suit, or suit against an insurance company under a policy issued by the defendant insurance company in which the insured or beneficiary is the plaintiff, instituted in a court of record, upon findings by the court (i) that there was an unwarranted refusal by the defendant to negotiate or pay the claim which constitutes the basis of such suit, (ii) that the amount of damages recovered is twenty-five thousand dollars ($25,000) or less, and (iii) that the amount of damages recovered exceeded the highest offer made by the defendant no later than 90 days before the commencement of trial, the presiding judge may, in the judge's discretion, allow a reasonable attorneys' fees to the duly licensed attorneys representing the litigant obtaining a judgment for damages in said suit, said attorneys' fees to be taxed as a part of the court costs. The attorneys' fees so awarded shall not exceed ten thousand dollars ($10,000).(b) When the presiding judge determines that an award of attorneys' fees is to be made under this statute, the judge shall issue a written order including findings of fact detailing the factual basis for the finding of an unwarranted refusal to negotiate or pay the claim, and setting forth the amount of the highest offer made 90 days or more before the commencement of trial, and the amount of damages recovered, as well as the factual basis and amount of any such attorneys' fees to be awarded.  (1959, c. 688; 1963, c. 1193; 1967, c. 927; 1969, c. 786; 1979, c. 401; 1985 (Reg. Sess., 1986), c. 976; 2011-283, s. 3.1; 2011-317, s. 1.1; 2013-159, s. 5.)
NC Gen Stat § 6-21.4 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-21.4 - Allowance of counsel fees and costs in certain cases involving principals or teachers.

 6-21.4. Allowance of counsel fees and costs in certain cases involving principals or teachers.In any civil action brought against a public school principal or teacher as defined in G.S. 115C-390 arising or resulting from the use of corporal punishment, upon a determination that the principal or teacher has prevailed and that the plaintiff's action was frivolous or without substantial merit, the presiding judge may, in his discretion, allow a reasonable attorney fee to the duly licensed attorney representing the principal or teacher. The attorney's fee shall be taxed as part of the court costs. (1981, c. 381, s. 1; c. 682, s. 22.)
NC Gen Stat § 6-21.5 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-21.5 - Attorney's fees in nonjusticiable cases.

 6-21.5. Attorney's fees in nonjusticiable cases.In any civil action, special proceeding, or estate or trust proceeding, the court, upon motion of the prevailing party, may award a reasonable attorney's fee to the prevailing party if the court finds that there was a complete absence of a justiciable issue of either law or fact raised by the losing party in any pleading. The filing of a general denial or the granting of any preliminary motion, such as a motion for judgment on the pleadings pursuant to G.S. 1A-1, Rule 12, a motion to dismiss pursuant to G.S. 1A-1, Rule 12(b)(6), a motion for a directed verdict pursuant to G.S. 1A-1, Rule 50, or a motion for summary judgment pursuant to G.S. 1A-1, Rule 56, is not in itself a sufficient reason for the court to award attorney's fees, but may be evidence to support the court's decision to make such an award. A party who advances a claim or defense supported by a good faith argument for an extension, modification, or reversal of law may not be required under this section to pay attorney's fees. The court shall make findings of fact and conclusions of law to support its award of attorney's fees under this section. (1983 (Reg. Sess., 1984), c. 1039, s. 1; 2006-259, s. 13(l).)
NC Gen Stat § 6-21.7 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-21.7 - Attorneys' fees; cities or counties acting outside the scope of their authority.

 6-21.7. Attorneys' fees; cities or counties acting outside the scope of their authority.In any action in which a city or county is a party, upon a finding by the court that the city or county violated a statute or case law setting forth unambiguous limits on its authority, the court shall award reasonable attorneys' fees and costs to the party who successfully challenged the city's or county's action. In any action in which a city or county is a party, upon finding by the court that the city or county took action inconsistent with, or in violation of, G.S. 160D-108(b) or G.S. 143-755, the court shall award reasonable attorneys' fees and costs to the party who successfully challenged the local government's failure to comply with any of those provisions. In all other matters, the court may award reasonable attorneys' fees and costs to the prevailing private litigant. For purposes of this section, "unambiguous" means that the limits of authority are not reasonably susceptible to multiple constructions.  (2011-299, s. 1; 2019-111, s. 1.11; 2020-25, s. 1.)
NC Gen Stat § 6-22 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-22 - Petitioner to pay costs in certain cases.

 6-22. Petitioner to pay costs in certain cases.The petitioner shall pay the costs in the following proceedings:(1) In petitions for draining or damming lowlands where the petitioner alone is benefited.(2) In petitions for condemnation of water millsites when the petitioner is allowed to erect the mill; but when he is not allowed to erect the mill, the costs shall be paid by the person who is allowed to do so.(3) In petitions for condemnation of land for railroads, street railways, telegraph, telephone or electric power or light companies, or for water supplies for public institutions, or for the use of other quasi-public or municipal corporations; unless in the opinion of the superior court the defendant improperly refused the privilege, use or easement demanded, in which case the costs must be adjudged as to the court may appear equitable and just.(4) When the petition is refused. (Code, ss. 1299, 1855, 2013; 1893, c. 63; 1903, c. 562; Rev., s. 1269; C.S., s. 1245; 1945, c. 635.)
NC Gen Stat § 6-23 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-23 - Defendant unreasonably defending after notice of no personal claim to pay costs.

 6-23. Defendant unreasonably defending after notice of no personal claim to pay costs.In case of a defendant, against whom no personal claim is made, the plaintiff may deliver to such defendant with the summons, a notice subscribed by the plaintiff or his attorney, setting forth the general object of the action, a brief description of the property affected by it, if it affects real or personal property, and that no personal claim is made against such defendant. If a defendant on whom such notice is served unreasonably defends the action, he shall pay costs to the plaintiff. (Code, s. 216; Rev., s. 1270; C.S., s. 1246.)
NC Gen Stat § 6-24 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-24 - Suits by an indigent; payment of costs by an indigent.

 6-24. Suits by an indigent; payment of costs by an indigent.A person who sues as an indigent is not required to advance the required court costs and no officer shall require any fee of the person. If a court enters a judgment in favor of a person suing as an indigent and does not require another party to the suit to pay the costs of the suit, the court may require the indigent person to pay any costs of the suit that were not required to be paid because the person was indigent. (1868-9, c. 96, s. 3; Code, s. 212; 1895, c. 149; Rev., s. 1265; C.S., s. 1247; 1993, c. 435, s. 5.)
NC Gen Stat § 6-25 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-25 - Party seeking recovery on usurious contracts; no costs.

 6-25. Party seeking recovery on usurious contracts; no costs.No costs shall be recovered by any party, whether plaintiff or defendant, who may endeavor to recover upon any usurious contract. (1895, c. 69; Rev., s. 1271; C.S., s. 1248.)
NC Gen Stat § 6-26 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-26 - Costs in special proceedings.

 6-26. Costs in special proceedings.The costs in special proceedings shall be as allowed in civil actions, unless otherwise specially provided. (Code, s. 541; Rev., s. 1272; C.S., s. 1249.)
NC Gen Stat § 6-28 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-28 - Costs of laying off homestead and exemption.

 6-28. Costs of laying off homestead and exemption.The costs and expenses of appraising and laying off the homestead or personal property exemptions, when the same is made under execution, shall be charged and included in the officer's bill of fees upon such execution or other final process; and when made upon the petition of the owner, they shall be paid by such owner, and the latter costs shall be a lien on said homestead. (Code, s. 510; Rev., s. 1274; C.S., s. 1251.)
NC Gen Stat § 6-29 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-29 - Costs of reassessment of homestead.

 6-29. Costs of reassessment of homestead.If the superior court at term shall confirm the appraisal or assessment, or shall increase the exemption allowed the debtor or claimant, the levy shall stand only upon the excess remaining, and the creditor shall pay all the costs of the proceeding in court. If the amount allowed the debtor or claimant is reduced, the costs of the proceeding in court shall be paid by the debtor or claimant, and the levy shall cover the excess then remaining. (Code, s. 521; Rev., s. 1275; C.S., s. 1252.)
NC Gen Stat § 6-30 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-30 - Costs against infant plaintiff; guardian responsible.

 6-30. Costs against infant plaintiff; guardian responsible.When costs are adjudged against an infant plaintiff, the guardian by whom he appeared in the action shall be responsible therefor. (Code, s. 534; Rev., s. 1276; C.S., s. 1253.)
NC Gen Stat § 6-31 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-31 - Costs where executor, administrator, trustee of express trust, or person authorized by statute a party.

 6-31. Costs where executor, administrator, trustee of express trust, or person authorized by statute a party.In an action prosecuted or defended by an executor, administrator, trustee of an express trust, or a person expressly authorized by statute, costs shall be recovered as in an action by and against a person prosecuting or defending in his own right; but such costs shall be chargeable only upon or collected out of the estate, fund or party represented, unless the court directs the same to be paid by the plaintiff or defendant, personally, for mismanagement or bad faith in such action or defense. And when any claim against a deceased person is referred, the prevailing party shall be entitled to recover the fees of referees and witnesses, and other necessary disbursements, to be taxed according to law. (Code, s. 535; Rev., s. 1277; C.S., s. 1254.)
NC Gen Stat § 6-32 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 3 - Civil Actions and Proceedings.|§ 6-32 - Costs against assignee after action brought.

 6-32. Costs against assignee after action brought.In actions in which the cause of action becomes by assignment after the commencement of the action, or in any other manner, the property of a person not a party to the action, such person shall be liable for the costs in the same manner as if he were a party. (Code, s. 539; Rev., s. 1278; C.S., s. 1255.)
NC Gen Stat § 6-33 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 4 - Costs on Appeal.|§ 6-33 - Costs on appeal generally.

 6-33. Costs on appeal generally.On appeal from a magistrate or any court of the General Court of Justice, if the appellant recovers judgment, he shall recover the costs of the appeal and also those costs he ought to have recovered below had the judgment of that court been correct. If in any court of appeal there is judgment for a new trial, or for a new jury, or if the judgment appealed from is not wholly reversed, but partly affirmed and partly disaffirmed, the costs shall be in the discretion of the appellate court. (Code, s. 540; Rev., s. 1279; C.S., s. 1256; 1969, c. 44, s. 19; 1971, c. 269, s. 7.)
NC Gen Stat § 6-40 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 5 - Liability of Counties in Criminal Actions.|§ 6-40 - Liability of counties, where trial removed from one county to another.

 6-40. Liability of counties, where trial removed from one county to another.When a prisoner is sent from one county to another to be held for trial, or for any other cause or purpose, the county from which he is sent shall pay his jail expenses, unless they are collected from the prisoner. (1889, c. 354; 1901, c. 718; Rev., s. 1285; C.S., s. 1263; 1971, c. 269, s. 8.)
NC Gen Stat § 6-47 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 6 - Liability of Defendant in Criminal Actions.|§ 6-47 - Judgment confessed; bond given to secure fine and costs.

 6-47. Judgment confessed; bond given to secure fine and costs.In cases where a court permits a defendant convicted of any criminal offense to give bond or confess judgment, with sureties to secure the fine and costs which may be imposed, the acceptance of such security shall be upon the condition that it shall not operate as a discharge of the original judgment against the defendant nor as a discharge of his person from the custody of the law until the fine and costs are paid. (1879, c. 264; Code, s. 749; 1885, c. 364; Rev., s. 1293; C.S., s. 1269; 1971, c. 269, s. 9.)
NC Gen Stat § 6-48 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 6 - Liability of Defendant in Criminal Actions.|§ 6-48 - Arrest for nonpayment of fine and costs.

 6-48. Arrest for nonpayment of fine and costs.In default of payment of such fine and costs, it is the duty of the court at any subsequent term thereof, on motion of the solicitor of the State, to order a capias to issue to the end that such defendant may be again arrested and held for the fine and costs until discharged according to law. (1879, c. 264; Code, s. 750; 1885, c. 364; Rev., s. 1294; C.S., s. 1270; 1971, c. 269, s. 10.)
NC Gen Stat § 6-49 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 7 - Liability of Prosecuting Witness for Costs.|§ 6-49 - Prosecuting witness liable for costs in certain cases; court determines prosecuting witness.

 6-49. Prosecuting witness liable for costs in certain cases; court determines prosecuting witness.In all criminal actions in any court, if the defendant is acquitted, nolle prosequi entered, or judgment against him is arrested, or if the defendant is discharged from arrest for want of probable cause, the costs, including the fees of all witnesses whom the judge before whom the trial took place shall certify to have been proper for the defense and prosecution, shall be paid by the prosecuting witness, whether marked on the bill or warrant or not, whenever the judge is of the opinion that there was not reasonable ground for the prosecution, or that it was not required by the public interest. If a greater number of witnesses have been summoned than were, in the opinion of the court, necessary to support the charge, the court may, even though it is of the opinion that there was reasonable ground for the prosecution, order the prosecuting witness to pay the attendance fees of such witnesses, if it appear that they were summoned at the prosecuting witness's special request.Every judge is authorized to determine who the prosecuting witness is at any stage of a criminal proceeding, whether before or after the bill of indictment has been found, or the defendant acquitted: Provided, that no person shall be made a prosecuting witness after the finding of the bill, unless he shall have been notified to show cause why he should not be made the prosecuting witness of record. (1799, c. 4, s. 19, P.R.; 1880, c. 558, P.R.; R.C., c. 35, s. 37; 1868-9, c. 277; 1874-5, c. 151; 1879, c. 49; Code, s. 737; 1889, c. 34; Rev., s. 1295; C.S., s. 1271; 1947, c. 781; 1953, c. 675, s. 1; 1971, c. 269, s. 11.)
NC Gen Stat § 6-50 (2021)
2021 North Carolina General Statutes|Chapter 6 - Liability for Court Costs|Article 7 - Liability of Prosecuting Witness for Costs.|§ 6-50 - Imprisonment of prosecuting witness for willful nonpayment of costs if prosecution frivolous.

 6-50. Imprisonment of prosecuting witness for willful nonpayment of costs if prosecution frivolous.Every such prosecuting witness may be adjudged not only to pay the costs, but he shall also be imprisoned for the willful nonpayment thereof, when the judge before whom the case was tried shall adjudge that the prosecution was frivolous or malicious. (1800, c. 558; R.C., c. 35, s. 37; 1879, c. 49; 1881, c. 176; Code, s. 738; Rev., s. 1297; C.S., s. 1272; 1971, c. 269, s. 11.1.)